Reply
Explorer
Posts: 9
Registered: ‎01-25-2017

Webhcat show database error missing operand

hello guys,

so I was trying to connect hive metadata through webhcat. I started webhcat_server successfully.I first test the link:

http://vn1:50111/templeton/v1/status

It returns:

{"status":"ok","version":"v1"}

which is a success.Then I try

http://vn1:50111/templeton/v1/ddl/database?user.name=hive

It gives me error

{"statement":"show databases like '*';","error":"unable to show databases for: *","exec":
{"stdout":"",
"stderr":"which: no /opt/lib/hadoop/bin/hadoop in ((null))
dirname: missing operand
Try 'dirname --help' for more information.
/opt/lib/hadoop/bin/hadoop: line 26: /opt/lib/hive-hcatalog/sbin/../libexec/hadoop-config.sh: No such file or directory
/opt/lib/hadoop/bin/hadoop: line 144: exec: : not found",
"exitcode":127
}
}

I did quite a research on Internet. some people run into the same problem but no one has an answer.

I can successfully start hcatalog server & webhcat server.

I notice that there is no hadoop-config.sh under /hive-hcatalog/libexec...But should that be under /hadoop/libexec? Is there something wrong with script maybe?

 

New Contributor
Posts: 1
Registered: ‎01-30-2019

Re: Webhcat show database error missing operand

can you solve the problem?

'cause I have the same issue

Announcements