HADOOP HTTPFS : giving error "User: ubuntu is not allowed to impersonate ubuntu" while accessing the application through Http

bigdata, hadoop, hdfs, java, ubuntu

Solution

Resolved this issue, As I havent added my user ubantu into the hadoop user groups. added user ubantu into the hadoop group and updated property in core-site.xml as

     <property>
        <name>hadoop.proxyuser.myhttpfsuser.hosts</name>
        <value>httpfs-host.foo.com</value>
     </property>
     <property>
        <name>hadoop.proxyuser.myhttpfsuser.groups</name>
        <value>hadoop</value>
     </property>

now its working fine.

Problem

I have installed hadoop 1.0.4 on my cluster, of 1 master and 3 slaves, and now I am installing HTTPFS(hadoop-hdfs-httpfs-0.20.2-cdh3u5-SNAPSHOT) to access the HDFS contents using http protocol, I am able to access the normal page through it ``` curl -i "http://myhost:14000" ``` its works fine :) but If I tried to access HDFS then its giving me error(ubantu is my user) :( ``` curl -i "http://myhost:14000/webhdfs/v1?user.name=ubantu&op=OPEN" ``` error: ``` {"RemoteException":{"message":"User: ubantu is not allowed to impersonate ubantu", "exception":"RemoteException","javaClassName":"org.apache.hadoop.ipc.RemoteException"}} ``` Thanks in advance.

Original source