我需要在Sqoop导入中传递libjars但它失败了“ERROR tool.BaseSqoopTool:Unrecognized argument:libjars”
我的Sqoop命令是:
sqoop job - 创建myjob - import -libjars /var/lib/sqoop/db2jcc4.jar,/var/lib/sqoop/db2jcc.jar - Dhadoop.security.credential.provider.path = jceks://hdfs/user/xyz/db2/db2_password.jceks --driver com.ibm.db2.jcc.DB2Driver --connect jdbc:db2:// server:3714 / XYX --username user --password-alias db2.password.alias --table db.table_name --fields-terminated-by'\ 001' --null-string'\ N' - delete-target-dir --target-dir / user / jainm2 / test_data1 -split-by“col_name”-m 3 --delete-target-dir --incremental append --last-value“2005-02-14 16:23:25”
答案 0 :(得分:0)
根据Sqoop文档,应在sqoop job
,
sqoop job (generic-args) (job-args) [-- [subtool-name] (subtool-args)]
尝试这种方式,让我知道它是否正常。