<?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 - creating table using Java API  - Not Compiling in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-creating-table-using-Java-API-Not-Compiling/m-p/169264#M49939</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt; Here is the documentation from javac classpath: &lt;/P&gt;&lt;PRE&gt;Classpath entries that are neither directories nor archives (.zip or .jar files) nor * are ignored.&lt;/PRE&gt;&lt;P&gt;So, you should use just a simple '&lt;STRONG&gt;*&lt;/STRONG&gt;' instead of '&lt;STRONG&gt;*.jar&lt;/STRONG&gt;'. I believe &lt;EM&gt;hbase-client/lib/*&lt;/EM&gt; would be enough. You also may use --verbose to track what javac is doing.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2016 08:53:49 GMT</pubDate>
    <dc:creator>ssoldatov</dc:creator>
    <dc:date>2016-12-23T08:53:49Z</dc:date>
    <item>
      <title>HBase - creating table using Java API  - Not Compiling</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-creating-table-using-Java-API-Not-Compiling/m-p/169263#M49938</link>
      <description>&lt;P&gt;Hi - i've written code to add table to HBase (HDP 2.4), the code is not compiling...&lt;/P&gt;&lt;P&gt;Import Statements :&lt;/P&gt;&lt;P&gt;import org.apache.hadoop.conf.Configuration; &lt;/P&gt;&lt;P&gt;import org.apache.hadoop.hbase.HBaseConfiguration; &lt;/P&gt;&lt;P&gt;import org.apache.hadoop.hbase.HColumnDescriptor; &lt;/P&gt;&lt;P&gt;import org.apache.hadoop.hbase.HTableDescriptor; &lt;/P&gt;&lt;P&gt;import org.apache.hadoop.hbase.client.HBaseAdmin; &lt;/P&gt;&lt;P&gt;import org.apache.hadoop.hbase.util.Bytes;&lt;/P&gt;&lt;P&gt;Command :&lt;/P&gt;&lt;P&gt;javac hbase/labfiles/Exercise3/HBase_SchemaTester.java&lt;/P&gt;&lt;P&gt;Error is as shown below -&amp;gt;&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# javac hbase/labfiles/Exercise3/HBase_SchemaTester.java
hbase/labfiles/Exercise3/HBase_SchemaTester.java:6: error: package org.apache.hadoop.hbase does not exist
import org.apache.hadoop.hbase.HBaseConfiguration;
  ^
hbase/labfiles/Exercise3/HBase_SchemaTester.java:7: error: package org.apache.hadoop.hbase does not exist
import org.apache.hadoop.hbase.HColumnDescriptor;
  ^
hbase/labfiles/Exercise3/HBase_SchemaTester.java:8: error: package org.apache.hadoop.hbase does not exist
import org.apache.hadoop.hbase.HTableDescriptor;
  ^
hbase/labfiles/Exercise3/HBase_SchemaTester.java:9: error: package org.apache.hadoop.hbase.client does not exist
import org.apache.hadoop.hbase.client.HBaseAdmin;
  ^
hbase/labfiles/Exercise3/HBase_SchemaTester.java:10: error: package org.apache.hadoop.hbase.util does not exist
import org.apache.hadoop.hbase.util.Bytes;&lt;/P&gt;&lt;P&gt;-----------------------------&lt;/P&gt;&lt;P&gt;Which Additional jars do i need to add to Classpath ?&lt;/P&gt;&lt;P&gt;I've already added following Hbase &amp;amp; Hadoop specific jars to my classpath.&lt;/P&gt;&lt;P&gt;/usr/hdp/current/hbase-regionserver/lib/*.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/current/hbase-master/lib*.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.4.0.0-169/hbase/lib/*.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/2.4.0.0-169/hadoop/lib/*.jar&lt;/P&gt;&lt;P&gt;/usr/hdp/current/hbase-client/lib/*.jar&lt;/P&gt;&lt;P&gt;My Classpath currently looks like this -&amp;gt; &lt;/P&gt;&lt;P&gt;---------------------------&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# echo $CLASSPATH
/usr/hdp/current/hbase-regionserver/lib/*.jar:/usr/hdp/current/hbase-master/lib*.jar:/usr/hdp/2.4.0.0-169/hbase/lib/*.jar:/usr/hdp/2.4.0.0-169/hadoop/lib/*.jar:/usr/hdp/current/hbase-client/lib/*.jar:/usr/hdp/2.4.0.0-169/hadoop/conf:/usr/hdp/2.4.0.0-169/hadoop/lib/*:/usr/hdp/2.4.0.0-169/hadoop/.//*:/usr/hdp/2.4.0.0-169/hadoop-hdfs/./:/usr/hdp/2.4.0.0-169/hadoop-hdfs/lib/*:/usr/hdp/2.4.0.0-169/hadoop-hdfs/.//*:/usr/hdp/2.4.0.0-169/hadoop-yarn/lib/*:/usr/hdp/2.4.0.0-169/hadoop-yarn/.//*:/usr/hdp/2.4.0.0-169/hadoop-mapreduce/lib/*:/usr/hdp/2.4.0.0-169/hadoop-mapreduce/.//*::mysql-connector-java-5.1.17.jar:mysql-connector-java-5.1.31-bin.jar:mysql-connector-java.jar:/usr/hdp/2.4.0.0-169/tez/*:/usr/hdp/2.4.0.0-169/tez/lib/*:/usr/hdp/2.4.0.0-169/tez/conf&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 08:23:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-creating-table-using-Java-API-Not-Compiling/m-p/169263#M49938</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2016-12-23T08:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: HBase - creating table using Java API  - Not Compiling</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-creating-table-using-Java-API-Not-Compiling/m-p/169264#M49939</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14047/karanalang.html" nodeid="14047"&gt;@Karan Alang&lt;/A&gt; Here is the documentation from javac classpath: &lt;/P&gt;&lt;PRE&gt;Classpath entries that are neither directories nor archives (.zip or .jar files) nor * are ignored.&lt;/PRE&gt;&lt;P&gt;So, you should use just a simple '&lt;STRONG&gt;*&lt;/STRONG&gt;' instead of '&lt;STRONG&gt;*.jar&lt;/STRONG&gt;'. I believe &lt;EM&gt;hbase-client/lib/*&lt;/EM&gt; would be enough. You also may use --verbose to track what javac is doing.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 08:53:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-creating-table-using-Java-API-Not-Compiling/m-p/169264#M49939</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2016-12-23T08:53:49Z</dc:date>
    </item>
  </channel>
</rss>

