Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload a file to Databricks workspace #87

Closed
matallanas opened this issue Oct 30, 2019 · 3 comments
Closed

Upload a file to Databricks workspace #87

matallanas opened this issue Oct 30, 2019 · 3 comments
Labels
wontfix This will not be worked on

Comments

@matallanas
Copy link

Hi, I am trying to upload to a databricks with a specific name specified in the target location of command.
However, it creates a folder in which the file is inside.
e.g.
Add-DatabricksDBFSFile -LocalRootFolder "fileToUpload/" -FilePattern "InitScript.sh" -TargetLocation "/databricks/init/init-script.sh"

But in databricks the file is created in --> dbfs:/databricks/init/init-script.sh/InitScript.sh

I can do this with calling the API and making a put.Maybe is interestng to create a Method to uploadfiles directly with the a concrete name.

Thank you very much.

@simondmorias
Copy link
Member

Your command should be:

Add-DatabricksDBFSFile -LocalRootFolder "fileToUpload/" -FilePattern "InitScript.sh" -TargetLocation "/databricks/init/"

That will upload the single file.

@matallanas
Copy link
Author

Yeah I know that I can upload that way, however I want to create it with another name by specifying in the route of the target location. Is it possible?

@simondmorias simondmorias added the wontfix This will not be worked on label Apr 8, 2020
@simondmorias
Copy link
Member

Closing as won't fix (sorry). It can be done but not worth the effort. Though would be accepted as PR if you want to do yourself. Thanks for feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants