title: Error: E0902: Exception occured: [User: Root is not allowed to impersonate root
body: <p>I am trying to follow the steps given  at   <a href="http://www.rohitmenon.com/index.php/apache-oozie-installation/" rel="nofollow noreferrer">http://www.rohitmenon.com/index.php/apache-oozie-installation/</a>
      Note: I am not using cloudera distibution of hadoop</p>
  
  <p>The above link is similar to <a href="http://oozie.apache.org/docs/4.0.1/DG_QuickStart.html" rel="nofollow noreferrer">http://oozie.apache.org/docs/4.0.1/DG_QuickStart.html</a> 
   but with more descriptive seems to me 
  however while running  the below command as a root user i am getting  exception
         ./bin/oozie-setup.sh sharelib create -fs  </p>
  
  <p>Note: i have two live node shown at dfshealth.jsp . and i have updated the core-site.xml for all  three(including namenode) with property as below</p>
  
  <pre><code>  &lt;property&gt;
              &lt;name&gt;hadoop.proxyuser.root.hosts&lt;/name&gt;
              &lt;value&gt;*&lt;/value&gt;
       &lt;/property&gt;
  
      &lt;property&gt;
              &lt;name&gt;hadoop.proxyuser.root.groups&lt;/name&gt;
              &lt;value&gt;*&lt;/value&gt;
      &lt;/property&gt;
  </code></pre>
  
  <p>i understand this is point where i am making mistake Could someone please guide me </p>
  
  <pre><code>Stacktrace
      org.apache.oozie.service.HadoopAccessorException: E0902: Exception occured: [User: root is not allowed to impersonate root]
              at 
  
      org.apache.oozie.service.HadoopAccessorService.createFileSystem(HadoopAccessorService.java:430)
                  at org.apache.oozie.tools.OozieSharelibCLI.run(OozieSharelibCLI.java:144)
                  at org.apache.oozie.tools.OozieSharelibCLI.main(OozieSharelibCLI.java:52)
          Caused by: org.apache.hadoop.ipc.RemoteException: User: root is not allowed to impersonate root
                  at org.apache.hadoop.ipc.Client.call(Client.java:1107)
                  at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:229)
                  at com.sun.proxy.$Proxy5.getProtocolVersion(Unknown Source)
                  at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:411)
                  at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:135)
                  at org.apache.hadoop.hdfs.DFSClient.&lt;init&gt;(DFSClient.java:276)
                  at org.apache.hadoop.hdfs.DFSClient.&lt;init&gt;(DFSClient.java:241)
                  at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:100)
                  at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1411)
                  at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
                  at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1429)
                  at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)
                  at org.apache.oozie.service.HadoopAccessorService$2.run(HadoopAccessorService.java:422)
                  at org.apache.oozie.service.HadoopAccessorService$2.run(HadoopAccessorService.java:420)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at javax.security.auth.Subject.doAs(Subject.java:396)
                  at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1136)
                  at org.apache.oozie.service.HadoopAccessorService.createFileSystem(HadoopAccessorService.java:420)
                  ... 2 more
          --------------------------------------
  </code></pre>
  
  <p>Note: <a href="https://stackoverflow.com/questions/16582126/getting-e0902-exception-occured-user-oozie-is-not-allowed-to-impersonate-ooz">Getting E0902: Exception occured: [User: oozie is not allowed to impersonate oozie]</a>  i have followed this link as well but not able to solve my problem </p>
  
  <pre><code>if i change the core-site.xml as below only for NameNode
  
  &lt;property&gt;
          &lt;name&gt;hadoop.proxyuser.hadoop.hosts&lt;/name&gt;
          &lt;value&gt;[NAMENODE IP]&lt;/value&gt;
      &lt;/property&gt;
  &lt;property&gt;
      &lt;name&gt;hadoop.proxyuser.hadoop.groups&lt;/name&gt;
      &lt;value&gt;hadoop&lt;/value&gt;
  &lt;/property&gt; 
  </code></pre>
  
  <p>I get the exception as
  Unauthorized connection for super-user: hadoop</p>