<?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 Pass the hadoop.security.credential.provider.path to beeline string in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Pass-the-hadoop-security-credential-provider-path-to-beeline/m-p/221341#M183215</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I followed the below document to create my hadoop.security.credential.provider.path file and i am trying to pass it from beeline command string. &lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_cloud-data-access/content/s3-credential-providers.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_cloud-data-access/content/s3-credential-providers.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But when ever i try to create a external table from S3 data it throws the below error. &lt;/P&gt;&lt;P&gt;i even followed the steps from &lt;A href="https://community.hortonworks.com/questions/54123/how-to-pass-hadoopsecuritycredentialproviderpath-i.html?childToView=212393" target="_blank"&gt;https://community.hortonworks.com/questions/54123/how-to-pass-hadoopsecuritycredentialproviderpath-i.html?childToView=212393&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I have whitelisted the property hadoop.security.credential.provider.path in such a way that it can be set at connection time in the JDBC connection string between beeline and hiveserver2. In hive-site:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;hive.security.authorization.sqlstd.confwhitelist.append = hadoop.security.credential.provider.path&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Also tried passing the credential path as part of jdbc string as suggested from above forum answer but no luck it still throws the same error. Can someone please help me.&lt;/P&gt;&lt;P&gt;bash-4.2$ beeline --hive-conf hadoop.security.credential.provider.path=jceks://hdfs@clustername/pedev/user/myuser/myuser.jceks -u "jdbc:hive2://zookeeperlist:2181/default;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;"&lt;/P&gt;&lt;P&gt;Beeline version 1.2.1000.2.6.3.0-235 by Apache Hive&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://hostname:2&amp;gt; CREATE EXTERNAL TABLE &lt;CODE&gt;HDFSaudit_data8&lt;/CODE&gt;(&lt;CODE&gt;access&lt;/CODE&gt; string, &lt;CODE&gt;action&lt;/CODE&gt;string, &lt;CODE&gt;agenthost&lt;/CODE&gt; string , &lt;CODE&gt;cliip&lt;/CODE&gt; string , &lt;CODE&gt;clitype&lt;/CODE&gt; string , &lt;CODE&gt;enforcer&lt;/CODE&gt; string , &lt;CODE&gt;event_count&lt;/CODE&gt; bigint , &lt;CODE&gt;event_dur_ms&lt;/CODE&gt; bigint , &lt;CODE&gt;evttime&lt;/CODE&gt;timestamp , &lt;CODE&gt;id&lt;/CODE&gt; string , &lt;CODE&gt;logtype&lt;/CODE&gt; string , &lt;CODE&gt;policy&lt;/CODE&gt; bigint , &lt;CODE&gt;reason&lt;/CODE&gt; string , &lt;CODE&gt;repo&lt;/CODE&gt; string , &lt;CODE&gt;repotype&lt;/CODE&gt; bigint , &lt;CODE&gt;reqdata&lt;/CODE&gt; string , &lt;CODE&gt;requser&lt;/CODE&gt; string , &lt;CODE&gt;restype&lt;/CODE&gt; string , &lt;CODE&gt;resource&lt;/CODE&gt; string , &lt;CODE&gt;result&lt;/CODE&gt; bigint , &lt;CODE&gt;seq_num&lt;/CODE&gt; bigint , &lt;CODE&gt;sess&lt;/CODE&gt; string ) ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe' STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3a://bucketname/hivetest2';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:java.io.InterruptedIOException: doesBucketExist on bucketname: com.amazonaws.AmazonClientException: No AWS Credentials provided by BasicAWSCredentialsProvider EnvironmentVariableCredentialsProvider SharedInstanceProfileCredentialsProvider : com.amazonaws.AmazonClientException: Unable to load credentials from Amazon EC2 metadata service) (state=08S01,code=1)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 20:22:43 GMT</pubDate>
    <dc:creator>prashanth_rames</dc:creator>
    <dc:date>2018-08-15T20:22:43Z</dc:date>
  </channel>
</rss>

