<?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 Re: mount s3 bucket with specific endpoint in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26153#M18266</link>
    <description>&lt;P&gt;Hi @Kevin Ostheimer​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or &lt;B&gt;mark an answer as best&lt;/B&gt;? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Nov 2022 14:10:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-27T14:10:42Z</dc:date>
    <item>
      <title>mount s3 bucket with specific endpoint</title>
      <link>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26148#M18261</link>
      <description>&lt;P&gt;Environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;AZURE-Databricks&lt;/LI&gt;&lt;LI&gt;Language: Python&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can access my s3 bucket via:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;boto3.client('s3', endpoint_url='https://gateway.storjshare.io', ... )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and it also works via:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;boto3.resource('s3', endpoint_url='https://gateway.storjshare.io', ... )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As a next step, I want to mount this S3 with the specific endpoint in AZURE-Databricks, but there is not even an option for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I have to write the mount routine in the notebook?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 13:46:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26148#M18261</guid>
      <dc:creator>impulsleistung</dc:creator>
      <dc:date>2022-10-23T13:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: mount s3 bucket with specific endpoint</title>
      <link>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26149#M18262</link>
      <description>&lt;P&gt;In AWS Console, in "My security credentials," please generate a new access key and secret key,&lt;/P&gt;&lt;P&gt;Set them as env variables:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sc._jsc.hadoopConfiguration().set("fs.s3n.awsAccessKeyId", ACCESS_KEY)
sc._jsc.hadoopConfiguration().set("fs.s3n.awsSecretAccessKey", SECRET_KEY)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now you can read files from your S3 bucket directly&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; df = spark.read.csv("https://gateway.storjshare.io/test.csv”", header=True, inferSchema=True)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you can as well mount a bucket permanently using that command &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.fs.mount(f"s3a://{ACCESS_KEY}:{SECRET_KEY}@{aws_bucket_name}", f"/mnt/{mount_name}")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It is safer to use a key vault to store your access key and secret key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 20:39:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26149#M18262</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-10-23T20:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: mount s3 bucket with specific endpoint</title>
      <link>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26151#M18264</link>
      <description>&lt;P&gt;This won't work. I'm using AZURE-Databricks and I want to read/write objects from/to an S3 bucket with a specific endpoint → endpoint_url='https://gateway.storjshare.io'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is not a I/O operation from Databricks to AWS. In addition, this is actually important because the Azure-Datafactory only support reading and NOT writing back. So far, there's no user-friendly way to do so.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 18:16:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26151#M18264</guid>
      <dc:creator>impulsleistung</dc:creator>
      <dc:date>2022-10-25T18:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: mount s3 bucket with specific endpoint</title>
      <link>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26152#M18265</link>
      <description>&lt;P&gt;Hi! I just tried, I'm on AZURE and the endpoint is proprietary, s. my reply&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 18:17:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26152#M18265</guid>
      <dc:creator>impulsleistung</dc:creator>
      <dc:date>2022-10-25T18:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: mount s3 bucket with specific endpoint</title>
      <link>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26153#M18266</link>
      <description>&lt;P&gt;Hi @Kevin Ostheimer​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or &lt;B&gt;mark an answer as best&lt;/B&gt;? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 14:10:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mount-s3-bucket-with-specific-endpoint/m-p/26153#M18266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-27T14:10:42Z</dc:date>
    </item>
  </channel>
</rss>

