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

Szabolcs Vasas commented on SQOOP-2973:
---------------------------------------

Hi [~m_rajib74], [~ericlin], 

I have checked the code and it seems that in HBase 1.0.0 the signature  of 
HTableDescriptor.addFamily has changed. Before 1.0.0 it was a void method and 
from 1.0.0 it returns an HTableDescriptor instance, so if the code was compiled 
with HBase version 0.94.2 (which is the default in Sqoop trunk now) and you 
want to run Sqoop with HBase 1.2.1 then the exception mentioned the description 
is expected because the JVM cannot find the void HTableDescriptor.addFamily 
method.

The solution is to use the same version of HBase runtime which was compile 
time. Which version of Sqoop do you guys use?

Regards,
Szabolcs

> 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
>
> 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)

Reply via email to