<?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: Hive cannot see jar in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166846#M53817</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;@ed day&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you tried adding the jar in the script?&lt;/P&gt;&lt;P&gt;add jar /path/to/jar/file.jar&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 23:26:55 GMT</pubDate>
    <dc:creator>icocio</dc:creator>
    <dc:date>2017-02-08T23:26:55Z</dc:date>
    <item>
      <title>Hive cannot see jar</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166844#M53815</link>
      <description>&lt;P&gt;I have a Hive table &lt;STRONG&gt;tweets&lt;/STRONG&gt; stored as text that I am trying to write to another table &lt;STRONG&gt;tweetsORC&lt;/STRONG&gt; that is ORC.&lt;/P&gt;&lt;P&gt;I am trying to insert from &lt;STRONG&gt;tweets&lt;/STRONG&gt; to &lt;STRONG&gt;tweetsORC &lt;/STRONG&gt;using:&lt;/P&gt;&lt;PRE&gt;INSERT OVERWRITE TABLE tweetsORC SELECT &amp;lt;fields&amp;gt; FROM tweets;&lt;/PRE&gt;&lt;P&gt;When Hive was started I used:&lt;/P&gt;&lt;PRE&gt;HADOOP_USER_NAME=hdfs hive ... -hiveconf hive.aux.jars.path=/home/ed/Downloads/serde/json-serde-1.3.7-jar-with-dependencies.jar &lt;/PRE&gt;&lt;P&gt;this errors with:&lt;/P&gt;&lt;PRE&gt;File does not exist: /home/ed/Downloads/serde/json-serde-1.3.7-jar-with-dependencies.jar&lt;/PRE&gt;&lt;P&gt;I have copied the file to that location for all nodes. I have copied it to /usr/hdp/current/hive-server2/auxlib on the Hiveserver2 machine. Still get the error.&lt;/P&gt;&lt;P&gt;I have tried using:&lt;/P&gt;&lt;PRE&gt;HADOOP_USER_NAME=hdfs hive ... -hiveconf hive.aux.jars.path=hdfs:///master.royble.co.uk/jars/json-serde-1.3.7-jar-with-dependencies.jar&lt;/PRE&gt;&lt;P&gt;which gives:&lt;/P&gt;&lt;PRE&gt;RuntimeException: java.lang.IllegalArgumentException: Wrong FS: &lt;/PRE&gt;&lt;P&gt;I have tried changing hive.metastore.warehouse.dir to hdfs:///master.royble.co.uk/user/hive/warehouse.&lt;/P&gt;&lt;P&gt;Still get the error.&lt;/P&gt;&lt;P&gt;I'm tearing my hair out! TIA!!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 23:03:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166844#M53815</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-02-08T23:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hive cannot see jar</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166845#M53816</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;@ed day&lt;/A&gt;: if you're trying to access files on the local file system, try adding the `file://` protocol to the path, e.g. `file:///home/ed/...`.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 23:22:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166845#M53816</guid>
      <dc:creator>awoolford</dc:creator>
      <dc:date>2017-02-08T23:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hive cannot see jar</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166846#M53817</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;@ed day&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you tried adding the jar in the script?&lt;/P&gt;&lt;P&gt;add jar /path/to/jar/file.jar&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 23:26:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166846#M53817</guid>
      <dc:creator>icocio</dc:creator>
      <dc:date>2017-02-08T23:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hive cannot see jar</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166847#M53818</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;@ed day&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11394/edday.html" nodeid="11394"&gt;&lt;/A&gt;If you do not specify the file system in the jar path, it will take the local file system path as shown below:&lt;/P&gt;&lt;PRE&gt;hive.aux.jars.path=/home/ed/Downloads/serde/json-serde-1.3.7-jar-with-dependencies.jar &lt;/PRE&gt;&lt;P&gt;gets translated to :&lt;/P&gt;&lt;PRE&gt;hive.aux.jars.path=file:///home/ed/Downloads/serde/json-serde-1.3.7-jar-with-dependencies.jar &lt;/PRE&gt;&lt;P&gt;In your case, you can try by explicitly adding  &lt;STRONG&gt;file://  &lt;/STRONG&gt;before the jar path.&lt;/P&gt;&lt;P&gt;If your jar is in the HDFS then use:&lt;/P&gt;&lt;PRE&gt;hive.aux.jars.path=hdfs:///master.royble.co.uk/jars/json-serde-1.3.7-jar-with-dependencies.jar	
&lt;/PRE&gt;&lt;P&gt;P.S. please verify that the hadoop user you are using to execute these, has the read privileges to your local jar path.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 02:39:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166847#M53818</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-02-10T02:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hive cannot see jar</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166848#M53819</link>
      <description>&lt;P&gt;Thanks that solved it!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 17:30:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166848#M53819</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-02-10T17:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hive cannot see jar</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166849#M53820</link>
      <description>&lt;P&gt;Those were what I tried. However I think you are right about the user/permissions thing. If I have time I'll see if it helps. Thasnk!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 17:31:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-cannot-see-jar/m-p/166849#M53820</guid>
      <dc:creator>ed_day</dc:creator>
      <dc:date>2017-02-10T17:31:10Z</dc:date>
    </item>
  </channel>
</rss>

