spark-sql访问hive metastore报错 Caused by: java.lang.ClassNotFoundException: javax.servlet.Filter

spark-sql访问hive metastore报错 Caused by: java.lang.ClassNotFoundException: javax.servlet.Filter

具体报错信息:

Caused by: java.lang.ClassNotFoundException: javax.servlet.Filter
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1.doLoadClass(IsolatedClientLoader.scala:264)
at org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1.loadClass(IsolatedClientLoader.scala:253)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
… 80 more
java.lang.NoClassDefFoundError: javax/servlet/Filter

回复

共1条回复 我来回复
  • xiaozhch5
    xiaozhch5
    这个人很懒,什么都没有留下~
    评论

    缺少jar包,将servlet-api-2.5.jar拷贝到hive metastore的lib目录下即可

    2年前 0条评论