Created 10-22-2015 10:46 PM
Microsoft says that the Sqoop connector for Hadoop is now included in Sqoop 1.4 and no longer provides a direct download, but I can't seem to find it. Which jar should I be using, and do I need to manually specify a JDBC driver class?
Running "sqoop list-databases --connect jdbc:sqlserver://<IP Address>:<Port Number> --username <Username> --password <Password>" results in "RuntimeException: Could not load db driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver". This is with Sqoop 1.4.6.
Created 10-23-2015 01:30 AM
download it here http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774, you need the tar.gz file, extract and place in sqoop lib folder.
Created 10-22-2015 11:41 PM
You can use the sqljdbc4.jar that ships under the windows install of HDP at <OOZIE_HOME>/extra_libs.
Created 10-23-2015 01:30 AM
download it here http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774, you need the tar.gz file, extract and place in sqoop lib folder.
Created 07-08-2016 10:48 PM
I am using HDP sandbox and not sure where is the sqoop lib folder. I see this file path /hdp/apps/2.4.0.0-169/sqoop and I placed the sqljdbc.jar file here:, but still get the same error. Is there some other place the file needs to be placed? Also, the sqoop.tar.gz file is also present in the same file path [it came with the package]. Does that also have to be extracted and placed elsewhere? Thank you for your help.
Created 06-11-2016 10:46 PM
@Artem Ervits, @Deepesh, @Mike Riggs
I'm trying this in HDP 2.4 sandbox with SQL Server Express 2014. Connectivity is ok.
Even you add it to /var/lib/sqoop/lib/ or /usr/lib/sqoop/lib folder, how do you get past that a connection-manager needs to be set to use a factory class in order to use the Microsoft driver? The error (even is shown as a WARN) is:
WARN sqoop.ConnFactory: Parameter --driver is set to an explicit driver however appropriate connection manager is not being set (via --connection-manager). Sqoop is going to fall back to org.apache.sqoop.manager.GenericJdbcManager. Please specify explicitly which connection manager should be used next time.
Due to this, the command does not work.
This error is thrown after executing a command like this:
sqoop list-databases --driver com.microsoft.sqlserver.jdbc.SQLServerDriver --connect jdbc:sqlserver://10.226.170.191\poc:1433 --username WHATEVERUSER --password WHATEVERPASSWORD
--connection-manager directive seems to be needed. What needs to be added?
Created 06-11-2016 11:47 PM
Why is there a forward slash in jdbc string?
Created 01-06-2017 06:32 PM
Copy sqljdbc42.jar to following location /usr/hdp/current/sqoop-client/lib/ and try
Don't even need to use --driver option