- 使用SparkSession.enableHiveSupport()而不推荐使用SQLContext或HiveContext。
Several steps were needed.
/ li>
将hive-site.xml复制到SPARK CONF(/ usr / lib / spark / conf)目录中
执行时将相同的目录添加到classpath (感谢上面的Paul和Samson)
- Using SparkSession.enableHiveSupport() instead of deprecated SQLContext or HiveContext.
- copy hive-site.xml into SPARK CONF (/usr/lib/spark/conf) directory
- Adding the same directory to the classpath while executing the jar (Thanks to Paul and Samson above)