<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Looking for Upload file to dbfs using &amp;quot;/api/2.0/dbfs/put&amp;quot; in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/looking-for-upload-file-to-dbfs-using-quot-api-2-0-dbfs-put-quot/m-p/43647#M27529</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to upload the file from local linux machine to dbfs using request.post(&amp;lt;URI&amp;gt;,&amp;lt;Headers&amp;gt;,&amp;nbsp;&lt;SPAN&gt;params&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;"path"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"dbfs:/tmp"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"contents"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;local_path&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;) and getting the error&lt;FONT color="#993366"&gt;&amp;nbsp;b'{"error_code":"INVALID_PARAMETER_VALUE","message":"You must provide the upload path!"}'&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;local_path -: either csv file or JAR file&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;referring&lt;/FONT&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;:- &lt;A href="https://docs.databricks.com/api/workspace/dbfs/put" target="_blank"&gt;https://docs.databricks.com/api/workspace/dbfs/put&lt;/A&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;I am not able to understand how to send that file to the dbfs using this call.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;Can anyone tell me what exactly I send in request?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;Thanks in advance,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;Parimal Patil&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 13:56:03 GMT</pubDate>
    <dc:creator>parimalpatil28</dc:creator>
    <dc:date>2023-09-05T13:56:03Z</dc:date>
    <item>
      <title>Looking for Upload file to dbfs using "/api/2.0/dbfs/put"</title>
      <link>https://community.databricks.com/t5/data-engineering/looking-for-upload-file-to-dbfs-using-quot-api-2-0-dbfs-put-quot/m-p/43647#M27529</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to upload the file from local linux machine to dbfs using request.post(&amp;lt;URI&amp;gt;,&amp;lt;Headers&amp;gt;,&amp;nbsp;&lt;SPAN&gt;params&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;"path"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"dbfs:/tmp"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"contents"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;local_path&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;) and getting the error&lt;FONT color="#993366"&gt;&amp;nbsp;b'{"error_code":"INVALID_PARAMETER_VALUE","message":"You must provide the upload path!"}'&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;local_path -: either csv file or JAR file&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;referring&lt;/FONT&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;:- &lt;A href="https://docs.databricks.com/api/workspace/dbfs/put" target="_blank"&gt;https://docs.databricks.com/api/workspace/dbfs/put&lt;/A&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;I am not able to understand how to send that file to the dbfs using this call.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;Can anyone tell me what exactly I send in request?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;Thanks in advance,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;FONT color="#000000"&gt;Parimal Patil&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 13:56:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/looking-for-upload-file-to-dbfs-using-quot-api-2-0-dbfs-put-quot/m-p/43647#M27529</guid>
      <dc:creator>parimalpatil28</dc:creator>
      <dc:date>2023-09-05T13:56:03Z</dc:date>
    </item>
  </channel>
</rss>

