<?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: dfs commands in Hive/beeline after enabling Ranger plugin in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/97030#M60302</link>
    <description>&lt;P&gt;DFS commands are restricted in Hive when authorization is enabled, either through Ranger or SQL std authorization. &lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 02:06:05 GMT</pubDate>
    <dc:creator>bganesan</dc:creator>
    <dc:date>2019-04-05T02:06:05Z</dc:date>
    <item>
      <title>dfs commands in Hive/beeline after enabling Ranger plugin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/97029#M60301</link>
      <description>&lt;P&gt;After enabling Ranger Plugin for Hive, I was running a "dfs -ls" in hive/ beeline to list hdfs files. I'm getting the following error :&lt;/P&gt;&lt;PRE&gt;jdbc:hive2://vserver69901.example.com&amp;gt; dfs -ls ;Error:
 Error while processing statement: Permission denied: user [ambari] does
 not have privilege for [DFS] command (state=,code=1)&lt;/PRE&gt;&lt;P&gt;Do we need to update/enable  any other properties. hadoop fs -ls works without any issues&lt;/P&gt;&lt;P&gt;The user has admin access in Ranger. &lt;STRONG&gt;The storage is on Isilon , so the HDFS Ranger plugin cannot be enabled. &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;2015-11-12 17:07:31,980 INFO  [HiveServer2-Handler-Pool: Thread-46]: operation.Operation (HiveCommandOperation.java:setupSessionIO(69)) - Putting temp output to file /tmp/hive/012f5aa7-fa31-4fb2-8cd5-4f3fe3f3120624919258595801789.pipeout
2015-11-12 17:07:31,981 ERROR [HiveServer2-Handler-Pool: Thread-46]: processors.CommandUtil (CommandUtil.java:authorizeCommand(66)) - Error authorizing command [-ls]
org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException: Permission denied: user [ambari] does not have privilege for [DFS] command
at com.xasecure.authorization.hive.authorizer.XaSecureHiveAuthorizer.handleDfsCommand(XaSecureHiveAuthorizer.java:644)
at com.xasecure.authorization.hive.authorizer.XaSecureHiveAuthorizer.checkPrivileges(XaSecureHiveAuthorizer.java:227)
at org.apache.hadoop.hive.ql.processors.CommandUtil.authorizeCommandThrowEx(CommandUtil.java:86)
at org.apache.hadoop.hive.ql.processors.CommandUtil.authorizeCommand(CommandUtil.java:59)
at org.apache.hadoop.hive.ql.processors.DfsProcessor.run(DfsProcessor.java:71)
at org.apache.hive.service.cli.operation.HiveCommandOperation.runInternal(HiveCommandOperation.java:105)
at org.apache.hive.service.cli.operation.Operation.run(Operation.java:256)
at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:376)
at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:363)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:79)
at org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:37)
at org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:64)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671)
at org.apache.hadoop.hive.shims.HadoopShimsSecure.doAs(HadoopShimsSecure.java:536)
at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:60)
at com.sun.proxy.$Proxy32.executeStatementAsync(Unknown Source)
at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:271)
at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:401)
at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)
at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:129
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Apr 2019 02:06:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/97029#M60301</guid>
      <dc:creator>grajagopal</dc:creator>
      <dc:date>2019-04-05T02:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: dfs commands in Hive/beeline after enabling Ranger plugin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/97030#M60302</link>
      <description>&lt;P&gt;DFS commands are restricted in Hive when authorization is enabled, either through Ranger or SQL std authorization. &lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 02:06:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/97030#M60302</guid>
      <dc:creator>bganesan</dc:creator>
      <dc:date>2019-04-05T02:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: dfs commands in Hive/beeline after enabling Ranger plugin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/97031#M60303</link>
      <description>&lt;P&gt;Thanks Balaji for the explanation.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 02:06:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/97031#M60303</guid>
      <dc:creator>grajagopal</dc:creator>
      <dc:date>2019-04-05T02:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: dfs commands in Hive/beeline after enabling Ranger plugin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/97032#M60304</link>
      <description>&lt;P&gt;How can we remove the restriction from the hive, is there any property which we can enable/set for whitelisting the user or command ?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt; : After going through the hive documentation (&lt;A href="https://cwiki.apache.org/confluence/display/Hive/SQL+Standard+Based+Hive+Authorization"&gt;https://cwiki.apache.org/confluence/display/Hive/SQL+Standard+Based+Hive+Authorization&lt;/A&gt;), it has been stated that "Commands such as dfs, add, delete, compile, and reset are disabled when this authorization is enabled"&lt;/P&gt;&lt;P&gt;I really wanted to understand the logic behind the above statement.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 02:06:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/97032#M60304</guid>
      <dc:creator>ankesh_maheshwa</dc:creator>
      <dc:date>2019-04-05T02:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: dfs commands in Hive/beeline after enabling Ranger plugin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/287081#M212849</link>
      <description>&lt;P&gt;Hi, what is the solution to this error?. thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 06:19:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/dfs-commands-in-Hive-beeline-after-enabling-Ranger-plugin/m-p/287081#M212849</guid>
      <dc:creator>West</dc:creator>
      <dc:date>2020-01-08T06:19:06Z</dc:date>
    </item>
  </channel>
</rss>

