Looking for Upload file to dbfs using "/api/2.0/dbfs/put"
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 06:56 AM
Hello,
I am trying to upload the file from local linux machine to dbfs using request.post(<URI>,<Headers>, params={"path": "dbfs:/tmp", "contents": local_path}) and getting the error b'{"error_code":"INVALID_PARAMETER_VALUE","message":"You must provide the upload path!"}'
local_path -: either csv file or JAR file
referring:- https://docs.databricks.com/api/workspace/dbfs/put
I am not able to understand how to send that file to the dbfs using this call.
Can anyone tell me what exactly I send in request?
Thanks in advance,
Parimal Patil