SQOOP SQLSERVER Failed to load driver “ appropriate connection manager is not being set”

后端 未结 4 790
夕颜
夕颜 2021-02-14 11:05

I downloaded sqljdbc4.jar. I\'m invoking sqoop like so from the folder (where the jar is stored):

sqoop list-tables --driver com.microso

4条回答
  •  一整个雨季
    2021-02-14 11:42

    In vast majority of cases using parameter --driver is not required and even more will lead to an undesirable behaviour. I would strongly recommend dropping this argument entirely from your command line. Check out Connectors vs Drivers blog post for more details.

    Also in addition you are specifying a nonexistent JDBC Driver class. The correct one is:

    com.microsoft.sqlserver.jdbc.SQLServerDriver
    

    You can see it in the official docs, whereas you are specifying

    com.microsoft.jdbc.sqlserver.SQLServerDriver
    

    Notice the different order of jdbc and sqlserver packages. This is one of the reasons why it's recommended to not use the --driver option at all.

提交回复
热议问题