File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed
sql/core/src/main/scala/org/apache/spark/sql/internal Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import org.apache.spark.sql.execution.CacheManager
36
36
import org .apache .spark .sql .execution .streaming .StreamExecution
37
37
import org .apache .spark .sql .execution .ui .{SQLAppStatusListener , SQLAppStatusStore , SQLTab }
38
38
import org .apache .spark .sql .internal .StaticSQLConf ._
39
+ import org .apache .spark .sql .internal .config .DEFAULT_URL_STREAM_HANDLER_FACTORY_ENABLED
39
40
import org .apache .spark .sql .streaming .StreamingQuery
40
41
import org .apache .spark .status .ElementTrackingStore
41
42
import org .apache .spark .util .Utils
@@ -202,7 +203,7 @@ object SharedState extends Logging {
202
203
" so it can not be modified" )
203
204
case None => synchronized {
204
205
try {
205
- if (conf.getBoolean( " spark.fsUrlStreamHandlerFactory.enabled " , true )) {
206
+ if (conf.get( DEFAULT_URL_STREAM_HANDLER_FACTORY_ENABLED )) {
206
207
URL .setURLStreamHandlerFactory(defaultFactory)
207
208
factory = Some (defaultFactory)
208
209
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ package org .apache .spark .sql .internal
19
+
20
+ import org .apache .spark .internal .config .ConfigBuilder
21
+
22
+ package object config {
23
+
24
+ private [spark] val DEFAULT_URL_STREAM_HANDLER_FACTORY_ENABLED =
25
+ ConfigBuilder (" spark.sql.defaultUrlStreamHandlerFactory.enabled" )
26
+ .doc(" When true, set FsUrlStreamHandlerFactory to support ADD JAR against HDFS locations" )
27
+ .booleanConf
28
+ .createWithDefault(true )
29
+ }
You can’t perform that action at this time.
0 commit comments