AnsweredAssumed Answered

HBase Schema Design Course > Exercise 4.2a: Exception in thread "main" java.lang.NoSuchMethodError:

Question asked by richlogan on Apr 8, 2016
Latest reply on Apr 12, 2016 by jallen

I am attempting to execute on Exercise 4.2a: Populate trades tall table,

     Step # 3. Run the CreateTable program as follows to create the tall table.

   

          java -cp `hbase classpath`:./schemadesignsolution-1.0.jar

          schemadesign.CreateTable tall ./500trades.txt

 

However, when I run this in the maprdemo environment from the user01 account, prompt -->

[root@maprdemo user01]  java -cp `hbase classpath`:./schemadesignsolution-1.0.jar schemadesign.CreateTable tall ./500trades.txtrades.txt

 

I get the following error messages:

 

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.hbase.HTableDescriptor.addFamily(Lorg/apache/hadoop/hbase/HColumnDescriptor;)V

        at schemadesign.CreateTableUtils.createTable(CreateTableUtils.java:38)

        at schemadesign.CreateTable.main(CreateTable.java:48)

 

What do I need to do to fix this?

 

I am not a java person.  Also, if you now of a Java IDE (for beginner or non-Java folks), or something similar to get me started for the Java interface, then please recommend one for me.

 

Thank you, kindly,

Rich

Outcomes