<?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: hive create table error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269808#M207103</link>
    <description>i used hive as user and created table. but i lad the data into it it shows&lt;BR /&gt;this error&lt;BR /&gt;&lt;BR /&gt;LOAD DATA LOCAL INPATH 'empdata.txt' OVERWRITE INTO TABLE emp;&lt;BR /&gt;Error: Error while compiling statement: FAILED: HiveAccessControlException&lt;BR /&gt;Permission denied: Principal [name=hive, type=USER] does not have following&lt;BR /&gt;privileges for operation LOAD [ADMIN] (state=42000,code=40000)&lt;BR /&gt;</description>
    <pubDate>Thu, 05 Sep 2019 09:42:40 GMT</pubDate>
    <dc:creator>Manoj690</dc:creator>
    <dc:date>2019-09-05T09:42:40Z</dc:date>
    <item>
      <title>hive create table error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269790#M207087</link>
      <description>&lt;P&gt;CREATE TABLE IF NOT EXISTS emp ( eid int, name String,salary int)&lt;BR /&gt;. . . . . . . . . . . . . . . . . . . . . . .&amp;gt; COMMENT 'Emp Details'&lt;BR /&gt;. . . . . . . . . . . . . . . . . . . . . . .&amp;gt; ROW FORMAT DELIMITED&lt;BR /&gt;. . . . . . . . . . . . . . . . . . . . . . .&amp;gt; FIELDS TERMINATED BY '\t'&lt;BR /&gt;. . . . . . . . . . . . . . . . . . . . . . .&amp;gt; LINES TERMINATED BY '\n'&lt;BR /&gt;. . . . . . . . . . . . . . . . . . . . . . .&amp;gt; STORED AS TEXTFILE;&lt;BR /&gt;INFO : Compiling command(queryId=hive_20190905115646_595a00a3-9a4c-4082-a81f-c426fb3e903a): CREATE TABLE IF NOT EXISTS emp ( eid int, name String,salary int)&lt;BR /&gt;COMMENT 'Emp Details'&lt;BR /&gt;ROW FORMAT DELIMITED&lt;BR /&gt;FIELDS TERMINATED BY '\t'&lt;BR /&gt;LINES TERMINATED BY '\n'&lt;BR /&gt;STORED AS TEXTFILE&lt;BR /&gt;INFO : Semantic Analysis Completed (retrial = false)&lt;BR /&gt;INFO : Returning Hive schema: Schema(fieldSchemas:null, properties:null)&lt;BR /&gt;INFO : Completed compiling command(queryId=hive_20190905115646_595a00a3-9a4c-4082-a81f-c426fb3e903a); Time taken: 0.094 seconds&lt;BR /&gt;INFO : Executing command(queryId=hive_20190905115646_595a00a3-9a4c-4082-a81f-c426fb3e903a): CREATE TABLE IF NOT EXISTS emp ( eid int, name String,salary int)&lt;BR /&gt;COMMENT 'Emp Details'&lt;BR /&gt;ROW FORMAT DELIMITED&lt;BR /&gt;FIELDS TERMINATED BY '\t'&lt;BR /&gt;LINES TERMINATED BY '\n'&lt;BR /&gt;STORED AS TEXTFILE&lt;BR /&gt;INFO : Starting task [Stage-0:DDL] in serial mode&lt;BR /&gt;ERROR : FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: org.apache.hadoop.security.AccessControlException Permission denied: user=root, access=EXECUTE, inode="/warehouse/tablespace/managed/hive":hive:hadoop:drwx------&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:399)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:315)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:242)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:193)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:606)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkTraverse(FSDirectory.java:1806)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkTraverse(FSDirectory.java:1824)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSDirectory.resolvePath(FSDirectory.java:681)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSDirStatAndListingOp.getFileInfo(FSDirStatAndListingOp.java:114)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFileInfo(FSNamesystem.java:3106)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getFileInfo(NameNodeRpcServer.java:1154)&lt;BR /&gt;at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getFileInfo(ClientNamenodeProtocolServerSideTranslatorPB.java:966)&lt;BR /&gt;at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)&lt;BR /&gt;at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:524)&lt;BR /&gt;at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1025)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:876)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:822)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2682)&lt;BR /&gt;)&lt;BR /&gt;INFO : Completed executing command(queryId=hive_20190905115646_595a00a3-9a4c-4082-a81f-c426fb3e903a); Time taken: 0.043 seconds&lt;BR /&gt;Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: org.apache.hadoop.security.AccessControlException Permission denied: user=root, access=EXECUTE, inode="/warehouse/tablespace/managed/hive":hive:hadoop:drwx------&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:399)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:315)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:242)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:193)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:606)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkTraverse(FSDirectory.java:1806)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkTraverse(FSDirectory.java:1824)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSDirectory.resolvePath(FSDirectory.java:681)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSDirStatAndListingOp.getFileInfo(FSDirStatAndListingOp.java:114)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFileInfo(FSNamesystem.java:3106)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getFileInfo(NameNodeRpcServer.java:1154)&lt;BR /&gt;at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getFileInfo(ClientNamenodeProtocolServerSideTranslatorPB.java:966)&lt;BR /&gt;at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)&lt;BR /&gt;at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:524)&lt;BR /&gt;at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1025)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:876)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:822)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2682)&lt;BR /&gt;) (state=08S01,code=1)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 14:22:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269790#M207087</guid>
      <dc:creator>Manoj690</dc:creator>
      <dc:date>2019-09-05T14:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: hive create table error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269791#M207088</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68583"&gt;@Manoj690&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We see the error as&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ERROR : FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: org.apache.hadoop.security.AccessControlException Permission denied: user=root, access=EXECUTE, inode="/warehouse/tablespace/managed/hive":hive:hadoop:drwx------&lt;/LI-CODE&gt;&lt;P&gt;Here we see that &lt;STRONG&gt;'user=root'&lt;/STRONG&gt;&amp;nbsp; which means you might be running the query as "root" user.&amp;nbsp; Who does not have permission to write in the mentioned HDFS directory &lt;EM&gt;&lt;STRONG&gt;"/warehouse/tablespace/managed/hive"&lt;/STRONG&gt;&lt;/EM&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So better to run the same query as &lt;STRONG&gt;"hive"&lt;/STRONG&gt; user and then check the results.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 06:38:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269791#M207088</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-09-05T06:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: hive create table error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269792#M207089</link>
      <description>how to change the user to hive ?&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Sep 2019 06:40:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269792#M207089</guid>
      <dc:creator>Manoj690</dc:creator>
      <dc:date>2019-09-05T06:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: hive create table error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269793#M207090</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68583"&gt;@Manoj690&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The terminal where you are trying to run the query . can you switch to "hive" user?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# su - hive&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Sep 2019 06:42:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269793#M207090</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-09-05T06:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: hive create table error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269808#M207103</link>
      <description>i used hive as user and created table. but i lad the data into it it shows&lt;BR /&gt;this error&lt;BR /&gt;&lt;BR /&gt;LOAD DATA LOCAL INPATH 'empdata.txt' OVERWRITE INTO TABLE emp;&lt;BR /&gt;Error: Error while compiling statement: FAILED: HiveAccessControlException&lt;BR /&gt;Permission denied: Principal [name=hive, type=USER] does not have following&lt;BR /&gt;privileges for operation LOAD [ADMIN] (state=42000,code=40000)&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Sep 2019 09:42:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269808#M207103</guid>
      <dc:creator>Manoj690</dc:creator>
      <dc:date>2019-09-05T09:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: hive create table error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269809#M207104</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68583"&gt;@Manoj690&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You might want to look at this thread:&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Configuring-hive-users-in-admin-role/m-p/236802" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Configuring-hive-users-in-admin-role/m-p/236802&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 09:49:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269809#M207104</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-09-05T09:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: hive create table error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269814#M207107</link>
      <description>LOAD DATA LOCAL INPATH 'empdata.txt' OVERWRITE INTO TABLE emp;&lt;BR /&gt;Unexpected end of file when reading from HS2 server. The root cause might&lt;BR /&gt;be too many concurrent connections. Please ask the administrator to check&lt;BR /&gt;the number of active connections, and adjust&lt;BR /&gt;hive.server2.thrift.max.worker.threads if applicable.&lt;BR /&gt;Error: org.apache.thrift.transport.TTransportException (state=08S01,code=0)&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Sep 2019 10:20:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269814#M207107</guid>
      <dc:creator>Manoj690</dc:creator>
      <dc:date>2019-09-05T10:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: hive create table error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269906#M207161</link>
      <description>&lt;P&gt;LOAD DATA LOCAL INPATH 'empdata.txt' OVERWRITE INTO TABLE emp;&lt;BR /&gt;Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: Principal [name=hive, type=USER] does not have following privileges for operation LOAD [ADMIN] (state=42000,code=40000)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 10:44:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/269906#M207161</guid>
      <dc:creator>Manoj690</dc:creator>
      <dc:date>2019-09-06T10:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: hive create table error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/379508#M243876</link>
      <description>&lt;P&gt;Error while compiling statement: FAILED: Execution Error, return code 40000 from org.apache.hadoop.hive.ql.ddl.DDLTask. java.lang.RuntimeException: MetaException(message:org.apache.hadoop.hive.serde2.SerDeException java.lang.IllegalArgumentException: Property hive.sql.jdbc.driver is required.)&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 23:22:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hive-create-table-error/m-p/379508#M243876</guid>
      <dc:creator>ialmeida</dc:creator>
      <dc:date>2023-11-23T23:22:04Z</dc:date>
    </item>
  </channel>
</rss>

