From 64b72a2968d0a270ca9e6c3b575da4b14e5cc42e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=9E=E4=BE=A0=E7=BE=8E=E5=A6=82=E7=94=BB?= Date: Thu, 23 Jun 2022 14:17:45 +0800 Subject: [PATCH] Update SparkRuntimeEnvironment.java (#10549) Add spark support for hive (cherry picked from commit 08e2c245a86e93abd1fcd401ac08a92ba861d523) --- .../data/quality/execution/SparkRuntimeEnvironment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-data-quality/src/main/java/org/apache/dolphinscheduler/data/quality/execution/SparkRuntimeEnvironment.java b/dolphinscheduler-data-quality/src/main/java/org/apache/dolphinscheduler/data/quality/execution/SparkRuntimeEnvironment.java index 82cf941aed..b746392bda 100644 --- a/dolphinscheduler-data-quality/src/main/java/org/apache/dolphinscheduler/data/quality/execution/SparkRuntimeEnvironment.java +++ b/dolphinscheduler-data-quality/src/main/java/org/apache/dolphinscheduler/data/quality/execution/SparkRuntimeEnvironment.java @@ -47,7 +47,7 @@ public class SparkRuntimeEnvironment { } public void prepare() { - sparkSession = SparkSession.builder().config(createSparkConf()).getOrCreate(); + sparkSession = SparkSession.builder().config(createSparkConf()).enableHiveSupport().getOrCreate(); } private SparkConf createSparkConf() {