ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
java.lang.NullPointerException
at org.json.JSONObject.<init>(JSONObject.java:144)
at org.apache.sqoop.util.SqoopJsonUtil.getJsonStringforMap(SqoopJsonUtil.java:43)
at org.apache.sqoop.SqoopOptions.writeProperties(SqoopOptions.java:785)
at org.apache.sqoop.metastore.hsqldb.HsqldbJobStorage.createInternal(HsqldbJobStorage.java:399)
at org.apache.sqoop.metastore.hsqldb.HsqldbJobStorage.create(HsqldbJobStorage.java:379)
at org.apache.sqoop.tool.JobTool.createJob(JobTool.java:181)
at org.apache.sqoop.tool.JobTool.run(JobTool.java:294)
at org.apache.sqoop.Sqoop.run(Sqoop.java:147)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:82)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:243)
at org.apache.sqoop.Sqoop.main(Sqoop.java:252)
报错的原因是因为 sqoop 缺少了 java-josn.jar
导致的,我的 sqoop 版本是 1.4.7,不知道新版本会不会包含该 jar,因为我不想更换版本,所以手动下载 java-json.jar 到 ${SQOOP_HOME}/lib 下即可解决该问题
java-json.jar
下载地址:http://www.java2s.com/Code/Jar/j/Downloadjavajsonjar.htm
如果上面的地址访问不了,可以关注公众号:huangxy,回复 java-json 即可获取下载链接
sqoop job 创建报错 Got exception running Sqoop: java.lang.NullPointerException java.lang.NullPointerExce
导致的,我的 sqoop 版本是 1.4.7,不知道新版本会不会包含该 jar,因为我不想更换版本,所以手动下载 java-json.jar 到 ${SQOOP_HOME}/lib 下即可解决该问题。下载地址:http://www.java2s.com/Code/Jar/j/Downloadjavajsonjar.htm。如果上面的地址访问不了,可以关注公众号:huangxy,回复 java-json 即可获取下载链接。报错的原因是因为 sqoop 缺少了。的时候报了一个空指针异常。
ERROR tool.JobTool: I/O error performing job operation: java.io.IOException: Job jjoobb already exists at org.apache.sqoop.metastore.hsqldb.HsqldbJobStorage.create(HsqldbJobStorage.java:373)
sqoop的报错
洛萨之锋公司最近需要使用sqoop利用hcatalog将数据从mysql导入到hive,我在导数据的时候碰到这样的问题:
ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException.
具体Exception是:
java.lang.NullPointerException
at jav
sqoop 导入数据时候报错ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.RuntimeException: Could not load db driver class: oracle.jdbc.OracleDriver
缺少驱动包。
/usr/bin/sqoop list-databases \
--connect jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xx.xx.xx)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = p3edsdb))) \
--username xxx\
--password xxx
##注意:jdb...
sqoop1.4.6报错:ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.RuntimeException: Could not l
1、启动sqoop报错:ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.RuntimeException: Could not load db driver class: com.mysql.jdbc.Driver
[root@slave bin]# ./sqoop list-databases --connect jdbc:m
通过java api并发调用sqoop,发现如下相关异常
2020-07-03 15:10:44 [ pool-1-thread-6:350039 ] - [ ERROR ] Got exception running Sqoop: java.lang.NullPointerException
java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:203)
at java.util.Arrays
mysql> show create table autoextend\G
CREATE TABLE `autoextend` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
解决错误:Could not find or load main class org.apache.sqoop.Sqoop。把这个sqoop-1.4.7.jar放到sqoop根目录下的lib目录中,即可。
如果你没有积分,也可以自己去这个地址下载:https://talend-update.talend.com/nexus/content/repositories/libraries/org/apache/sqoop/sqoop/1.4.7/sqoop-1.4.7.jar