<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Access to WebHCat in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-to-WebHCat/m-p/43937#M37092</link>
    <description>&lt;P&gt;I didn't solve the problem for Virtual Box machine.&lt;/P&gt;&lt;P&gt;Fortunately, &amp;nbsp;for real distributed cluster problem didn't appear.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2016 11:12:53 GMT</pubDate>
    <dc:creator>andrzej_jedrzej</dc:creator>
    <dc:date>2016-08-15T11:12:53Z</dc:date>
    <item>
      <title>Access to WebHCat</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-to-WebHCat/m-p/43608#M37090</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using &amp;nbsp;CDH&amp;nbsp;5.7, VirtualBOx QuickStart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get an access to my data through WebHcat. I am trying to open in browser foloriwng uri:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://localhost:50111/templeton/v1/ddl/database/default/table?user.name=cloudera" target="_blank"&gt;http://localhost:50111/templeton/v1/ddl/database/default/table?user.name=cloudera&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result I obtain in browser:&lt;/P&gt;&lt;PRE&gt;{"error":"FAILED: SemanticException Operation not supported.","errorDetail":"org.apache.hadoop.hive.ql.parse.SemanticException: Operation not supported.\n\tat org.apache.hive.hcatalog.cli.SemanticAnalysis.HCatSemanticAnalyzer.preAnalyze(HCatSemanticAnalyzer.java:153)\n\tat org.apache.hadoop.hive.ql.Driver.compile(Driver.java:449)\n\tat org.apache.hadoop.hive.ql.Driver.compile(Driver.java:311)\n\tat org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1194)\n\tat org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1289)\n\tat org.apache.hadoop.hive.ql.Driver.run(Driver.java:1120)\n\tat org.apache.hadoop.hive.ql.Driver.run(Driver.java:1108)\n\tat org.apache.hive.hcatalog.cli.HCatDriver.run(HCatDriver.java:43)\n\tat org.apache.hive.hcatalog.cli.HCatCli.processCmd(HCatCli.java:291)\n\tat org.apache.hive.hcatalog.cli.HCatCli.processLine(HCatCli.java:245)\n\tat org.apache.hive.hcatalog.cli.HCatCli.main(HCatCli.java:183)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:606)\n\tat org.apache.hadoop.util.RunJar.run(RunJar.java:221)\n\tat org.apache.hadoop.util.RunJar.main(RunJar.java:136)\n","errorCode":40000,"sqlState":"42000","database":"default"}&lt;/PRE&gt;&lt;P&gt;In webhcat.log I found following information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;INFO  | 05 Aug 2016 21:30:45,234 | org.eclipse.jetty.server.Server | jetty-7.6.0.v20120127
INFO  | 05 Aug 2016 21:30:45,326 | org.eclipse.jetty.server.handler.ContextHandler | started o.e.j.s.ServletContextHandler{/,null}
INFO  | 05 Aug 2016 21:30:45,613 | com.sun.jersey.server.impl.application.WebApplicationImpl | Initiating Jersey application, version 'Jersey: 1.14 09/09/2012 05:39 PM'
WARN  | 05 Aug 2016 21:30:46,122 | org.apache.hadoop.util.NativeCodeLoader | Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
INFO  | 05 Aug 2016 21:30:46,416 | org.apache.hive.hcatalog.templeton.tool.HDFSCleanup | Next execution: Sat Aug 06 00:28:28 PDT 2016
INFO  | 05 Aug 2016 21:30:46,424 | com.sun.jersey.api.wadl.config.WadlGeneratorLoader | Loading wadlGenerator com.sun.jersey.server.wadl.generators.resourcedoc.WadlGeneratorResourceDocSupport
INFO  | 05 Aug 2016 21:30:46,911 | org.eclipse.jetty.server.AbstractConnector | Started SelectChannelConnector@0.0.0.0:50111
INFO  | 05 Aug 2016 21:30:46,918 | org.apache.hive.hcatalog.templeton.Main | Templeton listening on port 50111
WARN  | 05 Aug 2016 21:31:10,133 | org.apache.hadoop.security.authentication.server.AuthenticationFilter | AuthenticationToken ignored: org.apache.hadoop.security.authentication.util.SignerException: Invalid signature
INFO  | 05 Aug 2016 21:31:10,166 | org.apache.hive.hcatalog.templeton.HcatDelegator | Main.getAppConfigInstance().get(AppConfig.UNIT_TEST_MODE)=null
INFO  | 05 Aug 2016 21:31:10,173 | org.apache.hive.hcatalog.templeton.ExecServiceImpl | Running: /usr/bin/python /usr/lib/hive-hcatalog/bin/hcat.py -e "use default; show tables like '*';" -D hive.ddl.output.format=json -D hive.format=json
INFO  | 05 Aug 2016 21:31:10,174 | org.apache.hive.hcatalog.templeton.ExecServiceImpl | Env HADOOP_PREFIX=/usr
INFO  | 05 Aug 2016 21:31:10,174 | org.apache.hive.hcatalog.templeton.ExecServiceImpl | Env JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera
INFO  | 05 Aug 2016 21:31:10,174 | org.apache.hive.hcatalog.templeton.ExecServiceImpl | Env HADOOP_USER_NAME=hive
INFO  | 05 Aug 2016 21:31:10,174 | org.apache.hive.hcatalog.templeton.ExecServiceImpl | Env HIVE_HOME=/usr/lib/hive
INFO  | 05 Aug 2016 21:31:15,954 | org.apache.hive.hcatalog.templeton.ExecServiceImpl | Command: /usr/bin/python /usr/lib/hive-hcatalog/bin/hcat.py -e "use default; show tables like '*';" -D hive.ddl.output.format=json -D hive.format=json failed. res=ExecBean(stdout={"error":"FAILED: SemanticException Operation not supported.","errorDetail":"org.apache.hadoop.hive.ql.parse.SemanticException: Operation not supported.\n\tat org.apache.hive.hcatalog.cli.SemanticAnalysis.HCatSemanticAnalyzer.preAnalyze(HCatSemanticAnalyzer.java:153)\n\tat org.apache.hadoop.hive.ql.Driver.compile(Driver.java:449)\n\tat org.apache.hadoop.hive.ql.Driver.compile(Driver.java:311)\n\tat org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1194)\n\tat org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1289)\n\tat org.apache.hadoop.hive.ql.Driver.run(Driver.java:1120)\n\tat org.apache.hadoop.hive.ql.Driver.run(Driver.java:1108)\n\tat org.apache.hive.hcatalog.cli.HCatDriver.run(HCatDriver.java:43)\n\tat org.apache.hive.hcatalog.cli.HCatCli.processCmd(HCatCli.java:291)\n\tat org.apache.hive.hcatalog.cli.HCatCli.processLine(HCatCli.java:245)\n\tat org.apache.hive.hcatalog.cli.HCatCli.main(HCatCli.java:183)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:606)\n\tat org.apache.hadoop.util.RunJar.run(RunJar.java:221)\n\tat org.apache.hadoop.util.RunJar.main(RunJar.java:136)\n","errorCode":40000,"sqlState":"42000"}, stderr=which: no /usr/lib/hadoop/bin/hadoop in ((null))
dirname: missing operand
Try `dirname --help' for more information.
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /usr/lib/hive/logs/hcat.log (No such file or directory)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:221)
	at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:142)
	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
	at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
	at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
	at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:415)
	at org.apache.hadoop.hive.common.LogUtils.initHiveLog4jDefault(LogUtils.java:127)
	at org.apache.hadoop.hive.common.LogUtils.initHiveLog4jCommon(LogUtils.java:77)
	at org.apache.hadoop.hive.common.LogUtils.initHiveLog4j(LogUtils.java:58)
	at org.apache.hive.hcatalog.cli.HCatCli.main(HCatCli.java:65)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
log4j:ERROR Either File or DatePattern options are not set for appender [DRFA].
FAILED: SemanticException Operation not supported.
, exitcode=64)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;WHen I send a following GET:&amp;nbsp;&lt;A href="http://localhost:50111/templeton/v1/status" target="_blank"&gt;http://localhost:50111/templeton/v1/status&lt;/A&gt;, an answer is correct:&lt;/P&gt;&lt;PRE&gt;{"status":"ok","version":"v1"}&lt;/PRE&gt;&lt;P&gt;How to deal with such a problem.........&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:33:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-to-WebHCat/m-p/43608#M37090</guid>
      <dc:creator>andrzej_jedrzej</dc:creator>
      <dc:date>2022-09-16T10:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Access to WebHCat</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-to-WebHCat/m-p/43698#M37091</link>
      <description>&lt;P&gt;Did you specify the POST parameter "execute" with the query ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/WebHCat+Reference+Hive#WebHCatReferenceHive-URL" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/WebHCat+Reference+Hive#WebHCatReferenceHive-URL&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 12:53:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-to-WebHCat/m-p/43698#M37091</guid>
      <dc:creator>mathieu.d</dc:creator>
      <dc:date>2016-08-09T12:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Access to WebHCat</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-to-WebHCat/m-p/43937#M37092</link>
      <description>&lt;P&gt;I didn't solve the problem for Virtual Box machine.&lt;/P&gt;&lt;P&gt;Fortunately, &amp;nbsp;for real distributed cluster problem didn't appear.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 11:12:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Access-to-WebHCat/m-p/43937#M37092</guid>
      <dc:creator>andrzej_jedrzej</dc:creator>
      <dc:date>2016-08-15T11:12:53Z</dc:date>
    </item>
  </channel>
</rss>

