001/**
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.apache.hadoop.fs;
020
021import org.apache.hadoop.classification.InterfaceAudience;
022import org.apache.hadoop.crypto.CipherSuite;
023import org.apache.hadoop.crypto.JceAesCtrCryptoCodec;
024import org.apache.hadoop.crypto.OpensslAesCtrCryptoCodec;
025
026/** 
027 * This class contains constants for configuration keys used
028 * in the common code.
029 *
030 * It includes all publicly documented configuration keys. In general
031 * this class should not be used directly (use CommonConfigurationKeys
032 * instead)
033 *
034 */
035
036@InterfaceAudience.Public
037public class CommonConfigurationKeysPublic {
038  
039  // The Keys
040  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
041  public static final String  NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY =
042    "net.topology.script.number.args";
043  /** Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY */
044  public static final int     NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT = 100;
045
046  //FS keys
047  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
048  public static final String  FS_DEFAULT_NAME_KEY = "fs.defaultFS";
049  /** Default value for FS_DEFAULT_NAME_KEY */
050  public static final String  FS_DEFAULT_NAME_DEFAULT = "file:///";
051  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
052  public static final String  FS_DF_INTERVAL_KEY = "fs.df.interval"; 
053  /** Default value for FS_DF_INTERVAL_KEY */
054  public static final long    FS_DF_INTERVAL_DEFAULT = 60000;
055  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
056  public static final String  FS_DU_INTERVAL_KEY = "fs.du.interval";
057  /** Default value for FS_DU_INTERVAL_KEY */
058  public static final long    FS_DU_INTERVAL_DEFAULT = 600000;
059  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
060  public static final String  FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY =
061    "fs.client.resolve.remote.symlinks";
062  /** Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY */
063  public static final boolean FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT = true;
064
065
066  //Defaults are not specified for following keys
067  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
068  public static final String  NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY =
069    "net.topology.script.file.name";
070  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
071  public static final String  NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY =
072    "net.topology.node.switch.mapping.impl";
073  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
074  public static final String  NET_TOPOLOGY_IMPL_KEY =
075    "net.topology.impl";
076  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
077  public static final String  NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY =
078    "net.topology.table.file.name";
079  public static final String NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY = 
080    "net.topology.dependency.script.file.name";
081
082  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
083  public static final String  FS_TRASH_CHECKPOINT_INTERVAL_KEY =
084    "fs.trash.checkpoint.interval";
085  /** Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY */
086  public static final long    FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT = 0;
087
088  /**
089   * Directories that cannot be removed unless empty, even by an
090   * administrator.
091   */
092  public static final String FS_PROTECTED_DIRECTORIES =
093      "fs.protected.directories";
094
095  // TBD: Code is still using hardcoded values (e.g. "fs.automatic.close")
096  // instead of constant (e.g. FS_AUTOMATIC_CLOSE_KEY)
097  //
098  /** Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE */
099  public static final long    FS_LOCAL_BLOCK_SIZE_DEFAULT = 32*1024*1024;
100  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
101  public static final String  FS_AUTOMATIC_CLOSE_KEY = "fs.automatic.close";
102  /** Default value for FS_AUTOMATIC_CLOSE_KEY */
103  public static final boolean FS_AUTOMATIC_CLOSE_DEFAULT = true;
104  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
105  public static final String  FS_FILE_IMPL_KEY = "fs.file.impl";
106  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
107  public static final String  FS_FTP_HOST_KEY = "fs.ftp.host";
108  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
109  public static final String  FS_FTP_HOST_PORT_KEY = "fs.ftp.host.port";
110  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
111  public static final String  FS_TRASH_INTERVAL_KEY = "fs.trash.interval";
112  /** Default value for FS_TRASH_INTERVAL_KEY */
113  public static final long    FS_TRASH_INTERVAL_DEFAULT = 0;
114
115  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
116  public static final String  IO_MAPFILE_BLOOM_SIZE_KEY =
117    "io.mapfile.bloom.size";
118  /** Default value for IO_MAPFILE_BLOOM_SIZE_KEY */
119  public static final int     IO_MAPFILE_BLOOM_SIZE_DEFAULT = 1024*1024;
120  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
121  public static final String  IO_MAPFILE_BLOOM_ERROR_RATE_KEY =
122    "io.mapfile.bloom.error.rate" ;
123  /** Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY */
124  public static final float   IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT = 0.005f;
125  /** Codec class that implements Lzo compression algorithm */
126  public static final String  IO_COMPRESSION_CODEC_LZO_CLASS_KEY =
127    "io.compression.codec.lzo.class";
128  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
129  public static final String  IO_MAP_INDEX_INTERVAL_KEY =
130    "io.map.index.interval";
131  /** Default value for IO_MAP_INDEX_INTERVAL_DEFAULT */
132  public static final int     IO_MAP_INDEX_INTERVAL_DEFAULT = 128;
133  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
134  public static final String  IO_MAP_INDEX_SKIP_KEY = "io.map.index.skip";
135  /** Default value for IO_MAP_INDEX_SKIP_KEY */
136  public static final int     IO_MAP_INDEX_SKIP_DEFAULT = 0;
137  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
138  public static final String  IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY =
139    "io.seqfile.compress.blocksize";
140  /** Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY */
141  public static final int     IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT = 1000000;
142  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
143  public static final String  IO_FILE_BUFFER_SIZE_KEY =
144    "io.file.buffer.size";
145  /** Default value for IO_FILE_BUFFER_SIZE_KEY */
146  public static final int     IO_FILE_BUFFER_SIZE_DEFAULT = 4096;
147  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
148  public static final String  IO_SKIP_CHECKSUM_ERRORS_KEY =
149    "io.skip.checksum.errors";
150  /** Default value for IO_SKIP_CHECKSUM_ERRORS_KEY */
151  public static final boolean IO_SKIP_CHECKSUM_ERRORS_DEFAULT = false;
152  /**
153   * @deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
154   * in mapred-default.xml
155   * See https://issues.apache.org/jira/browse/HADOOP-6801
156   */
157  public static final String  IO_SORT_MB_KEY = "io.sort.mb";
158  /** Default value for IO_SORT_MB_DEFAULT */
159  public static final int     IO_SORT_MB_DEFAULT = 100;
160  /**
161   * @deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
162   * in mapred-default.xml
163   * See https://issues.apache.org/jira/browse/HADOOP-6801
164   */
165  public static final String  IO_SORT_FACTOR_KEY = "io.sort.factor";
166  /** Default value for IO_SORT_FACTOR_DEFAULT */
167  public static final int     IO_SORT_FACTOR_DEFAULT = 100;
168  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
169  public static final String  IO_SERIALIZATIONS_KEY = "io.serializations";
170
171  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
172  public static final String  TFILE_IO_CHUNK_SIZE_KEY = "tfile.io.chunk.size";
173  /** Default value for TFILE_IO_CHUNK_SIZE_DEFAULT */
174  public static final int     TFILE_IO_CHUNK_SIZE_DEFAULT = 1024*1024;
175  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
176  public static final String  TFILE_FS_INPUT_BUFFER_SIZE_KEY =
177    "tfile.fs.input.buffer.size";
178  /** Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY */
179  public static final int     TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT = 256*1024;
180  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
181  public static final String  TFILE_FS_OUTPUT_BUFFER_SIZE_KEY =
182    "tfile.fs.output.buffer.size";
183  /** Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY */
184  public static final int     TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT = 256*1024;
185
186  public static final String  HADOOP_CALLER_CONTEXT_ENABLED_KEY =
187      "hadoop.caller.context.enabled";
188  public static final boolean HADOOP_CALLER_CONTEXT_ENABLED_DEFAULT = false;
189  public static final String  HADOOP_CALLER_CONTEXT_MAX_SIZE_KEY =
190      "hadoop.caller.context.max.size";
191  public static final int     HADOOP_CALLER_CONTEXT_MAX_SIZE_DEFAULT = 128;
192  public static final String  HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_KEY =
193      "hadoop.caller.context.signature.max.size";
194  public static final int     HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_DEFAULT =
195      40;
196
197  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
198  public static final String  IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY =
199    "ipc.client.connection.maxidletime";
200  /** Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY */
201  public static final int     IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT = 10000; // 10s
202  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
203  public static final String  IPC_CLIENT_CONNECT_TIMEOUT_KEY =
204    "ipc.client.connect.timeout";
205  /** Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY */
206  public static final int     IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT = 20000; // 20s
207  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
208  public static final String  IPC_CLIENT_CONNECT_MAX_RETRIES_KEY =
209    "ipc.client.connect.max.retries";
210  /** Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY */
211  public static final int     IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT = 10;
212  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
213  public static final String  IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY =
214      "ipc.client.connect.retry.interval";
215  /** Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY */
216  public static final int     IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT = 1000;
217  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
218  public static final String  IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY =
219    "ipc.client.connect.max.retries.on.timeouts";
220  /** Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY */
221  public static final int  IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT = 45;
222  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
223  public static final String  IPC_CLIENT_TCPNODELAY_KEY =
224    "ipc.client.tcpnodelay";
225  /** Default value for IPC_CLIENT_TCPNODELAY_KEY */
226  public static final boolean IPC_CLIENT_TCPNODELAY_DEFAULT = true;
227  /** Enable low-latency connections from the client */
228  public static final String   IPC_CLIENT_LOW_LATENCY = "ipc.client.low-latency";
229  /** Default value of IPC_CLIENT_LOW_LATENCY */
230  public static final boolean  IPC_CLIENT_LOW_LATENCY_DEFAULT = false;
231  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
232  public static final String  IPC_SERVER_LISTEN_QUEUE_SIZE_KEY =
233    "ipc.server.listen.queue.size";
234  /** Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY */
235  public static final int     IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT = 128;
236  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
237  public static final String  IPC_CLIENT_KILL_MAX_KEY = "ipc.client.kill.max";
238  /** Default value for IPC_CLIENT_KILL_MAX_KEY */
239  public static final int     IPC_CLIENT_KILL_MAX_DEFAULT = 10;
240  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
241  public static final String  IPC_CLIENT_IDLETHRESHOLD_KEY =
242    "ipc.client.idlethreshold";
243  /** Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT */
244  public static final int     IPC_CLIENT_IDLETHRESHOLD_DEFAULT = 4000;
245  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
246  public static final String  IPC_SERVER_TCPNODELAY_KEY =
247    "ipc.server.tcpnodelay";
248  /** Default value for IPC_SERVER_TCPNODELAY_KEY */
249  public static final boolean IPC_SERVER_TCPNODELAY_DEFAULT = true;
250  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
251  public static final String  IPC_SERVER_MAX_CONNECTIONS_KEY =
252    "ipc.server.max.connections";
253  /** Default value for IPC_SERVER_MAX_CONNECTIONS_KEY */
254  public static final int     IPC_SERVER_MAX_CONNECTIONS_DEFAULT = 0;
255
256  /** Logs if a RPC is really slow compared to rest of RPCs. */
257  public static final String IPC_SERVER_LOG_SLOW_RPC =
258                                                "ipc.server.log.slow.rpc";
259  public static final boolean IPC_SERVER_LOG_SLOW_RPC_DEFAULT = false;
260
261  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
262  public static final String  HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY =
263    "hadoop.rpc.socket.factory.class.default";
264  public static final String  HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT =
265    "org.apache.hadoop.net.StandardSocketFactory";
266  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
267  public static final String  HADOOP_SOCKS_SERVER_KEY = "hadoop.socks.server";
268  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
269  public static final String  HADOOP_UTIL_HASH_TYPE_KEY =
270    "hadoop.util.hash.type";
271  /** Default value for HADOOP_UTIL_HASH_TYPE_KEY */
272  public static final String  HADOOP_UTIL_HASH_TYPE_DEFAULT = "murmur";
273  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
274  public static final String  HADOOP_SECURITY_GROUP_MAPPING =
275    "hadoop.security.group.mapping";
276  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
277  public static final String  HADOOP_SECURITY_GROUPS_CACHE_SECS =
278    "hadoop.security.groups.cache.secs";
279  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
280  public static final long HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT =
281    300;
282  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
283  public static final String  HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS =
284    "hadoop.security.groups.negative-cache.secs";
285  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
286  public static final long HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT =
287    30;
288  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
289  public static final String HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS =
290    "hadoop.security.groups.cache.warn.after.ms";
291  public static final long HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT =
292    5000;
293  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
294  public static final String  HADOOP_SECURITY_AUTHENTICATION =
295    "hadoop.security.authentication";
296  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
297  public static final String HADOOP_SECURITY_AUTHORIZATION =
298    "hadoop.security.authorization";
299  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
300  public static final String HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN =
301    "hadoop.security.instrumentation.requires.admin";
302  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
303  public static final String  HADOOP_SECURITY_SERVICE_USER_NAME_KEY =
304    "hadoop.security.service.user.name.key";
305  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
306  public static final String  HADOOP_SECURITY_AUTH_TO_LOCAL =
307    "hadoop.security.auth_to_local";
308  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
309  public static final String HADOOP_SECURITY_DNS_INTERFACE_KEY =
310    "hadoop.security.dns.interface";
311  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
312  public static final String HADOOP_SECURITY_DNS_NAMESERVER_KEY =
313    "hadoop.security.dns.nameserver";
314  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
315  public static final String HADOOP_TOKEN_FILES =
316      "hadoop.token.files";
317
318  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
319  public static final String HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN =
320          "hadoop.kerberos.min.seconds.before.relogin";
321  /** Default value for HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN */
322  public static final int HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN_DEFAULT =
323          60;
324  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
325  public static final String  HADOOP_RPC_PROTECTION =
326    "hadoop.rpc.protection";
327  /** Class to override Sasl Properties for a connection */
328  public static final String  HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS =
329    "hadoop.security.saslproperties.resolver.class";
330  public static final String HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX = 
331    "hadoop.security.crypto.codec.classes";
332  public static final String
333      HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY =
334      HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX
335          + CipherSuite.AES_CTR_NOPADDING.getConfigSuffix();
336  public static final String
337      HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_DEFAULT =
338      OpensslAesCtrCryptoCodec.class.getName() + "," +
339          JceAesCtrCryptoCodec.class.getName();
340  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
341  public static final String HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY =
342    "hadoop.security.crypto.cipher.suite";
343  public static final String HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT = 
344    "AES/CTR/NoPadding";
345  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
346  public static final String HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY =
347    "hadoop.security.crypto.jce.provider";
348  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
349  public static final String HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY = 
350    "hadoop.security.crypto.buffer.size";
351  /** Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY */
352  public static final int HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT = 8192;
353  /** Class to override Impersonation provider */
354  public static final String  HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS =
355    "hadoop.security.impersonation.provider.class";
356
357  //  <!-- KMSClientProvider configurations -->
358  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
359  public static final String KMS_CLIENT_ENC_KEY_CACHE_SIZE =
360      "hadoop.security.kms.client.encrypted.key.cache.size";
361  /** Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE */
362  public static final int KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT = 500;
363
364  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
365  public static final String KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK =
366      "hadoop.security.kms.client.encrypted.key.cache.low-watermark";
367  /** Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK */
368  public static final float KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT =
369      0.3f;
370
371  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
372  public static final String KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS =
373      "hadoop.security.kms.client.encrypted.key.cache.num.refill.threads";
374  /** Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS */
375  public static final int KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT =
376      2;
377
378  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
379  public static final String KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS =
380      "hadoop.security.kms.client.encrypted.key.cache.expiry";
381  /** Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)*/
382  public static final int KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT = 43200000;
383
384  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
385  public static final String HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY = 
386    "hadoop.security.java.secure.random.algorithm";
387  /** Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY */
388  public static final String HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT = 
389    "SHA1PRNG";
390  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
391  public static final String HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY = 
392    "hadoop.security.secure.random.impl";
393  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
394  public static final String HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY = 
395    "hadoop.security.random.device.file.path";
396  public static final String HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT = 
397    "/dev/urandom";
398
399  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
400  public static final String HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_KEY =
401      "hadoop.shell.missing.defaultFs.warning";
402  public static final boolean HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_DEFAULT =
403      false;
404
405  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
406  public static final String HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES =
407      "hadoop.shell.safely.delete.limit.num.files";
408  public static final long HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES_DEFAULT =
409      100;
410
411  /** See <a href="{@docRoot}/../core-default.html">core-default.xml</a> */
412  public static final String HADOOP_HTTP_LOGS_ENABLED =
413      "hadoop.http.logs.enabled";
414  /** Defalt value for HADOOP_HTTP_LOGS_ENABLED */
415  public static final boolean HADOOP_HTTP_LOGS_ENABLED_DEFAULT = true;
416}
417