Exemplo n.º 1
0
            /// <exception cref="System.Exception"/>
            public Void Call()
            {
                latch.Await();
                int threadIndex = highestModificationThreadId.AddAndGet(1);

                for (int i = 0; i < NumKeysPerThread; i++)
                {
                    string testKey    = TestConfigurationDeprecation.GetTestKeyName(threadIndex, i);
                    string testNewKey = testKey + ".new";
                    Configuration.AddDeprecations(new Configuration.DeprecationDelta[] { new Configuration.DeprecationDelta
                                                                                             (testKey, testNewKey) });
                }
                return(null);
            }
Exemplo n.º 2
0
 private static void AddDeprecatedKeys()
 {
     Configuration.AddDeprecations(new Configuration.DeprecationDelta[] { new Configuration.DeprecationDelta
                                                                              ("dfs.backup.address", DFSConfigKeys.DfsNamenodeBackupAddressKey), new Configuration.DeprecationDelta
                                                                              ("dfs.backup.http.address", DFSConfigKeys.DfsNamenodeBackupHttpAddressKey), new
                                                                          Configuration.DeprecationDelta("dfs.balance.bandwidthPerSec", DFSConfigKeys.DfsDatanodeBalanceBandwidthpersecKey
                                                                                                         ), new Configuration.DeprecationDelta("dfs.data.dir", DFSConfigKeys.DfsDatanodeDataDirKey
                                                                                                                                               ), new Configuration.DeprecationDelta("dfs.http.address", DFSConfigKeys.DfsNamenodeHttpAddressKey
                                                                                                                                                                                     ), new Configuration.DeprecationDelta("dfs.https.address", DFSConfigKeys.DfsNamenodeHttpsAddressKey
                                                                                                                                                                                                                           ), new Configuration.DeprecationDelta("dfs.max.objects", DFSConfigKeys.DfsNamenodeMaxObjectsKey
                                                                                                                                                                                                                                                                 ), new Configuration.DeprecationDelta("dfs.name.dir", DFSConfigKeys.DfsNamenodeNameDirKey
                                                                                                                                                                                                                                                                                                       ), new Configuration.DeprecationDelta("dfs.name.dir.restore", DFSConfigKeys.DfsNamenodeNameDirRestoreKey
                                                                                                                                                                                                                                                                                                                                             ), new Configuration.DeprecationDelta("dfs.name.edits.dir", DFSConfigKeys.DfsNamenodeEditsDirKey
                                                                                                                                                                                                                                                                                                                                                                                   ), new Configuration.DeprecationDelta("dfs.read.prefetch.size", DFSConfigKeys.DfsClientReadPrefetchSizeKey
                                                                                                                                                                                                                                                                                                                                                                                                                         ), new Configuration.DeprecationDelta("dfs.safemode.extension", DFSConfigKeys.DfsNamenodeSafemodeExtensionKey
                                                                                                                                                                                                                                                                                                                                                                                                                                                               ), new Configuration.DeprecationDelta("dfs.safemode.threshold.pct", DFSConfigKeys
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     .DfsNamenodeSafemodeThresholdPctKey), new Configuration.DeprecationDelta("dfs.secondary.http.address"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              , DFSConfigKeys.DfsNamenodeSecondaryHttpAddressKey), new Configuration.DeprecationDelta
                                                                              ("dfs.socket.timeout", DFSConfigKeys.DfsClientSocketTimeoutKey), new Configuration.DeprecationDelta
                                                                              ("fs.checkpoint.dir", DFSConfigKeys.DfsNamenodeCheckpointDirKey), new Configuration.DeprecationDelta
                                                                              ("fs.checkpoint.edits.dir", DFSConfigKeys.DfsNamenodeCheckpointEditsDirKey), new
                                                                          Configuration.DeprecationDelta("fs.checkpoint.period", DFSConfigKeys.DfsNamenodeCheckpointPeriodKey
                                                                                                         ), new Configuration.DeprecationDelta("heartbeat.recheck.interval", DFSConfigKeys
                                                                                                                                               .DfsNamenodeHeartbeatRecheckIntervalKey), new Configuration.DeprecationDelta("dfs.https.client.keystore.resource"
                                                                                                                                                                                                                            , DFSConfigKeys.DfsClientHttpsKeystoreResourceKey), new Configuration.DeprecationDelta
                                                                              ("dfs.https.need.client.auth", DFSConfigKeys.DfsClientHttpsNeedAuthKey), new Configuration.DeprecationDelta
                                                                              ("slave.host.name", DFSConfigKeys.DfsDatanodeHostNameKey), new Configuration.DeprecationDelta
                                                                              ("session.id", DFSConfigKeys.DfsMetricsSessionIdKey), new Configuration.DeprecationDelta
                                                                              ("dfs.access.time.precision", DFSConfigKeys.DfsNamenodeAccesstimePrecisionKey),
                                                                          new Configuration.DeprecationDelta("dfs.replication.considerLoad", DFSConfigKeys
                                                                                                             .DfsNamenodeReplicationConsiderloadKey), new Configuration.DeprecationDelta("dfs.replication.interval"
                                                                                                                                                                                         , DFSConfigKeys.DfsNamenodeReplicationIntervalKey), new Configuration.DeprecationDelta
                                                                              ("dfs.replication.min", DFSConfigKeys.DfsNamenodeReplicationMinKey), new Configuration.DeprecationDelta
                                                                              ("dfs.replication.pending.timeout.sec", DFSConfigKeys.DfsNamenodeReplicationPendingTimeoutSecKey
                                                                              ), new Configuration.DeprecationDelta("dfs.max-repl-streams", DFSConfigKeys.DfsNamenodeReplicationMaxStreamsKey
                                                                                                                    ), new Configuration.DeprecationDelta("dfs.permissions", DFSConfigKeys.DfsPermissionsEnabledKey
                                                                                                                                                          ), new Configuration.DeprecationDelta("dfs.permissions.supergroup", DFSConfigKeys
                                                                                                                                                                                                .DfsPermissionsSuperusergroupKey), new Configuration.DeprecationDelta("dfs.write.packet.size"
                                                                                                                                                                                                                                                                      , DFSConfigKeys.DfsClientWritePacketSizeKey), new Configuration.DeprecationDelta
                                                                              ("dfs.block.size", DFSConfigKeys.DfsBlockSizeKey), new Configuration.DeprecationDelta
                                                                              ("dfs.datanode.max.xcievers", DFSConfigKeys.DfsDatanodeMaxReceiverThreadsKey), new
                                                                          Configuration.DeprecationDelta("io.bytes.per.checksum", DFSConfigKeys.DfsBytesPerChecksumKey
                                                                                                         ), new Configuration.DeprecationDelta("dfs.federation.nameservices", DFSConfigKeys
                                                                                                                                               .DfsNameservices), new Configuration.DeprecationDelta("dfs.federation.nameservice.id"
                                                                                                                                                                                                     , DFSConfigKeys.DfsNameserviceId), new Configuration.DeprecationDelta("dfs.client.file-block-storage-locations.timeout"
                                                                                                                                                                                                                                                                           , DFSConfigKeys.DfsClientFileBlockStorageLocationsTimeoutMs) });
 }
Exemplo n.º 3
0
 private static void AddDeprecatedKeys()
 {
     Configuration.AddDeprecations(new Configuration.DeprecationDelta[] { new Configuration.DeprecationDelta
                                                                              ("nfs3.server.port", NfsConfigKeys.DfsNfsServerPortKey), new Configuration.DeprecationDelta
                                                                              ("nfs3.mountd.port", NfsConfigKeys.DfsNfsMountdPortKey), new Configuration.DeprecationDelta
                                                                              ("dfs.nfs.exports.cache.size", Nfs3Constant.NfsExportsCacheSizeKey), new Configuration.DeprecationDelta
                                                                              ("dfs.nfs.exports.cache.expirytime.millis", Nfs3Constant.NfsExportsCacheExpirytimeMillisKey
                                                                              ), new Configuration.DeprecationDelta("hadoop.nfs.userupdate.milly", IdMappingConstant
                                                                                                                    .UsergroupidUpdateMillisKey), new Configuration.DeprecationDelta("nfs.usergroup.update.millis"
                                                                                                                                                                                     , IdMappingConstant.UsergroupidUpdateMillisKey), new Configuration.DeprecationDelta
                                                                              ("nfs.static.mapping.file", IdMappingConstant.StaticIdMappingFileKey), new Configuration.DeprecationDelta
                                                                              ("dfs.nfs3.enableDump", NfsConfigKeys.DfsNfsFileDumpKey), new Configuration.DeprecationDelta
                                                                              ("dfs.nfs3.dump.dir", NfsConfigKeys.DfsNfsFileDumpDirKey), new Configuration.DeprecationDelta
                                                                              ("dfs.nfs3.max.open.files", NfsConfigKeys.DfsNfsMaxOpenFilesKey), new Configuration.DeprecationDelta
                                                                              ("dfs.nfs3.stream.timeout", NfsConfigKeys.DfsNfsStreamTimeoutKey), new Configuration.DeprecationDelta
                                                                              ("dfs.nfs3.export.point", NfsConfigKeys.DfsNfsExportPointKey), new Configuration.DeprecationDelta
                                                                              ("nfs.allow.insecure.ports", NfsConfigKeys.DfsNfsPortMonitoringDisabledKey), new
                                                                          Configuration.DeprecationDelta("dfs.nfs.keytab.file", NfsConfigKeys.DfsNfsKeytabFileKey
                                                                                                         ), new Configuration.DeprecationDelta("dfs.nfs.kerberos.principal", NfsConfigKeys
                                                                                                                                               .DfsNfsKerberosPrincipalKey), new Configuration.DeprecationDelta("dfs.nfs.rtmax"
                                                                                                                                                                                                                , NfsConfigKeys.DfsNfsMaxReadTransferSizeKey), new Configuration.DeprecationDelta
                                                                              ("dfs.nfs.wtmax", NfsConfigKeys.DfsNfsMaxWriteTransferSizeKey), new Configuration.DeprecationDelta
                                                                              ("dfs.nfs.dtmax", NfsConfigKeys.DfsNfsMaxReaddirTransferSizeKey) });
 }