<?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: Adding a jar to hbase-indexer mapreduce job in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-jar-to-hbase-indexer-mapreduce-job/m-p/64330#M74245</link>
    <description>&lt;P&gt;Ok, my bad.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A&amp;nbsp;quotation&amp;nbsp;from &lt;A href="&amp;nbsp;https://stackoverflow.com/questions/6890087/problem-with-libjars-in-hadoop" target="_blank"&gt;stackoverflow&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;-libjars makes Jars only available for JVMs running remote map and reduce task&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;To make these same JAR’s available to the client JVM (The JVM that’s created when you run the hadoop jar command) need to set HADOOP_CLASSPATH environment variable:&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Therefore:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;export HADOOP_CLASSPATH=`hbase-indexer classpath`:dependencies.jar&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I'm using hbase-indexer to get solr dependencies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gin&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 14:56:16 GMT</pubDate>
    <dc:creator>ginsul</dc:creator>
    <dc:date>2018-02-05T14:56:16Z</dc:date>
    <item>
      <title>Adding a jar to hbase-indexer mapreduce job</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-jar-to-hbase-indexer-mapreduce-job/m-p/64272#M74244</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;am unable to add extra dependencies to the hbase-indexer batch job.&lt;/P&gt;
&lt;P&gt;Neither&amp;nbsp;HBASE_INDEXER_CLASSPATH nor &lt;EM&gt;--&lt;/EM&gt;libjars seem to add anything to the classpath:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;hadoop jar hbase-indexer-mr-job.jar \
--libjars dependencies.jar \
--hbase-indexer-zk 10.0.1.252:2181 \
--hbase-indexer-name collection \
--reducers 0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Env variable&amp;nbsp;&lt;SPAN&gt;HBASE_INDEXER_CLASSPATH works&amp;nbsp;as expected with the hbase-indexer process though.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I doing something wrong?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Gin&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:49:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-jar-to-hbase-indexer-mapreduce-job/m-p/64272#M74244</guid>
      <dc:creator>ginsul</dc:creator>
      <dc:date>2022-09-16T12:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a jar to hbase-indexer mapreduce job</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-jar-to-hbase-indexer-mapreduce-job/m-p/64330#M74245</link>
      <description>&lt;P&gt;Ok, my bad.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A&amp;nbsp;quotation&amp;nbsp;from &lt;A href="&amp;nbsp;https://stackoverflow.com/questions/6890087/problem-with-libjars-in-hadoop" target="_blank"&gt;stackoverflow&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;-libjars makes Jars only available for JVMs running remote map and reduce task&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;To make these same JAR’s available to the client JVM (The JVM that’s created when you run the hadoop jar command) need to set HADOOP_CLASSPATH environment variable:&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Therefore:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;export HADOOP_CLASSPATH=`hbase-indexer classpath`:dependencies.jar&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I'm using hbase-indexer to get solr dependencies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gin&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 14:56:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-jar-to-hbase-indexer-mapreduce-job/m-p/64330#M74245</guid>
      <dc:creator>ginsul</dc:creator>
      <dc:date>2018-02-05T14:56:16Z</dc:date>
    </item>
  </channel>
</rss>

