<?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 how to add third party jars for a mapreduce program in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-add-third-party-jars-for-a-mapreduce-program/m-p/105482#M25551</link>
    <description>&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;Am getting this error &lt;/P&gt;&lt;PRE&gt;cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class com.vertica.hadoop.VerticaOutputFormat not found
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class com.vertica.hadoop.VerticaOutputFormat not found

&lt;/PRE&gt;&lt;P&gt;However , I have added the third party jar into the /usr/hdp/2.3.4.0-***/hadoop/lib &lt;/P&gt;&lt;P&gt;and have also used -libjar option while running the command .&lt;/P&gt;&lt;P&gt;can anyone let me know where to set the hadoop classpath correctly  , and if we are copying the third party jars into the hadoop source folder  there are many folder within like hadoop-hdfs,hadoop-mapreduce,hadoop-httpf,hadoop-yarn do we copy the third party jars here too ????&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 15:14:09 GMT</pubDate>
    <dc:creator>prklearning</dc:creator>
    <dc:date>2016-04-19T15:14:09Z</dc:date>
    <item>
      <title>how to add third party jars for a mapreduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-add-third-party-jars-for-a-mapreduce-program/m-p/105482#M25551</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;Am getting this error &lt;/P&gt;&lt;PRE&gt;cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class com.vertica.hadoop.VerticaOutputFormat not found
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class com.vertica.hadoop.VerticaOutputFormat not found

&lt;/PRE&gt;&lt;P&gt;However , I have added the third party jar into the /usr/hdp/2.3.4.0-***/hadoop/lib &lt;/P&gt;&lt;P&gt;and have also used -libjar option while running the command .&lt;/P&gt;&lt;P&gt;can anyone let me know where to set the hadoop classpath correctly  , and if we are copying the third party jars into the hadoop source folder  there are many folder within like hadoop-hdfs,hadoop-mapreduce,hadoop-httpf,hadoop-yarn do we copy the third party jars here too ????&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:14:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-add-third-party-jars-for-a-mapreduce-program/m-p/105482#M25551</guid>
      <dc:creator>prklearning</dc:creator>
      <dc:date>2016-04-19T15:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to add third party jars for a mapreduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-add-third-party-jars-for-a-mapreduce-program/m-p/105483#M25552</link>
      <description>&lt;P&gt;You need to add jars with -libjars not -libjar&lt;/P&gt;&lt;P&gt;you can also add your connector jar as dependency to your project as I am not able to find a maven pom you can include. You also need to make sure if you do put the jar in lib of hadoop ditectories, you need to place it on every node.&lt;/P&gt;&lt;P&gt;You can also get familiar with DistributedCache API to upload jars in hdfs for access. &lt;A href="https://hadoop.apache.org/docs/current/api/org/apache/hadoop/filecache/DistributedCache.html" target="_blank"&gt;https://hadoop.apache.org/docs/current/api/org/apache/hadoop/filecache/DistributedCache.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 16:22:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-add-third-party-jars-for-a-mapreduce-program/m-p/105483#M25552</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-19T16:22:51Z</dc:date>
    </item>
  </channel>
</rss>

