SQOOP 1 无法加载 Sybase 驱动程序 - 无法加载数据库驱动程序 class:com.sybase。jdbc3.jdbc.SybDriver

SQOOP 1 failed to load Sybase driver - Could not load db driver class: com.sybase.jdbc3.jdbc.SybDriver

我正在尝试使用 sqoop-1 从 sybaseIQ 导入数据。 jdts-1.3.1.jar 位于 /sqoop/sqoop-1.4.6/lib 文件夹中。

运行此语法时,

sqoop import  --connect '`jdbc:jtds:sybase:tds`://10.***.*.***@5500:*****' --driver 'com.sybase.jdbc3.jdbc.SybDriver'  --username "username" --password -p --query "select * from dw.DM_ADDRESS where rownum <= 1000 and $CONDITIONS" --target-dir "/user/*****/WT_Address_Itc" --split-by 1 --verbose
and am getting this error:

17/03/02 11:15:19 DEBUG manager.SqlManager: Execute getColumnInfoRawQuery : select  * from dw.DM_ADDRESS_ITC where rownum <= 1000 and (1 = 0)
17/03/02 11:15:19 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.RuntimeException: Could not load db driver class: com.sybase.jdbc3.jdbc.SybDriver
java.lang.RuntimeException: Could not load db driver class: com.sybase.jdbc3.jdbc.SybDriver
at org.apache.sqoop.manager.SqlManager.makeConnection(SqlManager.java:856)
at org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)
at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:744)
at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:767)
at org.apache.sqoop.manager.SqlManager.getColumnInfoForRawQuery(SqlManager.java:270)
at org.apache.sqoop.manager.SqlManager.getColumnTypesForRawQuery(SqlManager.java:241)
at org.apache.sqoop.manager.SqlManager.getColumnTypesForQuery(SqlManager.java:234)
at org.apache.sqoop.manager.ConnManager.getColumnTypes(ConnManager.java:304)
at org.apache.sqoop.orm.ClassWriter.getColumnTypes(ClassWriter.java:1833)
at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1645)
at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:107)
at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:478)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:606)
at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
at org.apache.sqoop.Sqoop.main(Sqoop.java:236)

我在这里错过了什么?我使用的是正确的驱动程序吗?那是 http://jtds.sourceforge.net/ 网站上提供的吗?

非常感谢您的帮助!

driverclasscom.sybase.jdbc3.jdbc.SybDriver属于jconn3.jar
下载 jconn3.jar 并将其放在 $SQOOP_HOME/lib 目录中。

并且 connectionString 必须是,

jdbc:sybase:Tds:dbhost:dbport/DATABASE=dbname