sqoop采坑

19/10/16 14:19:04 INFO sqoop.Sqoop: Running Sqoop version: 1.4.7
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Error parsing arguments for job:
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --import--meta-connect
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: jdbc:hsqldb:hsql://master:16000/sqoop
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --connect
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: jdbc:oracle:thin:@192.168.240.189:1521:orcl
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --username
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: test
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --password
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: test
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --table
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: GIS_GPSHISTORY_201803
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: -m
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: 1
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --split-by
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: RECVTIME
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --incremental
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: append
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --check-column
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: RECVTIME
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --fields-terminated-by
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: \t
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --target-dir
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: /user/hadoop-jrq/biggis/GIS_GPSHISTORY_201803
19/10/16 14:19:04 ERROR tool.BaseSqoopTool: Unrecognized argument: --delete-target-dir

原因: --import中间必须要有个空格,否则会报此错误(注意–delete-target-dir和–incremental append不能同时使用,否则创建不了job)

java.lang.RuntimeException: Could not load db driver class: oracle.jdbc.OracleDriver
缺少jdbc包,将包上传到sqoop的lib目录下即可

©️2020 CSDN 皮肤主题: 技术工厂 设计师:CSDN官方博客 返回首页