<?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 to add jar files through hive view on ambari in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154601#M117050</link>
    <description>&lt;P&gt;Can you check if this helps? &lt;A href="https://community.hortonworks.com/questions/18727/how-do-i-add-filesjars-through-hive-view.html" target="_blank"&gt;https://community.hortonworks.com/questions/18727/how-do-i-add-filesjars-through-hive-view.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2016 17:05:43 GMT</pubDate>
    <dc:creator>sbhat</dc:creator>
    <dc:date>2016-07-28T17:05:43Z</dc:date>
    <item>
      <title>how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154598#M117047</link>
      <description>&lt;P&gt;hello all&lt;/P&gt;&lt;P&gt;I am very new  to hadoop and I wanted to add a couple of jar files to be able to perform my queries&lt;/P&gt;&lt;P&gt;I tried using add jars and the path of the jars like I do in the terminal but  I get an error &lt;/P&gt;&lt;P&gt;add jar
/tmp/udfs/esri-geometry-api.jar
/tmp/udfs/spatial-sdk-hadoop.jar;&lt;/P&gt;&lt;P&gt;Error while compiling statement: FAILED: ParseException line 4:0 cannot recognize input near 'add' 'jar' '/' [ERROR_STATUS]&lt;/P&gt;&lt;P&gt;since I am a newbie i dont exactly know how to add them since the path where the jars are located is right, and I am able to do that successfully on the terminal throught he back end.&lt;/P&gt;&lt;P&gt;Kindly if someone could elaborately explain me how to add these jar files, i would be eternally grateful&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:57:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154598#M117047</guid>
      <dc:creator>mscferenzo</dc:creator>
      <dc:date>2016-07-28T16:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154599#M117048</link>
      <description>&lt;P&gt;Hi, can you please try to add those jars saparetly?&lt;/P&gt;&lt;P&gt;add jar /tmp/udfs/esri-geometry-api.jar&lt;/P&gt;&lt;P&gt;add jar /tmp/udfs/spatial-sdk-hadoop.jar&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 17:01:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154599#M117048</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-07-28T17:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154600#M117049</link>
      <description>&lt;P&gt;Hi, Thanks&lt;/P&gt;&lt;P&gt; I tried to do so, still showing the same error..&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 17:04:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154600#M117049</guid>
      <dc:creator>mscferenzo</dc:creator>
      <dc:date>2016-07-28T17:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154601#M117050</link>
      <description>&lt;P&gt;Can you check if this helps? &lt;A href="https://community.hortonworks.com/questions/18727/how-do-i-add-filesjars-through-hive-view.html" target="_blank"&gt;https://community.hortonworks.com/questions/18727/how-do-i-add-filesjars-through-hive-view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 17:05:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154601#M117050</guid>
      <dc:creator>sbhat</dc:creator>
      <dc:date>2016-07-28T17:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154602#M117051</link>
      <description>&lt;P&gt;ok, then you can also put these required jars inside hive.aux.jars.path through ambari hive conf, jars will get picked automatically.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 17:11:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154602#M117051</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-07-28T17:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154603#M117052</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;before posting this question, i did refer the above link, and so managed to add the jar files through the files view into /tmp/udf. But I dont want to create a temporary function, I just want to add the couple of jars because they are needed  for any query to run because it is geospatial data. &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 17:12:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154603#M117052</guid>
      <dc:creator>mscferenzo</dc:creator>
      <dc:date>2016-07-28T17:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154604#M117053</link>
      <description>&lt;P&gt;Hi jitendra,&lt;/P&gt;&lt;P&gt;So i set this property on custom hive-server2 as hive.aux.jars.path and the path right??&lt;/P&gt;&lt;P&gt;and do i have to set 2 different properties for both the jars or use a ',' to seperate both the jars in a single property?  &lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 17:59:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154604#M117053</guid>
      <dc:creator>mscferenzo</dc:creator>
      <dc:date>2016-07-28T17:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154605#M117054</link>
      <description>&lt;P&gt;mkdir /usr/hdp/current/hive-server2/auxlib/ on HS2 node.&lt;/P&gt;&lt;P&gt;copy required jars to /usr/hdp/current/hive-server2/auxlib/ loaction.&lt;/P&gt;&lt;P&gt;Added below property into custom hive-server2 and restart the all affected services. And see if that help.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hive.aux.jars.path&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;/usr/hdp/current/hive-server2/auxlib/&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 18:11:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154605#M117054</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-07-28T18:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154606#M117055</link>
      <description>&lt;P&gt;hi Jitendra,&lt;/P&gt;&lt;P&gt;Tried to do as you said&lt;/P&gt;&lt;P&gt;when I tried to execute the query say select * from test.building i got the error &lt;/P&gt;&lt;P&gt;Error while compiling statement: FAILED: RuntimeException java.lang.ClassNotFoundException: com.esri.json.hadoop.UnenclosedJsonInputFormat [ERROR_STATUS]&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 18:39:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154606#M117055</guid>
      <dc:creator>mscferenzo</dc:creator>
      <dc:date>2016-07-28T18:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154607#M117056</link>
      <description>&lt;P&gt;Looks like it still didn't picked the jar file, lets try another approach.&lt;/P&gt;&lt;P&gt;In hive-env.sh file through Ambari.&lt;/P&gt;&lt;P&gt;export HIVE_AUX_JARS_PATH=&amp;lt;jar1 file path&amp;gt;,&amp;lt;jar2 file path&amp;gt;&lt;/P&gt;&lt;P&gt;And restart the services.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 18:59:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154607#M117056</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-07-28T18:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154608#M117057</link>
      <description>&lt;P&gt;Did you mean hive-env template in advance hive-env? &lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:05:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154608#M117057</guid>
      <dc:creator>mscferenzo</dc:creator>
      <dc:date>2016-07-28T20:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154609#M117058</link>
      <description>&lt;P&gt;Yes, under same location. just after below line&lt;/P&gt;&lt;P&gt;"# Folder containing extra libraries required for hive compilation/execution can be controlled by:&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:11:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154609#M117058</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-07-28T20:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154610#M117059</link>
      <description>&lt;P&gt;no luck. here is what is visible initially and i added the path below those lines. Restarted it, but still getting the same error&lt;/P&gt;&lt;P&gt;Folder containing extra libraries required for hive compilation/execution can be controlled by:
if [ "${HIVE_AUX_JARS_PATH}" != "" ]; then
  if [ -f "${HIVE_AUX_JARS_PATH}" ]; then
    export HIVE_AUX_JARS_PATH=${HIVE_AUX_JARS_PATH}
  elif [ -d "/usr/hdp/current/hive-webhcat/share/hcatalog" ]; then
    export HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-webhcat/share/hcatalog/hive-hcatalog-core.jar
  fi
elif [ -d "/usr/hdp/current/hive-webhcat/share/hcatalog" ]; then
  export HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-webhcat/share/hcatalog/hive-hcatalog-core.jar
fi
export METASTORE_PORT={{hive_metastore_port}} &lt;/P&gt;&lt;P&gt;export  HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-server2/auxlib/esri-geometry-api.jar,/usr/hdp/current/hive-server2/auxlib/spatial-sdk-hadoop.jar.&lt;/P&gt;&lt;P&gt;I am not sure whether I am making any mistake&lt;/P&gt;&lt;P&gt;Should I try changing it in hive-site.xml or hive-env.sh through the terminal/shell, will it make any difference? &lt;/P&gt;&lt;P&gt;I was referring to this blog &lt;/P&gt;&lt;P&gt; &lt;A href="http://chetnachaudhari.github.io/2016-02-16/how-to-add-auxiliary-jars-in-hive/"&gt;http://chetnachaudhari.github.io/2016-02-16/how-to-add-auxiliary-jars-in-hive/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:23:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154610#M117059</guid>
      <dc:creator>mscferenzo</dc:creator>
      <dc:date>2016-07-28T20:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154611#M117060</link>
      <description>&lt;P&gt;Manual change won't work becuase when you restart the service through Ambari, confs it will get overwrite. I believe only change remaining is adding in hive-site.xml through Ambari and restart service.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:27:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154611#M117060</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-07-28T20:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154612#M117061</link>
      <description>&lt;P&gt;i dont think i see where i can add or edit the property through ambari in advanced hive-site or custom hive-site&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:40:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154612#M117061</guid>
      <dc:creator>mscferenzo</dc:creator>
      <dc:date>2016-07-28T20:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to add jar files through hive view on ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154613#M117062</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/12149/mscferenzo.html"&gt;@Srinivas Santhanam&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Add semicolon at the end and make sure that your ambari user is mapped to an OS user that has access to the path&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/12149/mscferenzo.html"&gt;&lt;/A&gt;add jar /tmp/udfs/esri-geometry-api.jar;&lt;/P&gt;&lt;P&gt;add jar /tmp/udfs/spatial-sdk-hadoop.jar;&lt;/P&gt;&lt;P&gt;My suggestion is to place these libraries in HDFS with your Ambari user that has hdfs priviles. Such you can have access to the libraries from any node with hive client.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;add jar hdfs://whateverhostname:8020/tmp/esri/esri-geometry-api.jar;&lt;/P&gt;&lt;P&gt;If the response addresses your problem, don't forget to vote and accept best answer. It is a stimulus for the effort. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 00:42:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-add-jar-files-through-hive-view-on-ambari/m-p/154613#M117062</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-07-29T00:42:23Z</dc:date>
    </item>
  </channel>
</rss>

