The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Hive / HCatalog Forum

Error when filling table in HCatalog

  • #47040
    Adam Rench
    Participant

    Hello all,

    I’m getting an error when attempting to create a table and load data from a CSV file using “create a new table from a file” option in Hue. I’m on HDP 2 and have entered in the Groups and Users proxy settings into the webhcat-site.xml file as well.

    The table gets created but it looks like when it is trying to load the data, that’s when it errors out. I get this error message.

    HCatClient error executing hive query: {“error”:”User: hcat is not allowed to impersonate arench”} (error 500)

    I’m assuming the config is missing from my webhcat-site.xml page but I’m not 100% on that. Here’s my webhcat-site.xml file contents nevertheless.

    </property>
    <property>
    <name>templeton.override.enabled</name>
    <value>false</value>
    </property>
    <property>
    <name>templeton.hive.archive</name>
    <value>hdfs:///apps/webhcat/hive.tar.gz</value>
    </property>
    <property>
    <name>webhcat.proxyuser.hue.groups</name>
    <value>*</value>
    </property>
    <property>
    <name>templeton.pig.archive</name>
    <value>hdfs:///apps/webhcat/pig.tar.gz</value>
    </property>
    <property>
    <name>templeton.pig.path</name>
    <value>pig.tar.gz/pig/bin/pig</value>
    </property>
    <property>
    <name>templeton.libjars</name>
    <value>/usr/lib/zookeeper/zookeeper.jar</value>
    </property>
    <property>
    <name>templeton.hcat</name>
    <value>/usr/bin/hcat</value>
    </property>
    <property>
    <name>templeton.zookeeper.hosts</name>
    <value>hdpmaster1.hdp.hadoop:2181,hdpmaster2.hdp.hadoop:2181,hdpslave1.hdp.hadoop:2181</value>
    </property>
    <property>
    <name>templeton.storage.class</name>
    <value>org.apache.hive.hcatalog.templeton.tool.ZooKeeperStorage</value>
    </property>
    <property>
    <name>templeton.jar</name>
    <value>/usr/lib/hcatalog/share/webhcat/svr/webhcat.jar</value>
    </property>
    <property>
    <name>templeton.port</name>
    <value>50111</value>
    </property>
    <property>
    <name>webhcat.proxyuser.hue.hosts</name>
    <value>*</value>
    </property>
    <property>
    <name>templeton.exec.timeout</name>
    <value>60000</value>
    </property>
    <property>
    <name>templeton.hive.path</name>
    <value>hive.tar.gz/hive/bin/hive</value>
    </property>
    <property>
    <name>templeton.streaming.jar</name>
    <value>hdfs:///apps/webhcat/hadoop-streaming.jar</value>
    </property>
    <property>
    <name>templeton.hadoop.conf.dir</name>
    <value>/etc/hadoop/conf</value>
    </property>
    <property>
    <name>templeton.hadoop</name>
    <value>/usr/bin/hadoop</value>
    </property>
    </configuration>

  • Author
    Replies
  • #47216
    Adam Rench
    Participant

    FYI – I logged in using the Hue user and I was able to load the data into the table. So it’s something that my profile is not seeing when trying to use the Hue user’s permissions.

    #47313
    Thejas Nair
    Moderator

    Can you check if you have the proxy user configurations under https://cwiki.apache.org/confluence/display/Hive/WebHCat+InstallWebHCat set correctly ?

    #47350
    Adam Rench
    Participant

    Hi Thejas,

    Thanks for the reply. I did check and there were a few missing entries that were listed on the page you linked. So I made those updates but I’m still getting this error.

    #57697
    Ajit Singh
    Participant

    in the base OS, is the user “arench” with the same password and “users” group created?

The forum ‘Hive / HCatalog’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.