[ https://issues.apache.org/jira/browse/SQOOP-2973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15748757#comment-15748757 ]
Szabolcs Vasas commented on SQOOP-2973: --------------------------------------- Hi [~ericlin]. I have tried to reproduce the problem on my machine but I did not receive this exception. I cloned the Sqoop trunk branch built it using ant clean package command then downloaded HBase 1.2.4 binaries and set my HBASE_HOME environment variable to this directory (export HBASE_HOME=~/libraries/hbase-1.2.4). After that the following command was successful: export MYCONN=jdbc:mysql://mysqlserver/sqoop export MYUSER=sqoop export MYPSWD=sqoop sqoop import --connect $MYCONN --username $MYUSER --password $MYPSWD --table t1 -m 1 --hbase-table hbase_import --column-family cf --hbase-create-table --verbose --hbase-row-key 'c_int' --verbose I looked at the log you sent me and it is strange that it seems your HBASE_HOME is not set, can you try setting it and executing your command again? > Is sqoop version 1.4.6 is compatible with hbase version 1.2.1? > --------------------------------------------------------------- > > Key: SQOOP-2973 > URL: https://issues.apache.org/jira/browse/SQOOP-2973 > Project: Sqoop > Issue Type: Bug > Environment: Haddop version 2.7.2 > Reporter: Rajib Mandal > Attachments: hbase1.2.4-error.out > > > We are getting below error while importing data from Oracle to Hbase > error Exception in thread "main" java.lang.NoSuchMethodError: > org.apache.hadoop.hbase.HTableDescriptor.addFamily(Lorg/apache/hadoop/hbase/HColumnDescriptor;)V > > The command executed > sqoop import --connect jdbc:oracle:thin:@//orcl.xxxx --username sysdba > --password xxxx --table GENDER2 --columns "EMPLOYEE_ID,FIRST_NAME,GENDER" > --hbase-table employee --column-family GENDER2 --hbase-row-key EMPLOYEE_ID > --hbase-create-table > Is there any way to resolve this? -- This message was sent by Atlassian JIRA (v6.3.4#6332)