sqoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 行云流水 <xingyunbaijun...@163.com>
Subject NoSuchMethodError: org.apache.hadoop.hbase.HTableDescriptor.addFamily
Date Mon, 28 Dec 2015 10:33:29 GMT
Hi,all:
when I use the following command to import data from mysql to hbase, I meet the problem:
command: sqoop import --connect jdbc:mysql://test.host:3306/hive --table test --username hive
--password hive --hbase-create-table --hbase-table version --column-family C -m 1 --verbose


I have made all the necessary installation and environment is sourced.From the stackoverflow,I
found the answer: keep the compatible version, but my env is as  follow:


    Hadoop version 2.6.0 HBase 1.0.1.1 Running Sqoop version: 1.4.6


I tried to compile the sqoop-1.4.6 with hbase 1.0.1.1, but failed. Could you help me out ?
 Thanks advance!




Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.hbase.HTableDescriptor.addFamily(Lorg/apache/hadoop/hbase/HColumnDescriptor;)V
at org.apache.sqoop.mapreduce.HBaseImportJob.jobSetup(HBaseImportJob.java:222)
at org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:264)
at org.apache.sqoop.manager.SqlManager.importTable(SqlManager.java:673)
at org.apache.sqoop.manager.MySQLManager.importTable(MySQLManager.java:118)
at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:497)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
at org.apache.sqoop.Sqoop.main(Sqoop.java:236)

Mime
View raw message