Sqoop:could not load DB driver Class:com.microsoft.sqlserver.jdbc.SQLServerDriver

Source: Internet
Author: User
Tags sqoop

Sqoop VERSION:1.4.6-CDH

Hadoop version:2.6.0-cdh5.8.2

Scenario: Using Sqoop to guide data from MSSQLServer

Although 1.4.6 's official website says

Even if Sqoop supports a database internally, you could still need to install the database vendor's JDBC driver in your path on your client. Sqoop can load classes from all jars in on the client and would use them as part of any $SQOOP_HOME/lib MapReduce jobs it runs; Unlik E older versions, you no longer need to install JDBC jars in the Hadoop library path on your servers.

I've put Sqljdbc4.jar under $SQOOP _home/lib , but I'm still going to make a mistake.


Could not load DB driver class:com.microsoft.sqlserver.jdbc.SQLServerDriverjava.lang.RuntimeException:Could not load DB Driver Class:com.microsoft.sqlserver.jdbc.SQLServerDriver

Try to put it under $HADOOP _home/lib , still not working;

Finally put in $HADOOP _home/share/hadoop/common/lib OK.

Sqoop:could not load DB driver Class:com.microsoft.sqlserver.jdbc.SQLServerDriver

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.