<?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: How do I add files/jar's through hive view @ambari? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152893#M20493</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried out adding the jars that are present in hdfs using the hive view as follows&lt;/P&gt;&lt;PRE&gt;add jar 'hdfs:///tmp/udfs/hive/esri-geometry-api.jar';&lt;/PRE&gt;&lt;P&gt;But I am getting this error &lt;/P&gt;&lt;P&gt;Error while compiling statement: FAILED: ParseException line 4:0 cannot recognize input near 'add' 'jar' ''hdfs:///tmp/udfs/hive/esri-geometry-api.jar'' [ERROR_STATUS&lt;/P&gt;&lt;P&gt;I also tried to add jar like&lt;/P&gt;&lt;PRE&gt;add jar /tmp/udfs/hive/esri-geometry-api.jar;&lt;/PRE&gt;&lt;P&gt;Still I get the same error.&lt;/P&gt;&lt;P&gt;I am not able to add these spatial jars that i need . Can you help me out in that regard?  &lt;/P&gt;&lt;P&gt;the image below shows the jars in the path as shown.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6471-capture.png" style="width: 1179px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21075i871CCC0706F3DDE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6471-capture.png" alt="6471-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 12:42:39 GMT</pubDate>
    <dc:creator>mscferenzo</dc:creator>
    <dc:date>2019-08-18T12:42:39Z</dc:date>
    <item>
      <title>How do I add files/jar's through hive view @ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152887#M20487</link>
      <description>&lt;P&gt;We are experiencing a problem when trying to add jar’s/files
via hive view @ ambari. However when we perform the same commands via CLI it
works.&lt;/P&gt;&lt;P&gt;Can anyone help me on this?  &lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 02:47:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152887#M20487</guid>
      <dc:creator>cristina_lopes</dc:creator>
      <dc:date>2016-02-23T02:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add files/jar's through hive view @ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152888#M20488</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1328/cristinalopes.html" nodeid="1328"&gt;@Cristina Lopes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the following syntax was tested on sandbox in Hive view, assuming I have a UDF JAR called HiveSimpleUdf-1.0-SNAPSHOT.jar with class name com.hortonworks.hive.SimpleUDFgetRegionUS,&lt;/P&gt;&lt;PRE&gt;# upload JAR file into /tmp/udfs on hdfs, using hdfs dfs -put command or Ambari files view

SELECT "California" as State;

CREATE TEMPORARY FUNCTION getRegionUS AS 'com.hortonworks.hive.SimpleUDFgetRegionUS' USING JAR 'hdfs:///tmp/udfs/HiveSimpleUdf-1.0-SNAPSHOT.jar';

LIST JARS;

SELECT "California" as State, getRegionUS("California") as Region;

DROP FUNCTION getRegionsUS;

CREATE FUNCTION getRegionUS AS 'com.hortonworks.hive.SimpleUDFgetRegionUS' USING JAR 'hdfs:///tmp/udfs/HiveSimpleUdf-1.0-SNAPSHOT.jar';

LIST JARS;

SELECT DISTINCT getRegionUS(split(user.userlocation, ",")[0]) FROM TWEETS;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 07:05:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152888#M20488</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-23T07:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add files/jar's through hive view @ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152889#M20489</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/1328/cristinalopes.html" nodeid="1328"&gt;@Cristina Lopes&lt;/A&gt;, you can add your jar and other files to HDFS using the Files view, then go back to the Hive view and write your Hive scripts refering to those files. If you have some specific problems please let us know.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 07:21:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152889#M20489</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-02-23T07:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add files/jar's through hive view @ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152890#M20490</link>
      <description>&lt;P&gt;many thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; it worked perfectly for .jar&lt;/P&gt;&lt;P&gt;When we try to add a file for example a GeoIP2 Database it gives the following error "H110 Unable to submit statement. Error while processing statement: null [ERROR_STATUS]"&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 18:08:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152890#M20490</guid>
      <dc:creator>cristina_lopes</dc:creator>
      <dc:date>2016-02-23T18:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add files/jar's through hive view @ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152891#M20491</link>
      <description>&lt;P&gt;We have done the upload of both .jar and other file (a .dat file), for .jar worked for the other it gives the following error "H110 Unable to submit statement. Error while processing statement: null [ERROR_STATUS]"&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 18:18:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152891#M20491</guid>
      <dc:creator>cristina_lopes</dc:creator>
      <dc:date>2016-02-23T18:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add files/jar's through hive view @ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152892#M20492</link>
      <description>&lt;P&gt;I cannot test now but try the command below. I'm not sure all CLI commands work in Ambari view. Try any from &lt;A href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Cli"&gt;https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Cli&lt;/A&gt; &lt;/P&gt;&lt;PRE&gt;source /path/filename;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 19:17:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152892#M20492</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-23T19:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add files/jar's through hive view @ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152893#M20493</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried out adding the jars that are present in hdfs using the hive view as follows&lt;/P&gt;&lt;PRE&gt;add jar 'hdfs:///tmp/udfs/hive/esri-geometry-api.jar';&lt;/PRE&gt;&lt;P&gt;But I am getting this error &lt;/P&gt;&lt;P&gt;Error while compiling statement: FAILED: ParseException line 4:0 cannot recognize input near 'add' 'jar' ''hdfs:///tmp/udfs/hive/esri-geometry-api.jar'' [ERROR_STATUS&lt;/P&gt;&lt;P&gt;I also tried to add jar like&lt;/P&gt;&lt;PRE&gt;add jar /tmp/udfs/hive/esri-geometry-api.jar;&lt;/PRE&gt;&lt;P&gt;Still I get the same error.&lt;/P&gt;&lt;P&gt;I am not able to add these spatial jars that i need . Can you help me out in that regard?  &lt;/P&gt;&lt;P&gt;the image below shows the jars in the path as shown.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6471-capture.png" style="width: 1179px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21075i871CCC0706F3DDE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6471-capture.png" alt="6471-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:42:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152893#M20493</guid>
      <dc:creator>mscferenzo</dc:creator>
      <dc:date>2019-08-18T12:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add files/jar's through hive view @ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152894#M20494</link>
      <description>&lt;P&gt;@Srinivas Santhanam I guess you would have figured out by now. For others, the problem with above query is quotes in hdfs path, try without quote like below&lt;/P&gt;&lt;PRE&gt;add jar hdfs:///tmp/udfs/hive/esri-geometry-api.jar&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Oct 2016 01:37:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-add-files-jar-s-through-hive-view-ambari/m-p/152894#M20494</guid>
      <dc:creator>anuraj_iiith</dc:creator>
      <dc:date>2016-10-13T01:37:45Z</dc:date>
    </item>
  </channel>
</rss>

