Browse Source

Update SparkRuntimeEnvironment.java (#10549)

Add spark support for hive

(cherry picked from commit 08e2c245a8)
3.0.0/version-upgrade
飞侠美如画 2 years ago committed by Jiajie Zhong
parent
commit
64b72a2968
  1. 2
      dolphinscheduler-data-quality/src/main/java/org/apache/dolphinscheduler/data/quality/execution/SparkRuntimeEnvironment.java

2
dolphinscheduler-data-quality/src/main/java/org/apache/dolphinscheduler/data/quality/execution/SparkRuntimeEnvironment.java

@ -47,7 +47,7 @@ public class SparkRuntimeEnvironment {
} }
public void prepare() { public void prepare() {
sparkSession = SparkSession.builder().config(createSparkConf()).getOrCreate(); sparkSession = SparkSession.builder().config(createSparkConf()).enableHiveSupport().getOrCreate();
} }
private SparkConf createSparkConf() { private SparkConf createSparkConf() {

Loading…
Cancel
Save