<?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: Can't execute query - Permission denied?,Can't execute DDL query in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201826#M163833</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/45258/1001438086.html" nodeid="45258"&gt;@Mohammad Shazreen Bin Haini&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Your query is trying to write to /apps location to which "hive" user doesn't have permission.&lt;/P&gt;&lt;P&gt;Change the permission of the folder and try running the query.&lt;/P&gt;&lt;PRE&gt;hdfs dfs -chmod 777 /apps&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 01:58:20 GMT</pubDate>
    <dc:creator>asirna</dc:creator>
    <dc:date>2017-09-27T01:58:20Z</dc:date>
    <item>
      <title>Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201825#M163832</link>
      <description>&lt;P&gt;Hi, I encountered this 'permission denied - 500' error when executing the DDL query.&lt;/P&gt;&lt;PRE&gt;&amp;lt;small&amp;gt;java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:java.security.AccessControlException: Permission denied: user=hive, access=WRITE, inode="/apps":hdfs:hdfs:drwxr-xr-x
	at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:319)
	at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:219)
	at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:190)
	at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1955)
	at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1939)
	at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPathAccess(FSDirectory.java:1913)
	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkAccess(FSNamesystem.java:8751)
	at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.checkAccess(NameNodeRpcServer.java:2089)
	at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.checkAccess(ClientNamenodeProtocolServerSideTranslatorPB.java:1454)
	at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
	at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:640)
	at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:982)
	at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2351)
	at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2347)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)
	at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2345) &amp;lt;/small&amp;gt;&lt;/PRE&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am on admin account. I need help as this is my first time dealing with HDCloud.&lt;BR /&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 23:26:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201825#M163832</guid>
      <dc:creator>1001438086</dc:creator>
      <dc:date>2017-09-26T23:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201826#M163833</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/45258/1001438086.html" nodeid="45258"&gt;@Mohammad Shazreen Bin Haini&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Your query is trying to write to /apps location to which "hive" user doesn't have permission.&lt;/P&gt;&lt;P&gt;Change the permission of the folder and try running the query.&lt;/P&gt;&lt;PRE&gt;hdfs dfs -chmod 777 /apps&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 01:58:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201826#M163833</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-09-27T01:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201827#M163834</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45258/1001438086.html" nodeid="45258"&gt;@Mohammad Shazreen Bin Haini&lt;/A&gt; &lt;/P&gt;&lt;P&gt;If you are using ranger to manage permissions, there should 2 default policies. 1) HDFS policy - that gives hive full permission to read/write to /apps/hive/warehouse directory. 2) Hive policy - that gives hive full permission "hive" user to create, drop databases, tables.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 08:06:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201827#M163834</guid>
      <dc:creator>PranayV</dc:creator>
      <dc:date>2017-09-27T08:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201828#M163835</link>
      <description>&lt;P&gt;If you're querying to default hive table in hive database in HDFS, then do not change access permission.&lt;/P&gt;&lt;P&gt;Originally, hive default warehouse directory in HDFS is "/apps/hive/warehouse".&lt;/P&gt;&lt;P&gt;So you should check the permission of these directories before change permission.&lt;/P&gt;&lt;P&gt;/app : 755   hdfs:hdfs&lt;/P&gt;&lt;P&gt;/app/hive : 755   hdfs:hdfs&lt;/P&gt;&lt;P&gt;/app/hive/warehouse : 777   hive:hdfs&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 08:13:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201828#M163835</guid>
      <dc:creator>MindGlass</dc:creator>
      <dc:date>2017-09-27T08:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201829#M163836</link>
      <description>&lt;P&gt;Thank you for the response...but where should I enter this command?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 14:15:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201829#M163836</guid>
      <dc:creator>1001438086</dc:creator>
      <dc:date>2017-09-27T14:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201830#M163837</link>
      <description>&lt;P&gt;Thank you for the response...but where should I enter this command?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 14:16:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201830#M163837</guid>
      <dc:creator>1001438086</dc:creator>
      <dc:date>2017-09-27T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201831#M163838</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45258/1001438086.html" nodeid="45258"&gt;@Mohammad Shazreen Bin Haini&lt;/A&gt;, Based on the question tag, I believe that you're using Sandbox. You will need to ssh into the Sandbox and type in command  there. You can learn more here: &lt;A href="https://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/" target="_blank"&gt;https://hortonworks.com/hadoop-tutorial/learning-the-ropes-of-the-hortonworks-sandbox/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 15:59:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201831#M163838</guid>
      <dc:creator>ymoiseev</dc:creator>
      <dc:date>2017-09-27T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201832#M163839</link>
      <description>&lt;P&gt;No I don't have Sandbox installed, my PC is too weak for it. &lt;BR /&gt;Is there any way to enter that command using Ambari Web or HDCloud CLI?&lt;BR /&gt;&lt;BR /&gt;I'm following &lt;STRONG&gt;tutorial-410 &lt;/STRONG&gt;and I believe Sandbox is not a prerequisite for this.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 17:30:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201832#M163839</guid>
      <dc:creator>1001438086</dc:creator>
      <dc:date>2017-09-27T17:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201833#M163840</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45258/1001438086.html" nodeid="45258"&gt;@Mohammad Shazreen Bin Haini&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;ssh to the node where Ambari is installed / HDFS client is installed and you can run the command there.&lt;/P&gt;&lt;P&gt;As &lt;A rel="user" href="https://community.cloudera.com/users/11679/peter1.html" nodeid="11679"&gt;@Peter Kim&lt;/A&gt; mentioned , check the permissions of those directories before changing.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 17:51:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201833#M163840</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-09-27T17:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201834#M163841</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14200/asirna.html" nodeid="14200"&gt;@Aditya Sirna&lt;/A&gt; Tried SSH the node, but now when I try&lt;BR /&gt;hdfs dfs -chmod 777/apps&lt;BR /&gt;it says&lt;BR /&gt;&lt;BR /&gt;Permission denied: user=cloudbreak is not the owner of inode=apps&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 21:05:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201834#M163841</guid>
      <dc:creator>1001438086</dc:creator>
      <dc:date>2017-09-27T21:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201835#M163842</link>
      <description>&lt;P&gt;Connect to hdp vm server as root, then switch hdfs user and then check directory ownership &amp;amp; permission.&lt;/P&gt;&lt;P&gt;[root@fqdn]#  su hdfs&lt;/P&gt;&lt;P&gt;[hdfs@fqdn]# hdfs dfs -ls /apps&lt;/P&gt;&lt;P&gt;[hdfs@fqdn]# hdfs dfs -ls /apps/hive&lt;/P&gt;&lt;P&gt;[hdfs@fqdn]# hdfs dfs -chmod 755 /apps/hive&lt;/P&gt;&lt;P&gt;[hdfs@fqdn]# hdfs dfs -chmod 777 /apps/hive/warehouse&lt;/P&gt;&lt;P&gt;if the ownership is incorrect, then try it.&lt;/P&gt;&lt;P&gt;[hdfs@fqdn]# hdfs dfs -chown hdfs:hdfs /apps/hive&lt;/P&gt;&lt;P&gt;[hdfs@fqdn]# hdfs dfs -chown hive:hdfs /apps/hive/warehouse&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 21:48:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201835#M163842</guid>
      <dc:creator>MindGlass</dc:creator>
      <dc:date>2017-09-27T21:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201836#M163843</link>
      <description>&lt;P&gt;You have to run it as hdfs user&lt;/P&gt;&lt;P&gt;Run su hdfs and run the chmod command&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 22:09:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201836#M163843</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-09-27T22:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201837#M163844</link>
      <description>&lt;P&gt;Thank you so much. The query works now.&lt;BR /&gt;&lt;BR /&gt;-----------------------&lt;BR /&gt;SSH to your node, run su hdfs, and then run the chmod command, and then execute the query.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 22:54:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201837#M163844</guid>
      <dc:creator>1001438086</dc:creator>
      <dc:date>2017-09-29T22:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't execute query - Permission denied?,Can't execute DDL query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201838#M163845</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45258/1001438086.html" nodeid="45258"&gt;@Mohammad Shazreen Bin Haini&lt;/A&gt; To change the permission from Ambari, you can use Files View under Views sections.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2017 13:34:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-execute-query-Permission-denied-Can-t-execute-DDL/m-p/201838#M163845</guid>
      <dc:creator>tsk</dc:creator>
      <dc:date>2017-09-30T13:34:36Z</dc:date>
    </item>
  </channel>
</rss>

