โ12-03-2019 11:53 AM
Hi, I made bash file in databricks and I can see that the file is stored as the following picture.
I was supposed to run this bash file through %sh cell, but as you see the following picture, I could not find bash file, which I could find through dbutils.fs.
Is there any way to run bash file stored in dbutils through the cell? This bash file is for installing packages, and executed as restarting cluster, but I would like to run this one manually so that I do not need to restart cluster whenever package is updated. Thanks.
โ04-11-2022 11:48 AM
Hi @keunsoopโ ,
Are you able to run your code using an init script? I would like to share some docs in case you might have some questions https://docs.databricks.com/clusters/init-scripts.html
โ12-05-2019 07:15 AM
The %sh command runs on the driver,
The driver has dbfs: mounted under /dbfs
So paths you might think of as dbfs:/FileStore end up being /dbfs/FileStore
I was able to execute a shell script by uploading to the FileStore
Moving to current working directory with a
%sh mv command
and then executing with a
%sh sh myscript.sh
โ02-09-2022 10:55 AM
@Tom Hanlonโ Uploading to FileStore path is to create data. How can we easily access the directory and upload .sh file to run the same in the workspace?
โ07-22-2020 06:00 AM
Hello @Tom Hanlonโ
Could you please explain in details how it is done,
I am not able to run the .sh file in databricks
โ02-09-2022 10:58 AM
@Lokesh_Vishโ were you able to execute it?
I am facing similar issue and not able to upload and execute .sh as well as .py file.
โ02-10-2022 07:15 AM
Hello @Jimit Naikโ - My name is Piper, and I'm a Databricks community moderator. Thank you for asking about this. We'll give the community a chance to respond first. ๐
โ03-08-2022 05:59 AM
this can be run through init script I think,@keunsoopโ
โ04-11-2022 11:48 AM
Hi @keunsoopโ ,
Are you able to run your code using an init script? I would like to share some docs in case you might have some questions https://docs.databricks.com/clusters/init-scripts.html
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group