Hatalog: show database error

I am trying to connect to Hive tables from Vertica as per 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 figure out what's going wrong! I'm new to this so any help is much appreciated.

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!

+3


source to share





All Articles