AnsweredAssumed Answered

Sqoop1 import error with Sybase

Question asked by Karthee on Mar 2, 2017
Latest reply on Mar 6, 2017 by maprcommunity



i have installed Sqoop-1.4.6 on one of my node.sqoop-2 installed as well,but that's not production ready yet. so am i trying to import data from sybase using sqoop-1. the jdts-1.3.1.jar is placed on /opt/mapr/sqoop/sqoop-1.4.6/lib folder.

when this command runs,


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(
at org.apache.sqoop.manager.GenericJdbcManager.getConnection(
at org.apache.sqoop.manager.SqlManager.execute(
at org.apache.sqoop.manager.SqlManager.execute(
at org.apache.sqoop.manager.SqlManager.getColumnInfoForRawQuery(
at org.apache.sqoop.manager.SqlManager.getColumnTypesForRawQuery(
at org.apache.sqoop.manager.SqlManager.getColumnTypesForQuery(
at org.apache.sqoop.manager.ConnManager.getColumnTypes(
at org.apache.sqoop.orm.ClassWriter.getColumnTypes(
at org.apache.sqoop.orm.ClassWriter.generate(
at org.apache.sqoop.tool.CodeGenTool.generateORM(
at org.apache.sqoop.tool.ImportTool.importTable(
at org.apache.sqoop.Sqoop.runSqoop(
at org.apache.sqoop.Sqoop.runTool(
at org.apache.sqoop.Sqoop.runTool(
at org.apache.sqoop.Sqoop.main(


what i have missed here??? Where else i have to place the jdts-1.3.1.jar file in mapr eco???