sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Foster (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-2759) Sqoop-1.4.6 is not compatible with hbase 1.0.1.1 ?
Date Wed, 17 Aug 2016 19:25:20 GMT

    [ https://issues.apache.org/jira/browse/SQOOP-2759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15425208#comment-15425208
] 

Craig Foster commented on SQOOP-2759:
-------------------------------------

The referenced patch is building against HBase 0.98. Would like to see Sqoop building against
HBase 1.0 as well. 

> Sqoop-1.4.6 is not compatible with hbase 1.0.1.1 ?
> --------------------------------------------------
>
>                 Key: SQOOP-2759
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2759
>             Project: Sqoop
>          Issue Type: Bug
>          Components: hbase-integration
>    Affects Versions: 1.4.6
>         Environment: hadoop-2.6.0 , sqoop-1.4.6´╝îhbase-1.0.1.1
>            Reporter: alexBai
>            Priority: Critical
>
> 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 got the following error,It seems the hbase client sqoop used is not compatible with
hbase server, and I tried to compile the sqoop-1.4.6 with hbase-1.0.1.1 by command "ant clean
release \-Dhadoopversion=200",but failed. And I found I can do it in two step:first,create
the table in hbase;and then run the sqoop command without the option "--hbase-create-table".
> Is there a possible way to solve the problem?
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message