Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2022 10:53 AM
I want to execute shell script which is running .py file. May I know how to run .sh file and .py files in Databricks workspace?
Labels:
- Labels:
-
Py File
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2022 06:21 AM
Launch a cluster and then go to `Data` section of your workspace. Hit DBFS tab at the top and upload your script and python file into a DBFS location like `/mnt`.
Next, open a notebook and you can run a shell commands by using `%sh` in the cell.
%sh
ls /dbfs/mnt/
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 08:45 AM