<?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>question Re: NoAuthWithAWSException while running create database in hive and hdfs ls in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NoAuthWithAWSException-while-running-create-database-in-hive/m-p/305697#M222546</link>
    <description>&lt;P&gt;This was resolved by enabling&amp;nbsp;&lt;SPAN&gt;IMDSv1&lt;/SPAN&gt; on the idbroker ec2 instance.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html" target="_blank"&gt;https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;aws ec2 modify-instance-metadata-options \
    --instance-id [idbroker instance id] \
    --http-tokens optional \
    --http-endpoint enabled&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 09 Nov 2020 20:06:50 GMT</pubDate>
    <dc:creator>kmc</dc:creator>
    <dc:date>2020-11-09T20:06:50Z</dc:date>
    <item>
      <title>NoAuthWithAWSException while running create database in hive and hdfs ls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NoAuthWithAWSException-while-running-create-database-in-hive/m-p/305142#M222324</link>
      <description>&lt;P&gt;While trying to create a database through hive in Hue or using jdbc, I reveive the following error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error while compiling statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.ddl.DDLTask. java.nio.file.AccessDeniedException: [bucket]: org.apache.hadoop.fs.s3a.auth.NoAuthWithAWSException: Missing required credential provisioning for Cloud Access Broker. It is expected that keys and secrets be provisioned as aliases or that Cloud Access Broker be running on a node with an Instance Profile attached.&lt;/LI-CODE&gt;&lt;P&gt;If I ssh into a node and run hdfs dfs -ls s3a://[bucket-name]/ I also see&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;20/10/29 19:42:47 INFO impl.MetricsSystemImpl: s3a-file-system metrics system started
Oct 29, 2020 7:42:47 PM org.apache.knox.gateway.shell.KnoxSession createClient
INFO: Using default JAAS configuration
20/10/29 19:42:48 INFO Configuration.deprecation: No unit for fs.s3a.connection.request.timeout(0) assuming SECONDS
20/10/29 19:42:48 ERROR common.DefaultRequestExecutor: Error executing request: org.apache.knox.gateway.shell.ErrorResponse: https://[broker-name]:8444/gateway/aws-cab/cab/api/v1/credentials: HTTP/1.1 500 Internal Server Error
20/10/29 19:42:48 ERROR idbroker.AbstractIDBClient: Cloud Access Broker response: {
  "error": "Missing required credential provisioning for Cloud Access Broker. It is expected that keys and secrets be provisioned as aliases or that Cloud Access Broker be running on a node with an Instance Profile attached."
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 11:23:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NoAuthWithAWSException-while-running-create-database-in-hive/m-p/305142#M222324</guid>
      <dc:creator>kmc</dc:creator>
      <dc:date>2026-04-21T11:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: NoAuthWithAWSException while running create database in hive and hdfs ls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NoAuthWithAWSException-while-running-create-database-in-hive/m-p/305697#M222546</link>
      <description>&lt;P&gt;This was resolved by enabling&amp;nbsp;&lt;SPAN&gt;IMDSv1&lt;/SPAN&gt; on the idbroker ec2 instance.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html" target="_blank"&gt;https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;aws ec2 modify-instance-metadata-options \
    --instance-id [idbroker instance id] \
    --http-tokens optional \
    --http-endpoint enabled&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Nov 2020 20:06:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NoAuthWithAWSException-while-running-create-database-in-hive/m-p/305697#M222546</guid>
      <dc:creator>kmc</dc:creator>
      <dc:date>2020-11-09T20:06:50Z</dc:date>
    </item>
  </channel>
</rss>

