Java Code Examples for org.apache.hadoop.conf.Configuration#addDeprecations()

The following examples show how to use org.apache.hadoop.conf.Configuration#addDeprecations() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
private static void addDeprecations() {
  Configuration.addDeprecations(new DeprecationDelta[]{
      new DeprecationDelta("ozone.recon.keytab.file",
          ReconServerConfigKeys.OZONE_RECON_HTTP_KEYTAB_FILE),
      new DeprecationDelta(("ozone.recon.http.kerberos.keytab.file"),
          ReconServerConfigKeys.OZONE_RECON_HTTP_KEYTAB_FILE),
      new DeprecationDelta("ozone.recon.authentication.kerberos.principal",
          ReconServerConfigKeys.
              OZONE_RECON_WEB_AUTHENTICATION_KERBEROS_PRINCIPAL)
  });
}
 
Example 2
Source Project: hadoop   File: NfsConfiguration.java    License: Apache License 2.0 5 votes vote down vote up
private static void addDeprecatedKeys() {
  Configuration.addDeprecations(new DeprecationDelta[] {
      new DeprecationDelta("nfs3.server.port",
          NfsConfigKeys.DFS_NFS_SERVER_PORT_KEY),
      new DeprecationDelta("nfs3.mountd.port",
          NfsConfigKeys.DFS_NFS_MOUNTD_PORT_KEY),
      new DeprecationDelta("dfs.nfs.exports.cache.size",
          Nfs3Constant.NFS_EXPORTS_CACHE_SIZE_KEY),
      new DeprecationDelta("dfs.nfs.exports.cache.expirytime.millis",
          Nfs3Constant.NFS_EXPORTS_CACHE_EXPIRYTIME_MILLIS_KEY),
      new DeprecationDelta("hadoop.nfs.userupdate.milly",
          IdMappingConstant.USERGROUPID_UPDATE_MILLIS_KEY),
      new DeprecationDelta("nfs.usergroup.update.millis",
          IdMappingConstant.USERGROUPID_UPDATE_MILLIS_KEY),
      new DeprecationDelta("nfs.static.mapping.file",
          IdMappingConstant.STATIC_ID_MAPPING_FILE_KEY),
      new DeprecationDelta("dfs.nfs3.enableDump",
          NfsConfigKeys.DFS_NFS_FILE_DUMP_KEY),
      new DeprecationDelta("dfs.nfs3.dump.dir",
          NfsConfigKeys.DFS_NFS_FILE_DUMP_DIR_KEY),
      new DeprecationDelta("dfs.nfs3.max.open.files",
          NfsConfigKeys.DFS_NFS_MAX_OPEN_FILES_KEY),
      new DeprecationDelta("dfs.nfs3.stream.timeout",
          NfsConfigKeys.DFS_NFS_STREAM_TIMEOUT_KEY),
      new DeprecationDelta("dfs.nfs3.export.point",
          NfsConfigKeys.DFS_NFS_EXPORT_POINT_KEY),
      new DeprecationDelta("nfs.allow.insecure.ports",
          NfsConfigKeys.DFS_NFS_PORT_MONITORING_DISABLED_KEY),
      new DeprecationDelta("dfs.nfs.keytab.file",
          NfsConfigKeys.DFS_NFS_KEYTAB_FILE_KEY),
      new DeprecationDelta("dfs.nfs.kerberos.principal",
          NfsConfigKeys.DFS_NFS_KERBEROS_PRINCIPAL_KEY),
      new DeprecationDelta("dfs.nfs.rtmax",
          NfsConfigKeys.DFS_NFS_MAX_READ_TRANSFER_SIZE_KEY),
      new DeprecationDelta("dfs.nfs.wtmax",
          NfsConfigKeys.DFS_NFS_MAX_WRITE_TRANSFER_SIZE_KEY),
      new DeprecationDelta("dfs.nfs.dtmax",
          NfsConfigKeys.DFS_NFS_MAX_READDIR_TRANSFER_SIZE_KEY) });
}
 
Example 3
Source Project: big-c   File: NfsConfiguration.java    License: Apache License 2.0 5 votes vote down vote up
private static void addDeprecatedKeys() {
  Configuration.addDeprecations(new DeprecationDelta[] {
      new DeprecationDelta("nfs3.server.port",
          NfsConfigKeys.DFS_NFS_SERVER_PORT_KEY),
      new DeprecationDelta("nfs3.mountd.port",
          NfsConfigKeys.DFS_NFS_MOUNTD_PORT_KEY),
      new DeprecationDelta("dfs.nfs.exports.cache.size",
          Nfs3Constant.NFS_EXPORTS_CACHE_SIZE_KEY),
      new DeprecationDelta("dfs.nfs.exports.cache.expirytime.millis",
          Nfs3Constant.NFS_EXPORTS_CACHE_EXPIRYTIME_MILLIS_KEY),
      new DeprecationDelta("hadoop.nfs.userupdate.milly",
          IdMappingConstant.USERGROUPID_UPDATE_MILLIS_KEY),
      new DeprecationDelta("nfs.usergroup.update.millis",
          IdMappingConstant.USERGROUPID_UPDATE_MILLIS_KEY),
      new DeprecationDelta("nfs.static.mapping.file",
          IdMappingConstant.STATIC_ID_MAPPING_FILE_KEY),
      new DeprecationDelta("dfs.nfs3.enableDump",
          NfsConfigKeys.DFS_NFS_FILE_DUMP_KEY),
      new DeprecationDelta("dfs.nfs3.dump.dir",
          NfsConfigKeys.DFS_NFS_FILE_DUMP_DIR_KEY),
      new DeprecationDelta("dfs.nfs3.max.open.files",
          NfsConfigKeys.DFS_NFS_MAX_OPEN_FILES_KEY),
      new DeprecationDelta("dfs.nfs3.stream.timeout",
          NfsConfigKeys.DFS_NFS_STREAM_TIMEOUT_KEY),
      new DeprecationDelta("dfs.nfs3.export.point",
          NfsConfigKeys.DFS_NFS_EXPORT_POINT_KEY),
      new DeprecationDelta("nfs.allow.insecure.ports",
          NfsConfigKeys.DFS_NFS_PORT_MONITORING_DISABLED_KEY),
      new DeprecationDelta("dfs.nfs.keytab.file",
          NfsConfigKeys.DFS_NFS_KEYTAB_FILE_KEY),
      new DeprecationDelta("dfs.nfs.kerberos.principal",
          NfsConfigKeys.DFS_NFS_KERBEROS_PRINCIPAL_KEY),
      new DeprecationDelta("dfs.nfs.rtmax",
          NfsConfigKeys.DFS_NFS_MAX_READ_TRANSFER_SIZE_KEY),
      new DeprecationDelta("dfs.nfs.wtmax",
          NfsConfigKeys.DFS_NFS_MAX_WRITE_TRANSFER_SIZE_KEY),
      new DeprecationDelta("dfs.nfs.dtmax",
          NfsConfigKeys.DFS_NFS_MAX_READDIR_TRANSFER_SIZE_KEY) });
}
 
Example 4
Source Project: hadoop   File: YarnConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
private static void addDeprecatedKeys() {
  Configuration.addDeprecations(new DeprecationDelta[] {
      new DeprecationDelta("yarn.client.max-nodemanagers-proxies",
          NM_CLIENT_MAX_NM_PROXIES)
  });
}
 
Example 5
Source Project: hadoop   File: HdfsConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
private static void addDeprecatedKeys() {
  Configuration.addDeprecations(new DeprecationDelta[] {
    new DeprecationDelta("dfs.backup.address",
      DFSConfigKeys.DFS_NAMENODE_BACKUP_ADDRESS_KEY),
    new DeprecationDelta("dfs.backup.http.address",
      DFSConfigKeys.DFS_NAMENODE_BACKUP_HTTP_ADDRESS_KEY),
    new DeprecationDelta("dfs.balance.bandwidthPerSec",
      DFSConfigKeys.DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_KEY),
    new DeprecationDelta("dfs.data.dir",
      DFSConfigKeys.DFS_DATANODE_DATA_DIR_KEY),
    new DeprecationDelta("dfs.http.address",
      DFSConfigKeys.DFS_NAMENODE_HTTP_ADDRESS_KEY),
    new DeprecationDelta("dfs.https.address",
      DFSConfigKeys.DFS_NAMENODE_HTTPS_ADDRESS_KEY),
    new DeprecationDelta("dfs.max.objects",
      DFSConfigKeys.DFS_NAMENODE_MAX_OBJECTS_KEY),
    new DeprecationDelta("dfs.name.dir",
      DFSConfigKeys.DFS_NAMENODE_NAME_DIR_KEY),
    new DeprecationDelta("dfs.name.dir.restore",
      DFSConfigKeys.DFS_NAMENODE_NAME_DIR_RESTORE_KEY),
    new DeprecationDelta("dfs.name.edits.dir",
      DFSConfigKeys.DFS_NAMENODE_EDITS_DIR_KEY),
    new DeprecationDelta("dfs.read.prefetch.size",
      DFSConfigKeys.DFS_CLIENT_READ_PREFETCH_SIZE_KEY),
    new DeprecationDelta("dfs.safemode.extension",
      DFSConfigKeys.DFS_NAMENODE_SAFEMODE_EXTENSION_KEY),
    new DeprecationDelta("dfs.safemode.threshold.pct",
      DFSConfigKeys.DFS_NAMENODE_SAFEMODE_THRESHOLD_PCT_KEY),
    new DeprecationDelta("dfs.secondary.http.address",
      DFSConfigKeys.DFS_NAMENODE_SECONDARY_HTTP_ADDRESS_KEY),
    new DeprecationDelta("dfs.socket.timeout",
      DFSConfigKeys.DFS_CLIENT_SOCKET_TIMEOUT_KEY),
    new DeprecationDelta("fs.checkpoint.dir",
      DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_DIR_KEY),
    new DeprecationDelta("fs.checkpoint.edits.dir",
      DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_EDITS_DIR_KEY),
    new DeprecationDelta("fs.checkpoint.period",
      DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_PERIOD_KEY),
    new DeprecationDelta("heartbeat.recheck.interval",
      DFSConfigKeys.DFS_NAMENODE_HEARTBEAT_RECHECK_INTERVAL_KEY),
    new DeprecationDelta("dfs.https.client.keystore.resource",
      DFSConfigKeys.DFS_CLIENT_HTTPS_KEYSTORE_RESOURCE_KEY),
    new DeprecationDelta("dfs.https.need.client.auth",
      DFSConfigKeys.DFS_CLIENT_HTTPS_NEED_AUTH_KEY),
    new DeprecationDelta("slave.host.name",
      DFSConfigKeys.DFS_DATANODE_HOST_NAME_KEY),
    new DeprecationDelta("session.id",
      DFSConfigKeys.DFS_METRICS_SESSION_ID_KEY),
    new DeprecationDelta("dfs.access.time.precision",
      DFSConfigKeys.DFS_NAMENODE_ACCESSTIME_PRECISION_KEY),
    new DeprecationDelta("dfs.replication.considerLoad",
      DFSConfigKeys.DFS_NAMENODE_REPLICATION_CONSIDERLOAD_KEY),
    new DeprecationDelta("dfs.replication.interval",
      DFSConfigKeys.DFS_NAMENODE_REPLICATION_INTERVAL_KEY),
    new DeprecationDelta("dfs.replication.min",
      DFSConfigKeys.DFS_NAMENODE_REPLICATION_MIN_KEY),
    new DeprecationDelta("dfs.replication.pending.timeout.sec",
      DFSConfigKeys.DFS_NAMENODE_REPLICATION_PENDING_TIMEOUT_SEC_KEY),
    new DeprecationDelta("dfs.max-repl-streams",
      DFSConfigKeys.DFS_NAMENODE_REPLICATION_MAX_STREAMS_KEY),
    new DeprecationDelta("dfs.permissions",
      DFSConfigKeys.DFS_PERMISSIONS_ENABLED_KEY),
    new DeprecationDelta("dfs.permissions.supergroup",
      DFSConfigKeys.DFS_PERMISSIONS_SUPERUSERGROUP_KEY),
    new DeprecationDelta("dfs.write.packet.size",
      DFSConfigKeys.DFS_CLIENT_WRITE_PACKET_SIZE_KEY),
    new DeprecationDelta("dfs.block.size",
      DFSConfigKeys.DFS_BLOCK_SIZE_KEY),
    new DeprecationDelta("dfs.datanode.max.xcievers",
      DFSConfigKeys.DFS_DATANODE_MAX_RECEIVER_THREADS_KEY),
    new DeprecationDelta("io.bytes.per.checksum",
      DFSConfigKeys.DFS_BYTES_PER_CHECKSUM_KEY),
    new DeprecationDelta("dfs.federation.nameservices",
      DFSConfigKeys.DFS_NAMESERVICES),
    new DeprecationDelta("dfs.federation.nameservice.id",
      DFSConfigKeys.DFS_NAMESERVICE_ID),
    new DeprecationDelta("dfs.client.file-block-storage-locations.timeout",
      DFSConfigKeys.DFS_CLIENT_FILE_BLOCK_STORAGE_LOCATIONS_TIMEOUT_MS),
  });
}
 
Example 6
Source Project: big-c   File: YarnConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
private static void addDeprecatedKeys() {
  Configuration.addDeprecations(new DeprecationDelta[] {
      new DeprecationDelta("yarn.client.max-nodemanagers-proxies",
          NM_CLIENT_MAX_NM_PROXIES)
  });
}
 
Example 7
Source Project: big-c   File: HdfsConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
private static void addDeprecatedKeys() {
  Configuration.addDeprecations(new DeprecationDelta[] {
    new DeprecationDelta("dfs.backup.address",
      DFSConfigKeys.DFS_NAMENODE_BACKUP_ADDRESS_KEY),
    new DeprecationDelta("dfs.backup.http.address",
      DFSConfigKeys.DFS_NAMENODE_BACKUP_HTTP_ADDRESS_KEY),
    new DeprecationDelta("dfs.balance.bandwidthPerSec",
      DFSConfigKeys.DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_KEY),
    new DeprecationDelta("dfs.data.dir",
      DFSConfigKeys.DFS_DATANODE_DATA_DIR_KEY),
    new DeprecationDelta("dfs.http.address",
      DFSConfigKeys.DFS_NAMENODE_HTTP_ADDRESS_KEY),
    new DeprecationDelta("dfs.https.address",
      DFSConfigKeys.DFS_NAMENODE_HTTPS_ADDRESS_KEY),
    new DeprecationDelta("dfs.max.objects",
      DFSConfigKeys.DFS_NAMENODE_MAX_OBJECTS_KEY),
    new DeprecationDelta("dfs.name.dir",
      DFSConfigKeys.DFS_NAMENODE_NAME_DIR_KEY),
    new DeprecationDelta("dfs.name.dir.restore",
      DFSConfigKeys.DFS_NAMENODE_NAME_DIR_RESTORE_KEY),
    new DeprecationDelta("dfs.name.edits.dir",
      DFSConfigKeys.DFS_NAMENODE_EDITS_DIR_KEY),
    new DeprecationDelta("dfs.read.prefetch.size",
      DFSConfigKeys.DFS_CLIENT_READ_PREFETCH_SIZE_KEY),
    new DeprecationDelta("dfs.safemode.extension",
      DFSConfigKeys.DFS_NAMENODE_SAFEMODE_EXTENSION_KEY),
    new DeprecationDelta("dfs.safemode.threshold.pct",
      DFSConfigKeys.DFS_NAMENODE_SAFEMODE_THRESHOLD_PCT_KEY),
    new DeprecationDelta("dfs.secondary.http.address",
      DFSConfigKeys.DFS_NAMENODE_SECONDARY_HTTP_ADDRESS_KEY),
    new DeprecationDelta("dfs.socket.timeout",
      DFSConfigKeys.DFS_CLIENT_SOCKET_TIMEOUT_KEY),
    new DeprecationDelta("fs.checkpoint.dir",
      DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_DIR_KEY),
    new DeprecationDelta("fs.checkpoint.edits.dir",
      DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_EDITS_DIR_KEY),
    new DeprecationDelta("fs.checkpoint.period",
      DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_PERIOD_KEY),
    new DeprecationDelta("heartbeat.recheck.interval",
      DFSConfigKeys.DFS_NAMENODE_HEARTBEAT_RECHECK_INTERVAL_KEY),
    new DeprecationDelta("dfs.https.client.keystore.resource",
      DFSConfigKeys.DFS_CLIENT_HTTPS_KEYSTORE_RESOURCE_KEY),
    new DeprecationDelta("dfs.https.need.client.auth",
      DFSConfigKeys.DFS_CLIENT_HTTPS_NEED_AUTH_KEY),
    new DeprecationDelta("slave.host.name",
      DFSConfigKeys.DFS_DATANODE_HOST_NAME_KEY),
    new DeprecationDelta("session.id",
      DFSConfigKeys.DFS_METRICS_SESSION_ID_KEY),
    new DeprecationDelta("dfs.access.time.precision",
      DFSConfigKeys.DFS_NAMENODE_ACCESSTIME_PRECISION_KEY),
    new DeprecationDelta("dfs.replication.considerLoad",
      DFSConfigKeys.DFS_NAMENODE_REPLICATION_CONSIDERLOAD_KEY),
    new DeprecationDelta("dfs.replication.interval",
      DFSConfigKeys.DFS_NAMENODE_REPLICATION_INTERVAL_KEY),
    new DeprecationDelta("dfs.replication.min",
      DFSConfigKeys.DFS_NAMENODE_REPLICATION_MIN_KEY),
    new DeprecationDelta("dfs.replication.pending.timeout.sec",
      DFSConfigKeys.DFS_NAMENODE_REPLICATION_PENDING_TIMEOUT_SEC_KEY),
    new DeprecationDelta("dfs.max-repl-streams",
      DFSConfigKeys.DFS_NAMENODE_REPLICATION_MAX_STREAMS_KEY),
    new DeprecationDelta("dfs.permissions",
      DFSConfigKeys.DFS_PERMISSIONS_ENABLED_KEY),
    new DeprecationDelta("dfs.permissions.supergroup",
      DFSConfigKeys.DFS_PERMISSIONS_SUPERUSERGROUP_KEY),
    new DeprecationDelta("dfs.write.packet.size",
      DFSConfigKeys.DFS_CLIENT_WRITE_PACKET_SIZE_KEY),
    new DeprecationDelta("dfs.block.size",
      DFSConfigKeys.DFS_BLOCK_SIZE_KEY),
    new DeprecationDelta("dfs.datanode.max.xcievers",
      DFSConfigKeys.DFS_DATANODE_MAX_RECEIVER_THREADS_KEY),
    new DeprecationDelta("io.bytes.per.checksum",
      DFSConfigKeys.DFS_BYTES_PER_CHECKSUM_KEY),
    new DeprecationDelta("dfs.federation.nameservices",
      DFSConfigKeys.DFS_NAMESERVICES),
    new DeprecationDelta("dfs.federation.nameservice.id",
      DFSConfigKeys.DFS_NAMESERVICE_ID),
    new DeprecationDelta("dfs.client.file-block-storage-locations.timeout",
      DFSConfigKeys.DFS_CLIENT_FILE_BLOCK_STORAGE_LOCATIONS_TIMEOUT_MS),
  });
}