<?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 Spark streaming is not able to assume role in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/spark-streaming-is-not-able-to-assume-role/m-p/45641#M27960</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to assume an IAM role in spark streaming with "s3-sqs" format. It is giving a&amp;nbsp;&lt;SPAN&gt;403 error.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;The code is provided below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;.readStream&lt;BR /&gt;  .format(&lt;SPAN&gt;"s3-sqs"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"fileFormat"&lt;/SPAN&gt;, &lt;SPAN&gt;"json"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"roleArn"&lt;/SPAN&gt;, roleArn)&lt;BR /&gt;  .option(&lt;SPAN&gt;"compression"&lt;/SPAN&gt;, &lt;SPAN&gt;"gzip"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"queueUrl"&lt;/SPAN&gt;, sqsUrl)&lt;BR /&gt;  .option(&lt;SPAN&gt;"badRecordsPath"&lt;/SPAN&gt;, badRecordsPath)&lt;BR /&gt;  .option(&lt;SPAN&gt;"maxFilesPerTrigger"&lt;/SPAN&gt;, &lt;SPAN&gt;2500&lt;/SPAN&gt;)&lt;BR /&gt;  .schema(schema)&lt;BR /&gt;  .load&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, the code below is working perfectly fine with the auto-loader&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;.readStream&lt;BR /&gt;  .format(&lt;SPAN&gt;"cloudFiles"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"cloudFiles.roleArn"&lt;/SPAN&gt;, roleArn)&lt;BR /&gt;  .option(&lt;SPAN&gt;"cloudFiles.format"&lt;/SPAN&gt;, &lt;SPAN&gt;"json"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"cloudFiles.maxFileAge"&lt;/SPAN&gt;, &lt;SPAN&gt;"14 days"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"cloudFiles.queueUrl"&lt;/SPAN&gt;, sqsUrl)&lt;BR /&gt;  .option(&lt;SPAN&gt;"cloudFiles.maxFilesPerTrigger"&lt;/SPAN&gt;, &lt;SPAN&gt;2500&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"badRecordsPath"&lt;/SPAN&gt;, badRecordsPath)&lt;BR /&gt;  .schema(schema)&lt;BR /&gt;  .load&lt;/PRE&gt;&lt;P&gt;Can you please support me here?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 22 Sep 2023 09:55:25 GMT</pubDate>
    <dc:creator>Vaibhav1000</dc:creator>
    <dc:date>2023-09-22T09:55:25Z</dc:date>
    <item>
      <title>Spark streaming is not able to assume role</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-is-not-able-to-assume-role/m-p/45641#M27960</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to assume an IAM role in spark streaming with "s3-sqs" format. It is giving a&amp;nbsp;&lt;SPAN&gt;403 error.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;The code is provided below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;.readStream&lt;BR /&gt;  .format(&lt;SPAN&gt;"s3-sqs"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"fileFormat"&lt;/SPAN&gt;, &lt;SPAN&gt;"json"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"roleArn"&lt;/SPAN&gt;, roleArn)&lt;BR /&gt;  .option(&lt;SPAN&gt;"compression"&lt;/SPAN&gt;, &lt;SPAN&gt;"gzip"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"queueUrl"&lt;/SPAN&gt;, sqsUrl)&lt;BR /&gt;  .option(&lt;SPAN&gt;"badRecordsPath"&lt;/SPAN&gt;, badRecordsPath)&lt;BR /&gt;  .option(&lt;SPAN&gt;"maxFilesPerTrigger"&lt;/SPAN&gt;, &lt;SPAN&gt;2500&lt;/SPAN&gt;)&lt;BR /&gt;  .schema(schema)&lt;BR /&gt;  .load&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, the code below is working perfectly fine with the auto-loader&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;.readStream&lt;BR /&gt;  .format(&lt;SPAN&gt;"cloudFiles"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"cloudFiles.roleArn"&lt;/SPAN&gt;, roleArn)&lt;BR /&gt;  .option(&lt;SPAN&gt;"cloudFiles.format"&lt;/SPAN&gt;, &lt;SPAN&gt;"json"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"cloudFiles.maxFileAge"&lt;/SPAN&gt;, &lt;SPAN&gt;"14 days"&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"cloudFiles.queueUrl"&lt;/SPAN&gt;, sqsUrl)&lt;BR /&gt;  .option(&lt;SPAN&gt;"cloudFiles.maxFilesPerTrigger"&lt;/SPAN&gt;, &lt;SPAN&gt;2500&lt;/SPAN&gt;)&lt;BR /&gt;  .option(&lt;SPAN&gt;"badRecordsPath"&lt;/SPAN&gt;, badRecordsPath)&lt;BR /&gt;  .schema(schema)&lt;BR /&gt;  .load&lt;/PRE&gt;&lt;P&gt;Can you please support me here?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Sep 2023 09:55:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-is-not-able-to-assume-role/m-p/45641#M27960</guid>
      <dc:creator>Vaibhav1000</dc:creator>
      <dc:date>2023-09-22T09:55:25Z</dc:date>
    </item>
  </channel>
</rss>

