spark Deploy 源码
spark Deploy 代码
文件路径:/core/src/main/scala/org/apache/spark/internal/config/Deploy.scala
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.spark.internal.config
private[spark] object Deploy {
val RECOVERY_MODE = ConfigBuilder("spark.deploy.recoveryMode")
.version("0.8.1")
.stringConf
.createWithDefault("NONE")
val RECOVERY_MODE_FACTORY = ConfigBuilder("spark.deploy.recoveryMode.factory")
.version("1.2.0")
.stringConf
.createWithDefault("")
val RECOVERY_DIRECTORY = ConfigBuilder("spark.deploy.recoveryDirectory")
.version("0.8.1")
.stringConf
.createWithDefault("")
val ZOOKEEPER_URL = ConfigBuilder("spark.deploy.zookeeper.url")
.doc(s"When `${RECOVERY_MODE.key}` is set to ZOOKEEPER, this " +
"configuration is used to set the zookeeper URL to connect to.")
.version("0.8.1")
.stringConf
.createOptional
val ZOOKEEPER_DIRECTORY = ConfigBuilder("spark.deploy.zookeeper.dir")
.version("0.8.1")
.stringConf
.createOptional
val RETAINED_APPLICATIONS = ConfigBuilder("spark.deploy.retainedApplications")
.version("0.8.0")
.intConf
.createWithDefault(200)
val RETAINED_DRIVERS = ConfigBuilder("spark.deploy.retainedDrivers")
.version("1.1.0")
.intConf
.createWithDefault(200)
val REAPER_ITERATIONS = ConfigBuilder("spark.dead.worker.persistence")
.version("0.8.0")
.intConf
.createWithDefault(15)
val MAX_EXECUTOR_RETRIES = ConfigBuilder("spark.deploy.maxExecutorRetries")
.version("1.6.3")
.intConf
.createWithDefault(10)
val SPREAD_OUT_APPS = ConfigBuilder("spark.deploy.spreadOut")
.version("0.6.1")
.booleanConf
.createWithDefault(true)
val DEFAULT_CORES = ConfigBuilder("spark.deploy.defaultCores")
.version("0.9.0")
.intConf
.createWithDefault(Int.MaxValue)
}
相关信息
相关文章
0
赞
- 所属分类: 前端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦