cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Looking for Upload file to dbfs using "/api/2.0/dbfs/put"

parimalpatil28
New Contributor III

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

0 REPLIES 0

Connect with Databricks Users in Your Area

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