| /* |
| * 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.slider.common; |
| |
| import org.apache.hadoop.registry.client.api.RegistryConstants; |
| |
| /** |
| * These are the keys that can be added to <code>conf/slider-client.xml</code>. |
| */ |
| public interface SliderXmlConfKeys { |
| String PREFIX_PROVIDER = "slider.provider"; |
| /** |
| * pattern to identify a provider |
| * {@value} |
| */ |
| String KEY_PROVIDER = PREFIX_PROVIDER + ".%s"; |
| |
| /** |
| * conf option set to point to where the config came from |
| * {@value} |
| */ |
| String KEY_TEMPLATE_ORIGIN = "slider.template.origin"; |
| |
| /** |
| * Original name for the default FS. This is still |
| * expected by applications deployed |
| */ |
| String FS_DEFAULT_NAME_CLASSIC = "fs.default.name"; |
| |
| /** |
| * Slider principal |
| */ |
| String KEY_KERBEROS_PRINCIPAL = "slider.kerberos.principal"; |
| |
| /** |
| * Name of the property for ACLs for Slider AM. |
| * {@value} |
| */ |
| String KEY_PROTOCOL_ACL = "slider.security.protocol.acl"; |
| |
| /** |
| * Limit on restarts for the AM |
| * {@value} |
| */ |
| String KEY_AM_RESTART_LIMIT = "slider.yarn.restart.limit"; |
| |
| /** |
| * queue name, by default let YARN pick the queue |
| */ |
| String KEY_YARN_QUEUE = "slider.yarn.queue"; |
| String DEFAULT_YARN_QUEUE = null; |
| |
| /** |
| * default priority |
| */ |
| String KEY_YARN_QUEUE_PRIORITY = "slider.yarn.queue.priority"; |
| int DEFAULT_YARN_QUEUE_PRIORITY = 1; |
| |
| |
| /** |
| * The slider base path: {@value} |
| * Defaults to HomeDir/.slider |
| */ |
| String KEY_SLIDER_BASE_PATH = "slider.base.path"; |
| |
| |
| /** |
| * Option for the permissions for the cluster directory itself: {@value} |
| */ |
| String CLUSTER_DIRECTORY_PERMISSIONS = |
| "slider.cluster.directory.permissions"; |
| |
| /** |
| * Default value for the permissions :{@value} |
| */ |
| String DEFAULT_CLUSTER_DIRECTORY_PERMISSIONS = "750"; |
| |
| /** |
| * |
| * Option for the permissions for the data directory itself: {@value} |
| */ |
| String DATA_DIRECTORY_PERMISSIONS = "slider.data.directory.permissions"; |
| |
| /** |
| * Default value for the data directory permissions: {@value} |
| */ |
| String DEFAULT_DATA_DIRECTORY_PERMISSIONS = "750"; |
| |
| /** |
| * |
| * Use {@link RegistryConstants#KEY_REGISTRY_ZK_ROOT} |
| * |
| */ |
| @Deprecated |
| String REGISTRY_PATH = "slider.registry.path"; |
| |
| /** |
| * |
| * @Deprecated use {@link RegistryConstants#KEY_REGISTRY_ZK_QUORUM} |
| * |
| */ |
| @Deprecated |
| String REGISTRY_ZK_QUORUM = "slider.zookeeper.quorum"; |
| |
| |
| String IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH = |
| "ipc.client.fallback-to-simple-auth-allowed"; |
| String HADOOP_HTTP_FILTER_INITIALIZERS = |
| "hadoop.http.filter.initializers"; |
| String KEY_KEYSTORE_LOCATION = "ssl.server.keystore.location"; |
| String KEY_AM_LOGIN_KEYTAB_NAME = "slider.am.login.keytab.name"; |
| String KEY_HDFS_KEYTAB_DIR = "slider.hdfs.keytab.dir"; |
| String KEY_AM_KEYTAB_LOCAL_PATH = "slider.am.keytab.local.path"; |
| String KEY_KEYTAB_PRINCIPAL = "slider.keytab.principal.name"; |
| String KEY_SECURITY_ENABLED = "site.global.security_enabled"; |
| |
| /** |
| * Set to disable server-side checks for python, openssl &c. |
| * This should only be set for testing |
| */ |
| String KEY_SLIDER_AM_DEPENDENCY_CHECKS_DISABLED = |
| "slider.am.dependency.checks.disabled"; |
| |
| /** |
| * The path to the python executable utilized to launch the agent. |
| */ |
| String PYTHON_EXECUTABLE_PATH = "agent.python.exec.path"; |
| |
| /** |
| * Flag to enable the insecure AM filter: {@value} |
| */ |
| String X_DEV_INSECURE_WS = "slider.feature.ws.insecure"; |
| |
| /** |
| * Flag to indicate the insecure AM filter is enabled by default: {@value}. |
| * THIS IS CURRENTLY TRUE: NOT FOR RELEASE |
| */ |
| boolean X_DEV_INSECURE_DEFAULT = true; |
| |
| |
| /** |
| * Flag to indicate the insecure AM filter is required for |
| * complex REST Verbs: {@value}. |
| * When Slider switches to being Hadoop 2.7+ only, this flag |
| * can be set to false |
| */ |
| boolean X_DEV_INSECURE_REQUIRED = true; |
| |
| /** |
| * |
| */ |
| String KEY_IPC_CLIENT_RETRY_POLICY_ENABLED = |
| "slider.ipc.client.retry.enabled"; |
| public static final boolean IPC_CLIENT_RETRY_POLICY_ENABLED_DEFAULT = true; |
| public static final String KEY_IPC_CLIENT_RETRY_POLICY_SPEC = |
| "slider.ipc.client.retry.policy.spec"; |
| public static final String IPC_CLIENT_RETRY_POLICY_SPEC_DEFAULT = |
| "10000,6,60000,10"; //t1,n1,t2,n2,... |
| |
| } |