<?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: HBase mapreduce error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-mapreduce-error/m-p/121866#M51216</link>
    <description>&lt;P&gt;HADOOP_CLASSPATH=$(ls -1 /usr/hdp/current/hbase-client/lib/&lt;STRONG&gt;*.jar&lt;/STRONG&gt; | tr '\n', 
':') hadoop jar mr.jar hbase.labfiles.Exercise5.ProductAnalyzer -libjars
 $(ls -1 /usr/hdp/current/hbase-client/lib/&lt;STRONG&gt;*.jar&lt;/STRONG&gt; | tr '\n', ',')&lt;/P&gt;&lt;P&gt;This worked finally (changes highlighted) !&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2017 03:49:30 GMT</pubDate>
    <dc:creator>karan_alang1</dc:creator>
    <dc:date>2017-01-11T03:49:30Z</dc:date>
    <item>
      <title>HBase mapreduce error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-mapreduce-error/m-p/121865#M51215</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;i'm running a mapReduce job - copying from Hbase table and putting into HDFS, ansd running into error.&lt;/P&gt;&lt;P&gt;Any ideas on this ?&lt;/P&gt;&lt;P&gt;Code snippet :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;public class ProductAnalyzer &lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;extends Configured implements Tool {
&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;.....
&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;public static void main(String[] args) throws Exception {
  System.out.println(" in main111");
System.exit(ToolRunner.run(new Configuration(), new ProductAnalyzer(), args));
  }

  public int run(String[] args) throws Exception {
System.out.println(" In run ");
String table = "sales_fact";
String output = "/tmp/exercise5/output1";
&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;}}
&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Command :&lt;/P&gt;&lt;P&gt;HADOOP_CLASSPATH=$(ls -1 /usr/hdp/current/hbase-client/lib/* | tr '\n', ':')  hadoop jar mr.jar hbase.labfiles.Exercise5.ProductAnalyzer -libjars $(ls -1 /usr/hdp/current/hbase-client/lib/* | tr '\n', ',')&lt;/P&gt;&lt;P&gt;Error :&lt;/P&gt;&lt;P&gt;WARNING: Use "yarn jar" to launch YARN applications.
 in main111
Exception in thread "main" java.lang.IllegalArgumentException: File name can't be empty string
   at org.apache.hadoop.util.GenericOptionsParser.validateFiles(GenericOptionsParser.java:390)
   at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:299)
   at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:487)
   at org.apache.hadoop.util.GenericOptionsParser.&amp;lt;init&amp;gt;(GenericOptionsParser.java:170)
   at org.apache.hadoop.util.GenericOptionsParser.&amp;lt;init&amp;gt;(GenericOptionsParser.java:153)
   at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
   at hbase.labfiles.Exercise5.ProductAnalyzer.main(ProductAnalyzer.java:71)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)&lt;/P&gt;&lt;P&gt;In calling -&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;System.exit(ToolRunner.run(new Configuration(), new ProductAnalyzer(), args));
&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in main(), the program errors out&lt;/P&gt;&lt;P&gt;run() - is not being called.. Any ideas ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 15:28:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-mapreduce-error/m-p/121865#M51215</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-10T15:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: HBase mapreduce error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-mapreduce-error/m-p/121866#M51216</link>
      <description>&lt;P&gt;HADOOP_CLASSPATH=$(ls -1 /usr/hdp/current/hbase-client/lib/&lt;STRONG&gt;*.jar&lt;/STRONG&gt; | tr '\n', 
':') hadoop jar mr.jar hbase.labfiles.Exercise5.ProductAnalyzer -libjars
 $(ls -1 /usr/hdp/current/hbase-client/lib/&lt;STRONG&gt;*.jar&lt;/STRONG&gt; | tr '\n', ',')&lt;/P&gt;&lt;P&gt;This worked finally (changes highlighted) !&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 03:49:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-mapreduce-error/m-p/121866#M51216</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-01-11T03:49:30Z</dc:date>
    </item>
  </channel>
</rss>

