blob: 2f65ce4cba470aba4364d36bb5a17cc0ccda3b5b [file] [log] [blame]
/**
* 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.hadoop.hdfs.nfs.conf;
public class NfsConfigKeys {
// The IP port number for NFS and mountd.
public final static String DFS_NFS_SERVER_PORT_KEY = "nfs.server.port";
public final static int DFS_NFS_SERVER_PORT_DEFAULT = 2049;
public final static String DFS_NFS_MOUNTD_PORT_KEY = "nfs.mountd.port";
public final static int DFS_NFS_MOUNTD_PORT_DEFAULT = 4242;
public static final String DFS_NFS_FILE_DUMP_KEY = "nfs.file.dump";
public static final boolean DFS_NFS_FILE_DUMP_DEFAULT = true;
public static final String DFS_NFS_FILE_DUMP_DIR_KEY = "nfs.file.dump.dir";
public static final String DFS_NFS_FILE_DUMP_DIR_DEFAULT = "/tmp/.hdfs-nfs";
public static final String DFS_NFS_MAX_READ_TRANSFER_SIZE_KEY = "nfs.rtmax";
public static final int DFS_NFS_MAX_READ_TRANSFER_SIZE_DEFAULT = 1024 * 1024;
public static final String DFS_NFS_MAX_WRITE_TRANSFER_SIZE_KEY = "nfs.wtmax";
public static final int DFS_NFS_MAX_WRITE_TRANSFER_SIZE_DEFAULT = 1024 * 1024;
public static final String DFS_NFS_MAX_READDIR_TRANSFER_SIZE_KEY = "nfs.dtmax";
public static final int DFS_NFS_MAX_READDIR_TRANSFER_SIZE_DEFAULT = 64 * 1024;
public static final String DFS_NFS_MAX_OPEN_FILES_KEY = "nfs.max.open.files";
public static final int DFS_NFS_MAX_OPEN_FILES_DEFAULT = 256;
public static final String DFS_NFS_STREAM_TIMEOUT_KEY = "nfs.stream.timeout";
public static final long DFS_NFS_STREAM_TIMEOUT_DEFAULT = 10 * 60 * 1000; // 10 minutes
public static final long DFS_NFS_STREAM_TIMEOUT_MIN_DEFAULT = 10 * 1000; // 10 seconds
public final static String DFS_NFS_EXPORT_POINT_KEY = "nfs.export.point";
public final static String DFS_NFS_EXPORT_POINT_DEFAULT = "/";
public static final String DFS_NFS_KEYTAB_FILE_KEY = "nfs.keytab.file";
public static final String DFS_NFS_KERBEROS_PRINCIPAL_KEY = "nfs.kerberos.principal";
public static final String DFS_NFS_REGISTRATION_PORT_KEY = "nfs.registration.port";
public static final int DFS_NFS_REGISTRATION_PORT_DEFAULT = 40; // Currently unassigned.
public static final String DFS_NFS_PORT_MONITORING_DISABLED_KEY = "nfs.port.monitoring.disabled";
public static final boolean DFS_NFS_PORT_MONITORING_DISABLED_DEFAULT = true;
public static final String AIX_COMPAT_MODE_KEY = "nfs.aix.compatibility.mode.enabled";
public static final boolean AIX_COMPAT_MODE_DEFAULT = false;
}