- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 03:52 AM
Hi All,
We have a couple of jars stored in a workspace folder.
We are using init scripts to copy the jars in the workspace to the /databricks/jars path.
The init scripts do not seem to be able to find the files.
The scripts are failing saying the files could not be found.
```bash
#!/bin/bash
cp /Workspace/jars/file_name.jar /databricks/jars/
cp /Workspace/jars/file_name.jar /databricks/databricks-hive/
```
Can you please let me know if this is even possible ?
What is the correct path for a file in a Workspace Folder.
Thank you...
Edit:
- Have tried file path with and without /Workspace - both are failing saying file is not available.
- I have also tried sleep for up to 2 minutes and the files are still not available.
Would be nice if someone from databricks can confirm if binary files from Workspace such as jars are accessible via init scripts, if yes what would their path be like ?
- Labels:
-
Databricks workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 06:39 AM
perhaps using tree -d? (probably you have to install it first)
or there is also something as the web terminal but I have never used that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 11:24 PM
Thank you for your response @Kaniz Fatma
The issue is still not resolved.
I was hoping someone from Databricks would be able to help. Please help if possible.
Steps to Reproduce:
- Have two folders in Workspace - init_scripts and jars.
- Have any jar file in the jars folder.
- Have an init script in the init_scripts folder that copies the jar file from the jars folder into the /databricks/databricks-hive/ folder in the cluster.
```bash
#!/bin/bash
cp /Workspace/jars/file_name.jar /databricks/jars/
cp /Workspace/jars/file_name.jar /databricks/databricks-hive/
```
- Configure the init script in the workspace in the Cluster configuration.
Expected:
- Cluster needs to start
- The jar has to be copied to the /databricks/databricks-hive/ folder.
Current Behaviour:
- The cluster is not starting.
- Init script is failing stating that the source file is not available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2023 11:56 PM
Hi @Bharath Kumar Ramachandran
We haven't heard from you since the last response from @Werner Stinckens . Kindly share the information with us, and in return, we will provide you with the necessary solution.
Thanks and Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 12:03 AM
Hi @Vidula Khanna , thank you for your response. I had also responded to a similar message from @Kaniz Fatma . Anyways the issue is still not resolved.
The issue is still not resolved.
I was hoping someone from Databricks would be able to help. Please help if possible.
Steps to Reproduce:
- Have two folders in Workspace - init_scripts and jars.
- Have any jar file in the jars folder.
- Have an init script in the init_scripts folder that copies the jar file from the jars folder into the /databricks/databricks-hive/ folder in the cluster.
```bash
#!/bin/bash
cp /Workspace/jars/file_name.jar /databricks/jars/
cp /Workspace/jars/file_name.jar /databricks/databricks-hive/
```
- Configure the init script in the workspace in the Cluster configuration.
Expected:
- Cluster needs to start without any error.
- The jar has to be copied to the /databricks/databricks-hive/ folder.
Current Behaviour:
- The cluster is not starting.
- Init script is failing stating that the source file is not available.
Things already tried:
- Have tried file path with and without /Workspace - both are failing saying file is not available.
- I have also tried sleep for up to 2 minutes and the files are still not available.
- Have tried an init script that would just list the files in the path and print to a file. Even listing fails stating file/path is not available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 12:54 AM
Someone has the same issue as you and well, it is not possible:
https://community.databricks.com/s/question/0D78Y000007uNLYSA2/detail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 01:09 AM
Thank you for sharing the link. It was useful.
It is a little sad seeing that it is not possible having spent so much time analyzing and trying out various options.
I hope this is from a valid source. If so, I hope Databricks would consider adding this option seeing that many (well atleast 2 :)) are expecting this feature. Using CLI and API would just complicate things and not that practical.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 11:27 PM
Hi @Bharath Kumar Ramachandran
You're welcome! I'm glad you found the link useful. I empathize with your hope that Databricks would consider adding this option. It's possible that Databricks will take user feedback into account when planning future updates and enhancements.
Moreover, every best answer marked contributes to the growth and success of our community.


- « Previous
-
- 1
- 2
- Next »