Sqoop抽取Phoenix数据中遇到的问题

1、running sqoop:java.lang.NullpointerException

解决方法:

缺少java-json.jar的jar包,下载jar包,并将其放在hbase/lib 和sqoop/lib的文件夹下.

下载链接:https://download.csdn.net/download/cherish_dwj/10729279

2、Error: java.lang.NoSuchMethodError: com.lmax.disruptor.dsl.Disruptor.<init>(Lcom/lmax/disruptor/EventFactory;ILjava/util/concurrent/ThreadFactory;Lcom/lmax/disruptor/dsl/ProducerType;Lcom/lmax/disruptor/WaitStrategy;)V

原因:Hbase中依赖的是disruptor-3.3.0.jar的jar包,在com.lmax.disruptor 3.3.0 包中找不到com.lmax.disruptor.dsl.Disruptor类.

解决方法:

将jar包换成disruptor-3.3.8.jar放到$SQOOP_HOME/lib下即可。

下载链接:https://download.csdn.net/download/cherish_dwj/10728864

猜你喜欢

转载自blog.csdn.net/cherish_dwj/article/details/83143305
今日推荐