HCatalog Hive: show database error

448 Views Asked by At

I am trying to connect to Hive tables from Vertica according to the documentation.

https://my.vertica.com/docs/7.1.x/HTML/index.htm#Authoring/HadoopIntegrationGuide/HCatalogConnector/HCatalogConnectorRequirements.htm?Highlight=curl

Curl command:

$ curl http://hcathost:50111/templeton/v1/ddl/database?user.name=hive; echo 

But I am getting this error. I can't understand what's going wrong! I am new to this, so any help is highly appreciated.

The error message:

{"statement":"show databases like '*';","error":"unable to show databases for: *","exec":{"stdout":"","stderr":"which: no /opt/cloudera/parcels/CDH-4.4.0-1.cdh4.4.0.p0.39/lib/hadoop/bin/hadoop in ((null))\ndirname: missing operand\nTry `dirname --help' for more information.\n/opt/cloudera/parcels/CDH-4.4.0-1.cdh4.4.0.p0.39/lib/hadoop/bin/hadoop: line 26: /opt/cloudera/parcels/CDH-4.4.0-1.cdh4.4.0.p0.39/lib/hcatalog/sbin/../libexec/hadoop-config.sh: No such file or directory\n/opt/cloudera/parcels/CDH-4.4.0-1.cdh4.4.0.p0.39/lib/hadoop/bin/hadoop: line 136: cygpath: command not found\n/opt/cloudera/parcels/CDH-4.4.0-1.cdh4.4.0.p0.39/lib/hadoop/bin/hadoop: line 139: exec: : not found\n","exitcode":127}}

Thanks in advance!

0

There are 0 best solutions below