<?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: not able to run hplsql function via cli in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233471#M195297</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/139/pardeepkumar.html" nodeid="139"&gt;@Pardeep&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i think this is not a seperate issue but it is on same line. &lt;/P&gt;&lt;P&gt;the above resolution just solved a partial query.&lt;/P&gt;&lt;P&gt;Hope this is fine.&lt;/P&gt;&lt;P&gt;Let me know your input for resolving my query.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rishit Shah&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2017 11:11:34 GMT</pubDate>
    <dc:creator>rishit606</dc:creator>
    <dc:date>2017-07-10T11:11:34Z</dc:date>
    <item>
      <title>not able to run hplsql function via cli</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233465#M195291</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to create hplsql function using details present in &lt;A href="http://www.hplsql.org/udf" target="_blank"&gt;http://www.hplsql.org/udf&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;However when i am trying to execute it , it throws error.&lt;/P&gt;&lt;P&gt;/home/devRht/hplsql/hplsql-0.3.17/hplsql.jar does not exist
&lt;/P&gt;&lt;P&gt;However i can see that jar name is hplsql-0.3.17.jar which is present in above path. So why is it not picking up correct name?&lt;/P&gt;&lt;P&gt;I have my hplsql file also configured same way.&lt;/P&gt;&lt;P&gt;export PATH=$PATH:/home/devRht/hplsql/hplsql-0.3.17/&lt;/P&gt;&lt;P&gt;SCRIPTPATH=${0%/*}
java -cp $SCRIPTPATH:$HADOOP_CLASSPATH:$SCRIPTPATH/hplsql-0.3.17.jar:$SCRIPTPATH/antlr-runtime-4.5.jar $HADOOP_OPTS org.apache.hive.hplsql.Hplsql "$@
"&lt;/P&gt;&lt;P&gt;what is the issue i am not able to understand ?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2017 18:49:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233465#M195291</guid>
      <dc:creator>rishit606</dc:creator>
      <dc:date>2017-07-01T18:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hplsql function via cli</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233466#M195292</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14637/sevakrishit.html" nodeid="14637"&gt;@Rishit shah&lt;/A&gt;&lt;P&gt;Try hplsql as 
java -cp /home/devRht/hplsql/hplsql-0.3.17/hplsql.jar:/home/devRht/hplsql/hplsql-0.3.17/antlr-runtime-4.5.jar:$HADOOP_CLASSPATH org.apache.hive.hplsql.Hplsql "$@ "&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 14:46:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233466#M195292</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2017-07-07T14:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hplsql function via cli</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233467#M195293</link>
      <description>&lt;P&gt;hi Sindhu,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I tried to change as per your suggestion :&lt;/P&gt;&lt;P&gt;java -cp /home/devRht/hplsql/hplsql-0.3.17/hplsql-0.3.17.jar:/home/devRht/hplsql/hplsql-0.3.17/antlr-runtime-4.5.jar:$HADOOP_OPTS org.apache.hive.hpl
sql.Hplsql "$@"&lt;/P&gt;&lt;P&gt;but now its showing below error&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
        at org.apache.hive.hplsql.Exec.&amp;lt;init&amp;gt;(Exec.java:87)
        at org.apache.hive.hplsql.Hplsql.main(Hplsql.java:23)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 2 more&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rishit Shah&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 17:04:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233467#M195293</guid>
      <dc:creator>rishit606</dc:creator>
      <dc:date>2017-07-07T17:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hplsql function via cli</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233468#M195294</link>
      <description>&lt;P&gt;Hi Sindhu,&lt;/P&gt;&lt;P&gt;i could solve it  with this:&lt;/P&gt;&lt;P&gt;java -cp $SCRIPTPATH:$HADOOP_CLASSPATH:/home/devRht/hplsql/hplsql-0.3.17/hplsql-0.3.17.jar:/home/devRht/hplsql/hplsql-0.3.17/antlr-runtime-4.5.jar $H
ADOOP_OPTS org.apache.hive.hplsql.Hplsql "$@"&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 17:54:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233468#M195294</guid>
      <dc:creator>rishit606</dc:creator>
      <dc:date>2017-07-07T17:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hplsql function via cli</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233469#M195295</link>
      <description>&lt;P&gt;Hi Sindhu,&lt;/P&gt;&lt;P&gt;the above just resolved the issue for normal function. &lt;/P&gt;&lt;P&gt;Now when i am trying to run frunction for hive as a UDF hplsql, it throws error.&lt;/P&gt;&lt;P&gt;Failed with exception java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: Error evaluating hplsql&lt;/P&gt;&lt;P&gt;Below steps followed:&lt;/P&gt;&lt;P&gt;add jar /usr/hdp/current/hive-server2-hive2/lib/antlr4-runtime-4.5.jar; &lt;/P&gt;&lt;P&gt;add jar /usr/hdp/2.6.0.3-8/hive2/lib/hive-hplsql-2.1.0.2.6.0.3-8.jar; &lt;/P&gt;&lt;P&gt;  add jar /home/devRht/hplsql/hplsql-0.3.17/hplsql-0.3.17.jar; &lt;/P&gt;&lt;P&gt; CREATE TEMPORARY FUNCTION hplsql AS 'org.apache.hive.hplsql.Udf'; &lt;/P&gt;&lt;P&gt;  add file /home/devRht/hplsql/hplsql-0.3.17/hplsql-site.xml;&lt;/P&gt;&lt;P&gt;add file /home/devRht/hplsql/hplsql-0.3.17/hplsql;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rishit Shah&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 19:57:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233469#M195295</guid>
      <dc:creator>rishit606</dc:creator>
      <dc:date>2017-07-07T19:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hplsql function via cli</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233470#M195296</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14637/sevakrishit.html" nodeid="14637"&gt;@Rishit shah&lt;/A&gt; Can you open a new question for this issue? This will help community with better search on issues.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 10:21:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233470#M195296</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2017-07-08T10:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hplsql function via cli</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233471#M195297</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/139/pardeepkumar.html" nodeid="139"&gt;@Pardeep&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i think this is not a seperate issue but it is on same line. &lt;/P&gt;&lt;P&gt;the above resolution just solved a partial query.&lt;/P&gt;&lt;P&gt;Hope this is fine.&lt;/P&gt;&lt;P&gt;Let me know your input for resolving my query.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rishit Shah&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 11:11:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233471#M195297</guid>
      <dc:creator>rishit606</dc:creator>
      <dc:date>2017-07-10T11:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hplsql function via cli</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233472#M195298</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14637/sevakrishit.html" nodeid="14637"&gt;@Rishit shah&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Does the query fail while running select query? Seems to be related to &lt;A href="https://issues.apache.org/jira/browse/HIVE-13877"&gt;HIVE-13877&lt;/A&gt;. &lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 11:54:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233472#M195298</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2017-07-10T11:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run hplsql function via cli</title>
      <link>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233473#M195299</link>
      <description>&lt;P&gt;Yes it fails with select queries.&lt;/P&gt;&lt;P&gt;i checked above  that but i dont know how to make us of the patch?&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rishit Shah&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 16:14:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/not-able-to-run-hplsql-function-via-cli/m-p/233473#M195299</guid>
      <dc:creator>rishit606</dc:creator>
      <dc:date>2017-07-10T16:14:15Z</dc:date>
    </item>
  </channel>
</rss>

