I am new to Python. Need help with Azure databricks.
Scenario:
Currently I am working on a project which uses HDInsight cluster to submit spark jobs and they use Python script with classes and functions [ .py] which resides in the /bin/ folder in the edge node.
We propose to use Databricks instead of HDInsight cluster and the PoC requires minimum effort.
Doubts:
- In the HDInsight cluster all the python scripts are stored in /bin/ folder and conf files with .yml in /conf/ folder.
Can we replicate the same structure in the databricks DBFS so that minimum changes in the code to replicate the location.
2.I am new to Python, I have a bunch of scripts in the /bin/ folder. How can I upload or install those scripts in databricks.
My assumption is, I need to create a package and install on the cluster as a library. Correct me if I am wrong.
- How do I run the Python scripts from Databricks.