<?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: S3 connectivity using impala shell in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/S3-connectivity-using-impala-shell/m-p/295947#M85491</link>
    <description>&lt;P&gt;Hi Seth&lt;/P&gt;&lt;P&gt;As described in the document you linked, I added the following entries to my core-site.xml&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;fs.s3a.access.key&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;your_access_key&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;fs.s3a.secret.key&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;your_secret_key&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;I then restarted Impala and hive services.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i issue impala shell command to create a table whose files are stored on S3&amp;nbsp; i am still getting an error about S3 credentials not being available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the command -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;impala-shell -i serverName -d schemaName -q "CREATE TABLE s3_test_tbl( \&lt;BR /&gt;yr_mnth STRING , \&lt;BR /&gt;p_id DOUBLE , \&lt;BR /&gt;p_full_na STRING&amp;nbsp;&lt;BR /&gt;) \&lt;BR /&gt;STORED AS PARQUET \&lt;BR /&gt;LOCATION 's3a://bucketname/path/'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the error i get -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;No AWS Credentials provided by BasicAWSCredentialsProvider EnvironmentVariableCredentialsProvider SharedInstanceProfileCredentialsProvider : com.amazonaws.SdkClientException: &lt;STRONG&gt;Unable to load credentials from service endpoint&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CAUSED BY: InterruptedIOException: doesBucketExist on biapps-snowflake-sbx-ascap: com.amazonaws.AmazonClientException: No AWS Credentials provided by BasicAWSCredentialsProvider EnvironmentVariableCredentialsProvider SharedInstanceProfileCredentialsProvider : com.amazonaws.SdkClientException: Unable to load credentials from service endpoint&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CAUSED BY: AmazonClientException: No AWS Credentials provided by BasicAWSCredentialsProvider EnvironmentVariableCredentialsProvider SharedInstanceProfileCredentialsProvider : com.amazonaws.SdkClientException: Unable to load credentials from service endpoint&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CAUSED BY: SdkClientException: Unable to load credentials from service endpoint&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CAUSED BY: SocketTimeoutException: connect timed out&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 18:53:53 GMT</pubDate>
    <dc:creator>hsahay</dc:creator>
    <dc:date>2020-05-14T18:53:53Z</dc:date>
    <item>
      <title>S3 connectivity using impala shell</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/S3-connectivity-using-impala-shell/m-p/83795#M85488</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to do the following operations in Cloudera machine for impala using impala-shell&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-7-x/topics/impala_s3.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.cloudera.com/documentation/enterprise/5-7-x/topics/impala_s3.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this Cloudera machine I verified the S3 connectivity using the following command and was able to access&lt;/P&gt;
&lt;P&gt;hdfs dfs -Dfs.s3a.access.key=myaccesskey -Dfs.s3a.secret.key=mysecretkey -ls s3a://myclouderaraj/root&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Updated [root@quickstart ~]# cd /etc/hadoop/conf/hdfs-site.xml file for access and secret key.&lt;/P&gt;
&lt;P&gt;Restarted all the services, also tried restarting cloudera-scm-server.&lt;/P&gt;
&lt;P&gt;Then ran the following from impala-shell&lt;/P&gt;
&lt;PRE&gt;[localhost:21000] &amp;gt; create database db_on_hdfs;
[localhost:21000] &amp;gt; use db_on_hdfs;
[localhost:21000] &amp;gt; create table mostly_on_hdfs (x int) partitioned by (year int);
[localhost:21000] &amp;gt; alter table mostly_on_hdfs add partition (year=2013);
[localhost:21000] &amp;gt; alter table mostly_on_hdfs add partition (year=2014);
[localhost:21000] &amp;gt; alter table mostly_on_hdfs add partition (year=2015) location 's3a://impala-demo/dir1/dir2/dir3/t1';&lt;/PRE&gt;
&lt;P&gt;[quickstart.cloudera:21000] &amp;gt; alter table mostly_on_hdfs add partition (year=2015) LOCATION 's3a://myclouderaraj/root';&lt;BR /&gt;Query: alter table mostly_on_hdfs add partition (year=2015) LOCATION 's3a://myclouderaraj/root'&lt;BR /&gt;ERROR: AnalysisException: null&lt;BR /&gt;CAUSED BY: AmazonClientException: Unable to load AWS credentials from any provider in the chain&lt;/P&gt;
&lt;P&gt;[quickstart.cloudera:21000] &amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Rajesh&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:59:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/S3-connectivity-using-impala-shell/m-p/83795#M85488</guid>
      <dc:creator>Nukala</dc:creator>
      <dc:date>2022-09-16T13:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: S3 connectivity using impala shell</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/S3-connectivity-using-impala-shell/m-p/83843#M85489</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I was able to run the same query by specifying like this. Not sure does the one which is failed requires any more&amp;nbsp;configuration to be set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;alter table mostly_on_hdfs add partition (year=2015) location 's3a://AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY@myclouderaraj/root';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My intension of running these queries to get metadata and lineage information of S3 items in Cloudera Navigator. But I see nothing related to S3 in Cloudera Navigator.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rajesh&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 13:40:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/S3-connectivity-using-impala-shell/m-p/83843#M85489</guid>
      <dc:creator>Nukala</dc:creator>
      <dc:date>2018-12-13T13:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: S3 connectivity using impala shell</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/S3-connectivity-using-impala-shell/m-p/83852#M85490</link>
      <description>&lt;P&gt;Yes you need to add it to core-site.xml for Impala to have this configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="body conbody"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="body conbody"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="body conbody"&gt;=&amp;gt;&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-9-x/topics/impala_s3.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-9-x/topics/impala_s3.html&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Dec 2018 14:57:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/S3-connectivity-using-impala-shell/m-p/83852#M85490</guid>
      <dc:creator>seth</dc:creator>
      <dc:date>2018-12-13T14:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: S3 connectivity using impala shell</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/S3-connectivity-using-impala-shell/m-p/295947#M85491</link>
      <description>&lt;P&gt;Hi Seth&lt;/P&gt;&lt;P&gt;As described in the document you linked, I added the following entries to my core-site.xml&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;fs.s3a.access.key&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;your_access_key&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;fs.s3a.secret.key&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;your_secret_key&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;I then restarted Impala and hive services.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i issue impala shell command to create a table whose files are stored on S3&amp;nbsp; i am still getting an error about S3 credentials not being available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the command -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;impala-shell -i serverName -d schemaName -q "CREATE TABLE s3_test_tbl( \&lt;BR /&gt;yr_mnth STRING , \&lt;BR /&gt;p_id DOUBLE , \&lt;BR /&gt;p_full_na STRING&amp;nbsp;&lt;BR /&gt;) \&lt;BR /&gt;STORED AS PARQUET \&lt;BR /&gt;LOCATION 's3a://bucketname/path/'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the error i get -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;No AWS Credentials provided by BasicAWSCredentialsProvider EnvironmentVariableCredentialsProvider SharedInstanceProfileCredentialsProvider : com.amazonaws.SdkClientException: &lt;STRONG&gt;Unable to load credentials from service endpoint&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CAUSED BY: InterruptedIOException: doesBucketExist on biapps-snowflake-sbx-ascap: com.amazonaws.AmazonClientException: No AWS Credentials provided by BasicAWSCredentialsProvider EnvironmentVariableCredentialsProvider SharedInstanceProfileCredentialsProvider : com.amazonaws.SdkClientException: Unable to load credentials from service endpoint&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CAUSED BY: AmazonClientException: No AWS Credentials provided by BasicAWSCredentialsProvider EnvironmentVariableCredentialsProvider SharedInstanceProfileCredentialsProvider : com.amazonaws.SdkClientException: Unable to load credentials from service endpoint&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CAUSED BY: SdkClientException: Unable to load credentials from service endpoint&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CAUSED BY: SocketTimeoutException: connect timed out&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 18:53:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/S3-connectivity-using-impala-shell/m-p/295947#M85491</guid>
      <dc:creator>hsahay</dc:creator>
      <dc:date>2020-05-14T18:53:53Z</dc:date>
    </item>
  </channel>
</rss>

