Learning Azure Databricks – fix

I’m doing the MS Learn module, Introduction to Azure Databricks, Use Apache Spark Notebooks (https://docs.microsoft.com/en-us/learn/modules/intro-to-azure-databricks/4-using-notebooks) and I hit a problem in the section called ‘Why Apache?’ when the tutorial wouldn’t create the assets, complaing ‘ModuleNotFoundError: No module named ‘pathlib2’.

To fix this – click on Clusters in the left menu and select your cluster to show the configuration page:

Click on the Libraries tab, click Install New, the PyPi and enter pathlib2 into the Package field; click Install and wait for the process to complete. Once that is done, you can re-run the first part of the ’02 Why Apache?’ notebook and it should work.