When using Sqoop to import data from MySQL into HBase, an error occurred

52 Views Asked by At

I tried to execute the following command

./bin/sqoop import --connect jdbc:mysql://localhost:3306/dblab --username root --password 123456 --table user_action --hbase-table user_action --column-family f1 --hbase-row-key id --hbase-create-table -m 1

But the result was not as expected

Frist Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.hbase.client.HBaseAdmin.<init>(Lorg/apache/hadoop/conf/Configuration;)V

After that I tried the following example sqoop import from mysql into hbase: java.lang.NoSuchMethodError: org.apache.hadoop.hbase.client.HBaseAdmin enter image description here enter image description here

0

There are 0 best solutions below