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

后端 未结 4 802
夕颜
夕颜 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:24

    Recently came across this same problem. Even though documentation says that it will pick up additional jar files. The problem is I believe propagated from Hadoop jar command line option. -libjars is not reliable option to set additional jar file path. Instead, choose HADOOP_CLASSPATH option to setup additional jar files.

    In my case, I had multiple different versions of driver JAR, but using -libjars was not correctly picking up file for me.

    To resolve this, I specified

    export HADOOP_CLASSPATH=/$SQOOP_HOME/.jar
    

    This makes sure that correct JAR file gets loaded.

提交回复
热议问题