<?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 Ranger and  creating database pointing to  S3   not working in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157217#M119624</link>
    <description>&lt;P&gt;Unable to create table pointing to S3 after enabling Ranger. &lt;/P&gt;&lt;P&gt;This is database we created before enabling Ranger. &lt;/P&gt;&lt;PRE&gt;SET fs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem;
SET fs.s3a.access.key=xxxxxxx;
SET fs.s3a.secret.key=yyyyyyyyyyyyyyy;


CREATE DATABASE IF NOT EXISTS backup_s3a1
COMMENT "s3a schema test"
LOCATION "s3a://gd-de-dp-db-hcat-backup-schema/";&lt;/PRE&gt;&lt;P&gt;After Ranger was enabled, we try to create another database but it is throwing error. &lt;/P&gt;&lt;PRE&gt;0: jdbc:hive2://usw2dxdpmn01.local:&amp;gt; SET fs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem;
Error: Error while processing statement: Cannot modify fs.s3a.impl at runtime. It is not in list of params that are allowed to be modified at runtime (state=42000,code=1)

&lt;/PRE&gt;&lt;P&gt;How do I whitelist the fs.s3*  parameters  in Ranger ? &lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2016 10:19:43 GMT</pubDate>
    <dc:creator>anand_ranganath</dc:creator>
    <dc:date>2016-12-16T10:19:43Z</dc:date>
    <item>
      <title>Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157217#M119624</link>
      <description>&lt;P&gt;Unable to create table pointing to S3 after enabling Ranger. &lt;/P&gt;&lt;P&gt;This is database we created before enabling Ranger. &lt;/P&gt;&lt;PRE&gt;SET fs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem;
SET fs.s3a.access.key=xxxxxxx;
SET fs.s3a.secret.key=yyyyyyyyyyyyyyy;


CREATE DATABASE IF NOT EXISTS backup_s3a1
COMMENT "s3a schema test"
LOCATION "s3a://gd-de-dp-db-hcat-backup-schema/";&lt;/PRE&gt;&lt;P&gt;After Ranger was enabled, we try to create another database but it is throwing error. &lt;/P&gt;&lt;PRE&gt;0: jdbc:hive2://usw2dxdpmn01.local:&amp;gt; SET fs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem;
Error: Error while processing statement: Cannot modify fs.s3a.impl at runtime. It is not in list of params that are allowed to be modified at runtime (state=42000,code=1)

&lt;/PRE&gt;&lt;P&gt;How do I whitelist the fs.s3*  parameters  in Ranger ? &lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 10:19:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157217#M119624</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-12-16T10:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157218#M119625</link>
      <description>&lt;P&gt;I am not sure if this is Ranger related. Could you please provide hiveserver2.log?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 01:24:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157218#M119625</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-12-17T01:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157219#M119626</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3560/anandranganathan.html" nodeid="3560"&gt;@Anandha L Ranganathan&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I don't know if this will help, but you could try setting the parameters in the xml files rather than at runtime. &lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.github.io/hdp-aws/s3-security/index.html#configuring-authentication" target="_blank"&gt;http://hortonworks.github.io/hdp-aws/s3-security/index.html#configuring-authentication&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 03:14:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157219#M119626</guid>
      <dc:creator>Dominika</dc:creator>
      <dc:date>2016-12-17T03:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157220#M119627</link>
      <description>&lt;P&gt;Try using a configuration file that stores your AWS credentials. Follow the instructions here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.github.io/hdp-aws/s3-security/#create-a-credential-file" target="_blank"&gt;https://hortonworks.github.io/hdp-aws/s3-security/#create-a-credential-file&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 04:55:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157220#M119627</guid>
      <dc:creator>bmathew</dc:creator>
      <dc:date>2016-12-18T04:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157221#M119628</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10146/dbialek.html" nodeid="10146"&gt;@Dominika Bialek&lt;/A&gt; ,  &lt;A rel="user" href="https://community.cloudera.com/users/3076/bmathew.html" nodeid="3076"&gt;@Binu Mathew&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I configured the credentials in the core-site.xml and always returns "undefined" when I am trying to see the values using below commands.   This is in our "pre-dev" environment and Ranger is enabled. In our other environment where Ranger is not installed , we are not facing this problem. &lt;/P&gt;&lt;PRE&gt;0: jdbc:hive2://usw2dxdpmn01:10010&amp;gt; set  fs.s3a.impl;
+-----------------------------------------------------+--+
|                         set                         |
+-----------------------------------------------------+--+
| fs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem  |
+-----------------------------------------------------+--+
1 row selected (0.006 seconds)
0: jdbc:hive2://usw2dxdpmn01:10010&amp;gt; set fs.s3a.access.key;
+---------------------------------+--+
|               set               |
+---------------------------------+--+
| fs.s3a.access.key is undefined  |
+---------------------------------+--+
1 row selected (0.005 seconds)
0: jdbc:hive2://usw2dxdpmn01:10010&amp;gt; set fs.s3a.secret.key;
+---------------------------------+--+
|               set               |
+---------------------------------+--+
| fs.s3a.secret.key is undefined  |
+---------------------------------+--+
1 row selected (0.005 seconds)
&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Dec 2016 16:15:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157221#M119628</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-12-19T16:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157222#M119629</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3076/bmathew.html" nodeid="3076"&gt;@Binu Mathew&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I am getting error saying AWS credential from any provider in the chain error. &lt;/P&gt;&lt;PRE&gt;I am able to read files from S3 by directly passing access and secret key. 

[hdfs@usw2dxdpmn01 root]$ hadoop fs -Dfs.s3a.access.key=xxxxxxxxxxxx -Dfs.s3a.secret.key=YYYYYYYYYYYYYYY -ls s3a://gd-data-stage/
Found 7 items
drwxrwxrwx   -          0 1970-01-01 00:00 s3a://gd-data-stage/cluster-db
drwxrwxrwx   -          0 1970-01-01 00:00 s3a://gd-data-stage/user
drwxrwxrwx   -          0 1970-01-01 00:00 s3a://gd-data-stage/ut1-upload



Then creating credential file. 

[hdfs@usw2dxdpmn01 root]$ hadoop credential create fs.s3a.access.key -value xxxxxxxxxxxx     -provider jceks://file/tmp/gd-data-stage.jceks
fs.s3a.access.key has been successfully created.
org.apache.hadoop.security.alias.JavaKeyStoreProvider has been updated.




[hdfs@usw2dxdpmn01 root]$ hadoop credential create fs.s3a.secret.key -value YYYYYYYYYYYYYYY  -provider  jceks://file/tmp/gd-data-stage.jceks
fs.s3a.secret.key has been successfully created.
org.apache.hadoop.security.alias.JavaKeyStoreProvider has been updated.




[hdfs@usw2dxdpmn01 root]$  hadoop credential list -provider jceks://file/tmp/gd-data-stage.jceks
Listing aliases for CredentialProvider: jceks://file/tmp/gd-data-stage.jceks
fs.s3a.secret.key
fs.s3a.access.key






[hdfs@usw2dxdpmn01 root]$ hadoop fs  -Dhadoop.security.credential.provider.path=jceks://file/tmp/gd-data-stage.jceks -ls s3a://gd-data-stage
-ls: Fatal internal error
com.amazonaws.AmazonClientException: Unable to load AWS credentials from any provider in the chain
	at com.amazonaws.auth.AWSCredentialsProviderChain.getCredentials(AWSCredentialsProviderChain.java:117)
	at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3521)
	at com.amazonaws.services.s3.AmazonS3Client.headBucket(AmazonS3Client.java:1031)
	at com.amazonaws.services.s3.AmazonS3Client.doesBucketExist(AmazonS3Client.java:994)
	at org.apache.hadoop.fs.s3a.S3AFileSystem.initialize(S3AFileSystem.java:297)
	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
	at org.apache.hadoop.fs.shell.PathData.expandAsGlob(PathData.java:325)
	at org.apache.hadoop.fs.shell.Command.expandArgument(Command.java:235)
	at org.apache.hadoop.fs.shell.Command.expandArguments(Command.java:218)
	at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:201)
	at org.apache.hadoop.fs.shell.Command.run(Command.java:165)
	at org.apache.hadoop.fs.FsShell.run(FsShell.java:287)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
	at org.apache.hadoop.fs.FsShell.main(FsShell.java:340)

&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Dec 2016 17:07:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157222#M119629</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-12-19T17:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157223#M119630</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/264/stevel.html" nodeid="264"&gt;@stevel&lt;/A&gt; Do you know if using S3 is supported in Ranger?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 00:37:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157223#M119630</guid>
      <dc:creator>Dominika</dc:creator>
      <dc:date>2016-12-20T00:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157224#M119631</link>
      <description>&lt;P&gt;S3 is not supported in Ranger as of now&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 00:40:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157224#M119631</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-12-20T00:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157225#M119632</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/218/rmani.html" nodeid="218"&gt;@Ramesh Mani&lt;/A&gt; &lt;/P&gt;&lt;P&gt; This is just hiveserver2 configuration. The underlying file system is untouched. My expectation is Hive should work as usual. Please correct me if my understanding is incorrect after enabling Ranger. &lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 06:34:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157225#M119632</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-12-20T06:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157226#M119633</link>
      <description>&lt;P&gt;I resolved the problem by adding this configuration  in custom-hiveserver2-site.xml &lt;/P&gt;&lt;PRE&gt;hive.security.authorization.sqlstd.confwhitelist.append=fs\.s3a\..*|fs\.s3n\..* |&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:30:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157226#M119633</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-12-20T10:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157227#M119634</link>
      <description>&lt;P&gt;S3 Seems to be working fine with HDP 2.6 as You have the option to Define URL in Ranger Hive Policy Section &lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 22:18:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157227#M119634</guid>
      <dc:creator>knadar</dc:creator>
      <dc:date>2017-08-11T22:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157228#M119635</link>
      <description>&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_cloud-data-access/content/s3-get-started.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_cloud-data-access/content/s3-get-started.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 22:31:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157228#M119635</guid>
      <dc:creator>knadar</dc:creator>
      <dc:date>2017-08-11T22:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger and  creating database pointing to  S3   not working</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157229#M119636</link>
      <description>&lt;P&gt;This is a new option available as TP in HDP 2.6.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 01:17:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-and-creating-database-pointing-to-S3-not-working/m-p/157229#M119636</guid>
      <dc:creator>Dominika</dc:creator>
      <dc:date>2017-08-12T01:17:25Z</dc:date>
    </item>
  </channel>
</rss>

