java.lang.ClassNotFoundException:org.apache.hadoop.hive.thrift.TFilterTransport

时间:2018-02-18 09:28:15

标签: scala hadoop jdbc hive cloudera

我对hive和Hadoop很新,我正在尝试从远程服务器连接hive表并遇到以下错误

object LoadData {

    def main(args: Array[String]): Unit = {

        val HiveJDBCDriver = "org.apache.hive.jdbc.HiveDriver"
        val filePath="/home/sparky/sample.txt"
        var connection: Connection = null
        Class.forName(HiveJDBCDriver)

  val con:Connection = DriverManager.getConnection("jdbc:hive2://xxxxx.xxxxx.com:10000/xevl_lcp;principal=hive/xxxxx.xxxxx.com@company.com;mapred.job.queue.name=lcp;
  AuthMech=1;SSL=1;user=xxxx;password=xxxx;SSLTrustStore=/usr/java/jdk1.8.0_45/jre/lib/security/jssecacerts")


  }
  }

错误

[main] INFO org.apache.hive.jdbc.Utils - Supplied authorities: xxxxx.xxxxx.com:10000
[main] INFO org.apache.hive.jdbc.Utils - Resolved authority: xxxxx.xxxxx.com:10000
java.lang.ClassNotFoundException: org.apache.hadoop.hive.thrift.TFilterTransport
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

任何帮助将不胜感激

0 个答案:

没有答案