实例化HiveSessionStateBuilder时发生IllegalArgumentException

时间:2018-10-17 00:46:20

标签: scala apache-spark hive

我想从Windows实用地与蜂巢互动,我在下面的代码中写了

.state

我已经尝试了多次,但是一直收到以下异常。如何解决此错误-

  

线程“主”中的异常java.lang.IllegalArgumentException:错误   实例化时   'org.apache.spark.sql.hive.HiveSessionStateBuilder':在   org.apache.spark.sql.SparkSession $ .org $ apache $ spark $ sql $ SparkSession $$ instantiateSessionState(SparkSession.scala:1053)         在org.apache.spark.sql.SparkSession $$ anonfun $ sessionState $ 2.apply(SparkSession.scala:130)         在org.apache.spark.sql.SparkSession $$ anonfun $ sessionState $ 2.apply(SparkSession.scala:130)         在scala.Option.getOrElse(Option.scala:121)         在org.apache.spark.sql.SparkSession.sessionState $ lzycompute(SparkSession.scala:129)         在org.apache.spark.sql.SparkSession.sessionState(SparkSession.scala:126)         在org.apache.spark.sql.SparkSession.conf $ lzycompute(SparkSession.scala:153)         在org.apache.spark.sql.SparkSession.conf(SparkSession.scala:153)         在org.apache.spark.sql.SQLContext.setConf(SQLContext.scala:125)         在com.vz.vbap.desktop.TestOneHive $ .main(TestOneHive.scala:32)         在com.vz.vbap.desktop.TestOneHive.main(TestOneHive.scala)

     

预期:需要从配置单元中获取数据

0 个答案:

没有答案