<?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: failed to start hive from root in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137627#M39809</link>
    <description>&lt;P&gt;From hdfs user:&lt;/P&gt;&lt;P&gt;hadoop fs -chown root:root /user/root&lt;/P&gt;&lt;P&gt;and then please run the hive shell again from root user.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2016 18:00:54 GMT</pubDate>
    <dc:creator>jyadav</dc:creator>
    <dc:date>2016-09-06T18:00:54Z</dc:date>
    <item>
      <title>failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137626#M39808</link>
      <description>&lt;P&gt;[root@Manager ~]# hive
WARNING: Use "yarn jar" to launch YARN applications.

Logging initialized using configuration in file:/etc/hive/2.3.0.0-2557/0/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="/user/root":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.check(FSPermissionChecker.java:292)
   at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:213)
   at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:190)
   at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1698)
   at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1682)
   at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkAncestorAccess(FSDirectory.java:1665)
   at org.apache.hadoop.hdfs.server.namenode.FSDirMkdirOp.mkdirs(FSDirMkdirOp.java:71)
   at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(FSNamesystem.java:3895)
   at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.mkdirs(NameNodeRpcServer.java:983)
   at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.mkdirs(ClientNamenodeProtocolServerSideTranslatorPB.java:622)
   at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
   at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616)
   at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:969)
   at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2081)
   at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2077)
   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:1657)
   at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2075)

   at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:535)
   at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)
   at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
   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.hadoop.util.RunJar.run(RunJar.java:221)
   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="/user/root":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.check(FSPermissionChecker.java:292)
   at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:213)
   at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:190)
   at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1698)
   at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1682)
   at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkAncestorAccess(FSDirectory.java:1665)
   at org.apache.hadoop.hdfs.server.namenode.FSDirMkdirOp.mkdirs(FSDirMkdirOp.java:71)
   at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(FSNamesystem.java:3895)
   at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.mkdirs(NameNodeRpcServer.java:983)
   at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.mkdirs(ClientNamenodeProtocolServerSideTranslatorPB.java:622)
   at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
   at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616)
   at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:969)
   at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2081)
   at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2077)
   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:1657)
   at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2075)

   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
   at org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:106)
   at org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:73)
   at org.apache.hadoop.hdfs.DFSClient.primitiveMkdir(DFSClient.java:3010)
   at org.apache.hadoop.hdfs.DFSClient.mkdirs(DFSClient.java:2978)
   at org.apache.hadoop.hdfs.DistributedFileSystem$21.doCall(DistributedFileSystem.java:1047)
   at org.apache.hadoop.hdfs.DistributedFileSystem$21.doCall(DistributedFileSystem.java:1043)
   at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
   at org.apache.hadoop.hdfs.DistributedFileSystem.mkdirsInternal(DistributedFileSystem.java:1043)
   at org.apache.hadoop.hdfs.DistributedFileSystem.mkdirs(DistributedFileSystem.java:1036)
   at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:1877)
   at org.apache.hadoop.hive.ql.exec.tez.DagUtils.getDefaultDestDir(DagUtils.java:781)
   at org.apache.hadoop.hive.ql.exec.tez.DagUtils.getHiveJarDirectory(DagUtils.java:875)
   at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.createJarLocalResource(TezSessionState.java:327)
   at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:151)
   at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:116)
   at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:532)
   ... 8 more
Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission denied: user=root, access=WRITE, inode="/user/root":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.check(FSPermissionChecker.java:292)
   at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:213)
   at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:190)
   at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1698)
   at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1682)
   at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkAncestorAccess(FSDirectory.java:1665)
   at org.apache.hadoop.hdfs.server.namenode.FSDirMkdirOp.mkdirs(FSDirMkdirOp.java:71)
   at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(FSNamesystem.java:3895)
   at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.mkdirs(NameNodeRpcServer.java:983)
   at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.mkdirs(ClientNamenodeProtocolServerSideTranslatorPB.java:622)
   at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
   at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616)
   at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:969)
   at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2081)
   at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2077)
   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:1657)
   at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2075)

   at org.apache.hadoop.ipc.Client.call(Client.java:1427)
   at org.apache.hadoop.ipc.Client.call(Client.java:1358)
   at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
   at com.sun.proxy.$Proxy11.mkdirs(Unknown Source)
   at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.mkdirs(ClientNamenodeProtocolTranslatorPB.java:558)
   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.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
   at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
   at com.sun.proxy.$Proxy12.mkdirs(Unknown Source)
   at org.apache.hadoop.hdfs.DFSClient.primitiveMkdir(DFSClient.java:3008)
   ... 21 more&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 17:58:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137626#M39808</guid>
      <dc:creator>chahrimourad</dc:creator>
      <dc:date>2016-09-06T17:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137627#M39809</link>
      <description>&lt;P&gt;From hdfs user:&lt;/P&gt;&lt;P&gt;hadoop fs -chown root:root /user/root&lt;/P&gt;&lt;P&gt;and then please run the hive shell again from root user.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:00:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137627#M39809</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-09-06T18:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137628#M39810</link>
      <description>&lt;P&gt;chown: `/usr/root': No such file or directory&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:07:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137628#M39810</guid>
      <dc:creator>chahrimourad</dc:creator>
      <dc:date>2016-09-06T18:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137629#M39811</link>
      <description>&lt;P&gt;Direcotry name should be "/user/root" not "/usr/root"&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:08:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137629#M39811</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-09-06T18:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137630#M39812</link>
      <description>&lt;P&gt;chown: `/user/root': No such file or directory&lt;/P&gt;&lt;P&gt;the same problem&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:16:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137630#M39812</guid>
      <dc:creator>chahrimourad</dc:creator>
      <dc:date>2016-09-06T18:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137631#M39813</link>
      <description>&lt;P&gt;can you please try to run these two hadoop commands from hdfs user?.&lt;/P&gt;&lt;P&gt;hadoop fs -mkdir /user/root&lt;/P&gt;&lt;P&gt;hadoop fs -chown /user/root&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:23:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137631#M39813</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-09-06T18:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137632#M39814</link>
      <description>&lt;P&gt;hdfs@Manager ~]$ hadoop fs -mkdir /user/root
[hdfs@Manager ~]$ hadoop fs -chown /user/root
-chown: Not enough arguments: expected 2 but got 1
Usage: hadoop fs [generic options] -chown [-R] [OWNER][:[GROUP]] PATH...&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:26:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137632#M39814</guid>
      <dc:creator>chahrimourad</dc:creator>
      <dc:date>2016-09-06T18:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137633#M39815</link>
      <description>&lt;P&gt;sorry my bad. &lt;/P&gt;&lt;P&gt;hadoop fs -chown root:root /user/root&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:33:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137633#M39815</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-09-06T18:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137634#M39816</link>
      <description>&lt;P&gt;please accept the answer if issue got resolve or let us know if you are still facing same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 19:35:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137634#M39816</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-09-06T19:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137635#M39817</link>
      <description>&lt;P&gt;its work thank you&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 19:36:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137635#M39817</guid>
      <dc:creator>chahrimourad</dc:creator>
      <dc:date>2016-09-06T19:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137636#M39818</link>
      <description>&lt;P&gt;try  this it works &lt;/P&gt;&lt;P&gt;sudo  -su  hive &lt;/P&gt;&lt;P&gt;and after  run your hive commande &lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 21:44:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137636#M39818</guid>
      <dc:creator>ibrahima-diatta</dc:creator>
      <dc:date>2017-11-03T21:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: failed to start hive from root</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137637#M39819</link>
      <description>&lt;P&gt;this worked for me&lt;/P&gt;&lt;P&gt;[root@master Downloads]# sudo -su hdfs&lt;BR /&gt;[hdfs@master Downloads]$ hadoop fs -mkdir /user/root&lt;BR /&gt;[hdfs@master Downloads]$ hadoop fs -chown root:root /user/root&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 21:04:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/failed-to-start-hive-from-root/m-p/137637#M39819</guid>
      <dc:creator>Rafael</dc:creator>
      <dc:date>2018-06-04T21:04:04Z</dc:date>
    </item>
  </channel>
</rss>

