简体   繁体   中英

How to use hiveContext in streaming from executors?

I'm trying to use an instance of HiveContext in a Spark streaming application (1.6), but it fails with the following exception:

java.lang.NullPointerException at org.apache.spark.sql.SQLConf.getConf(SQLConf.scala:638)

In particolar, I want to create a dataframe and execute a query for each processed message.

Someone can help me?

This error appears when you try to use SQLContext or HiveContext directly from executors.

(Spark 1.6)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM