Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

WebHCat XASecure stderr":"which: no /usr/lib/hadoop/bin/hadoop in ((null))\ndirn

$
0
0

Hi All, I am using HDP 2.1 and XA Secure setup with appropriate policies.

I am executing a WebHCat API call using CURL and here is the command –
curl http://mydevhadoopserver:50111/templeton/v1/ddl/database/my_dev_db/table/user_address?user.name=hive&format=extendedOutput for above is :

Output for above is given at the bottom of this post.

Issue 1:
If you observe in the output, before XASecure login it says “unable to show table: user_addres” and after login it finds the schema of the table

Issue 2:
If you observe in the output, there is a “stderr” section and it says null\dirname not found.

Please help me what is it I am missing here, it is stopping me to proceed further.

Output of above WebHCat:

{“statement”:”use my_dev_db; show table extended like user_address;”,”error”:”unable to show table: user_address”,”exec”:{“stdout”:”[EL Info]: 2014-12-09 08:10…–
ServerSession(1454131558)–EclipseLink, version: Eclipse Persistence Services – 2.5.1.v20130918-f2b9fc5\n[EL Info]:
connection: 2014-12-09 08:10….–ServerSession(1454131558)
–file:/usr/lib/hive/lib/xasecure-audit.jar_xa_server_url=jdbc:mysql://localhost/xasecure_user=someusername login successful\n{
\”columns\”:[{\"name\":\"user_name\",\"type\":\"varchar(35)\"}],\”tableInfo\”:{\”owner\”:\”hive\”,\”tableName\”:\”user_address\”,
\”dbName\”:\”my_dev_db\”,\”sd\”:{\”location\”:\”hdfs://mydevhadoopnamenodeserver:8020/data/hivedb/my_dev_db/user_address\”,
\n[EL Info]: connection: 2014-12-09 08:10….–ServerSession(1454131558)–file:/usr/lib/hive/lib/xasecure-audit.jar_xa_server_url=jdbc:mysql://localhost/xasecure_user=someusername logout successful\n”,”stderr”:”which: no /usr/lib/hadoop/bin/hadoop in ((null))\ndirname: missing operand\nTry `dirname –help’ for more information.\nOK\nTime taken: 2.188 seconds\nOK\nTime taken: 1.341 seconds\n”,”exitcode”:0}}

NOTE: I curtailed the output.

Thanks in advance for your help.


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>