error: bad symbolic reference. A signature in HiveContext.class refers to term hive

时间:2021-12-08 11:30:42

在spark-shell中执行val sqlContext = new org.apache.spark.sql.hive.HiveContext(sc)报错:

error: bad symbolic reference. A signature in HiveContext.class refers to term hive

我使用的是CDH5.3.6,这个版本中spark是无法使用HiveContext的,参考:

https://community.cloudera.com/t5/Advanced-Analytics-Apache-Spark/Hive-Context-in-CDH-5-3-x/td-p/23312