Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Webhcat show database error missing operand

Webhcat show database error missing operand

Explorer

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?

 

1 REPLY 1

Re: Webhcat show database error missing operand

New Contributor

can you solve the problem?

'cause I have the same issue