问题
When executing Drop table if exists in Spark HiveContext I'm getting the below error.
Hivecontext.sql(Drop table if exists table_name)
java.lang.LinkageError: ClassCastException: attempting to castjar:file:/u/applic/data/hdfs7/hadoop/yarn/local/filecache/494/spark-hdp-assembly.jar!/javax/ws/rs/ext/RuntimeDelegate.classtojar:file:/u/applic/data/hdfs7/hadoop/yarn/local/filecache/494/spark-hdp-assembly.jar!/javax/ws/rs/ext/RuntimeDelegate.class
I'm using:
- Spark Version - Spark 1.6,
- HDP - 2.4
来源:https://stackoverflow.com/questions/37009683/spark-hive-java-lang-linkageerror