You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by sx...@apache.org on 2024/09/10 07:04:39 UTC

(flink) 01/02: [FLINK-34085][config] Remove deprecated string configuration keys

This is an automated email from the ASF dual-hosted git repository.

sxnan pushed a commit to branch string-key
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 5a29212c2566d650e0acd87925c7e262586faf16
Author: sxnan <su...@gmail.com>
AuthorDate: Tue Sep 10 14:24:00 2024 +0800

    [FLINK-34085][config] Remove deprecated string configuration keys
---
 .../api/java/hadoop/mapred/utils/HadoopUtils.java  |   26 +-
 .../flink/configuration/ConfigConstants.java       | 1699 +-------------------
 .../apache/flink/configuration/RestOptions.java    |    6 +-
 .../org/apache/flink/runtime/util/HadoopUtils.java |   33 +-
 .../runtime/fs/hdfs/HadoopConfigLoadingTest.java   |   62 +-
 .../optimizer/plantranslate/JobGraphGenerator.java |    9 +-
 .../runtime/jobmanager/HighAvailabilityMode.java   |    3 +-
 .../operators/sort/ExternalSorterBuilder.java      |    4 +-
 .../jobmanager/HighAvailabilityModeTest.java       |   15 +-
 .../flink/yarn/entrypoint/YarnEntrypointUtils.java |   16 -
 .../flink/yarn/YarnFileStageTestS3ITCase.java      |    2 -
 11 files changed, 32 insertions(+), 1843 deletions(-)

diff --git a/flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/utils/HadoopUtils.java b/flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/utils/HadoopUtils.java
index 67a53405d24..0ef091e4909 100644
--- a/flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/utils/HadoopUtils.java
+++ b/flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/utils/HadoopUtils.java
@@ -19,7 +19,6 @@
 package org.apache.flink.api.java.hadoop.mapred.utils;
 
 import org.apache.flink.annotation.Internal;
-import org.apache.flink.configuration.ConfigConstants;
 import org.apache.flink.configuration.GlobalConfiguration;
 
 import org.apache.hadoop.conf.Configuration;
@@ -69,24 +68,8 @@ public final class HadoopUtils {
         // We need to load both core-site.xml and hdfs-site.xml to determine the default fs path and
         // the hdfs configuration
         // Try to load HDFS configuration from Hadoop's own configuration files
-        // 1. approach: Flink configuration
-        final String hdfsDefaultPath =
-                flinkConfiguration.getString(ConfigConstants.HDFS_DEFAULT_CONFIG, null);
-        if (hdfsDefaultPath != null) {
-            retConf.addResource(new org.apache.hadoop.fs.Path(hdfsDefaultPath));
-        } else {
-            LOG.debug("Cannot find hdfs-default configuration file");
-        }
-
-        final String hdfsSitePath =
-                flinkConfiguration.getString(ConfigConstants.HDFS_SITE_CONFIG, null);
-        if (hdfsSitePath != null) {
-            retConf.addResource(new org.apache.hadoop.fs.Path(hdfsSitePath));
-        } else {
-            LOG.debug("Cannot find hdfs-site configuration file");
-        }
 
-        // 2. Approach environment variables
+        // Approach environment variables
         for (String possibleHadoopConfPath : possibleHadoopConfPaths(flinkConfiguration)) {
             if (new File(possibleHadoopConfPath).exists()) {
                 if (new File(possibleHadoopConfPath + "/core-site.xml").exists()) {
@@ -128,12 +111,11 @@ public final class HadoopUtils {
     public static String[] possibleHadoopConfPaths(
             org.apache.flink.configuration.Configuration flinkConfiguration) {
         String[] possiblePaths = new String[4];
-        possiblePaths[0] = flinkConfiguration.getString(ConfigConstants.PATH_HADOOP_CONFIG, null);
-        possiblePaths[1] = System.getenv("HADOOP_CONF_DIR");
+        possiblePaths[0] = System.getenv("HADOOP_CONF_DIR");
 
         if (System.getenv("HADOOP_HOME") != null) {
-            possiblePaths[2] = System.getenv("HADOOP_HOME") + "/conf";
-            possiblePaths[3] = System.getenv("HADOOP_HOME") + "/etc/hadoop"; // hadoop 2.2
+            possiblePaths[1] = System.getenv("HADOOP_HOME") + "/conf";
+            possiblePaths[2] = System.getenv("HADOOP_HOME") + "/etc/hadoop"; // hadoop 2.2
         }
         return Arrays.stream(possiblePaths).filter(Objects::nonNull).toArray(String[]::new);
     }
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/ConfigConstants.java b/flink-core/src/main/java/org/apache/flink/configuration/ConfigConstants.java
index 58a33a6060a..45ee33e2e5d 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/ConfigConstants.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/ConfigConstants.java
@@ -19,1106 +19,24 @@
 package org.apache.flink.configuration;
 
 import org.apache.flink.annotation.Public;
-import org.apache.flink.annotation.PublicEvolving;
 
 import java.nio.charset.Charset;
 import java.nio.charset.StandardCharsets;
 
-import static org.apache.flink.configuration.ConfigOptions.key;
-
-/**
- * This class contains all constants for the configuration. That includes the configuration keys and
- * the default values.
- */
-@Public
-@SuppressWarnings("unused")
-public final class ConfigConstants {
-
-    // ------------------------------------------------------------------------
-    //                            Configuration Keys
-    // ------------------------------------------------------------------------
-
-    // ---------------------------- Parallelism -------------------------------
-
-    /**
-     * The config parameter defining the default parallelism for jobs.
-     *
-     * @deprecated use {@link CoreOptions#DEFAULT_PARALLELISM} instead
-     */
-    @Deprecated public static final String DEFAULT_PARALLELISM_KEY = "parallelism.default";
-
-    // ---------------------------- Restart strategies ------------------------
-
-    /**
-     * Defines the restart strategy to be used. It can be "off", "none", "disable" to be disabled or
-     * it can be "fixeddelay", "fixed-delay" to use the FixedDelayRestartStrategy or it can be
-     * "failurerate", "failure-rate" to use FailureRateRestartStrategy.
-     *
-     * @deprecated use {@link RestartStrategyOptions#RESTART_STRATEGY} instead.
-     */
-    @Deprecated @PublicEvolving public static final String RESTART_STRATEGY = "restart-strategy";
-
-    /**
-     * Maximum number of attempts the fixed delay restart strategy will try before failing a job.
-     *
-     * @deprecated use {@link RestartStrategyOptions#RESTART_STRATEGY_FIXED_DELAY_ATTEMPTS} instead.
-     */
-    @Deprecated @PublicEvolving
-    public static final String RESTART_STRATEGY_FIXED_DELAY_ATTEMPTS =
-            "restart-strategy.fixed-delay.attempts";
-
-    /**
-     * Delay between two consecutive restart attempts in FixedDelayRestartStrategy. It can be
-     * specified using Scala's FiniteDuration notation: "1 min", "20 s"
-     *
-     * @deprecated use {@link RestartStrategyOptions#RESTART_STRATEGY_FIXED_DELAY_DELAY} instead.
-     */
-    @Deprecated @PublicEvolving
-    public static final ConfigOption<String> RESTART_STRATEGY_FIXED_DELAY_DELAY =
-            key("restart-strategy.fixed-delay.delay").stringType().defaultValue("0 s");
-
-    /**
-     * Maximum number of restarts in given time interval {@link
-     * #RESTART_STRATEGY_FAILURE_RATE_FAILURE_RATE_INTERVAL} before failing a job in
-     * FailureRateRestartStrategy.
-     *
-     * @deprecated use {@link
-     *     RestartStrategyOptions#RESTART_STRATEGY_FAILURE_RATE_MAX_FAILURES_PER_INTERVAL} instead.
-     */
-    @Deprecated @PublicEvolving
-    public static final String RESTART_STRATEGY_FAILURE_RATE_MAX_FAILURES_PER_INTERVAL =
-            "restart-strategy.failure-rate.max-failures-per-interval";
-
-    /**
-     * Time interval in which greater amount of failures than {@link
-     * #RESTART_STRATEGY_FAILURE_RATE_MAX_FAILURES_PER_INTERVAL} causes job fail in
-     * FailureRateRestartStrategy. It can be specified using Scala's FiniteDuration notation: "1
-     * min", "20 s"
-     *
-     * @deprecated use {@link
-     *     RestartStrategyOptions#RESTART_STRATEGY_FAILURE_RATE_FAILURE_RATE_INTERVAL}
-     */
-    @Deprecated @PublicEvolving
-    public static final String RESTART_STRATEGY_FAILURE_RATE_FAILURE_RATE_INTERVAL =
-            "restart-strategy.failure-rate.failure-rate-interval";
-
-    /**
-     * Delay between two consecutive restart attempts in FailureRateRestartStrategy. It can be
-     * specified using Scala's FiniteDuration notation: "1 min", "20 s".
-     *
-     * @deprecated use {@link RestartStrategyOptions#RESTART_STRATEGY_FAILURE_RATE_DELAY} instead.
-     */
-    @Deprecated @PublicEvolving
-    public static final String RESTART_STRATEGY_FAILURE_RATE_DELAY =
-            "restart-strategy.failure-rate.delay";
-
-    /**
-     * Config parameter for the number of re-tries for failed tasks. Setting this value to 0
-     * effectively disables fault tolerance.
-     *
-     * @deprecated The configuration value will be replaced by {@link
-     *     #RESTART_STRATEGY_FIXED_DELAY_ATTEMPTS} and the corresponding FixedDelayRestartStrategy.
-     */
-    @Deprecated @PublicEvolving
-    public static final String EXECUTION_RETRIES_KEY = "execution-retries.default";
-
-    /**
-     * Config parameter for the delay between execution retries. The value must be specified in the
-     * notation "10 s" or "1 min" (style of Scala Finite Durations)
-     *
-     * @deprecated The configuration value will be replaced by {@link
-     *     #RESTART_STRATEGY_FIXED_DELAY_DELAY} and the corresponding FixedDelayRestartStrategy.
-     */
-    @Deprecated @PublicEvolving
-    public static final String EXECUTION_RETRY_DELAY_KEY = "execution-retries.delay";
-
-    // -------------------------------- Runtime -------------------------------
-
-    /**
-     * The config parameter defining the network address to connect to for communication with the
-     * job manager.
-     *
-     * @deprecated Use {@link JobManagerOptions#ADDRESS} instead
-     */
-    @Deprecated public static final String JOB_MANAGER_IPC_ADDRESS_KEY = "jobmanager.rpc.address";
-
-    /**
-     * The config parameter defining the network port to connect to for communication with the job
-     * manager.
-     *
-     * @deprecated Use {@link JobManagerOptions#PORT} instead
-     */
-    @Deprecated public static final String JOB_MANAGER_IPC_PORT_KEY = "jobmanager.rpc.port";
-
-    /**
-     * The config parameter defining the network port to connect to for communication with the
-     * resource manager.
-     *
-     * @deprecated Use {@link ResourceManagerOptions#IPC_PORT} instead.
-     */
-    @Deprecated
-    public static final String RESOURCE_MANAGER_IPC_PORT_KEY = "resourcemanager.rpc.port";
-
-    /** @deprecated use {@link BlobServerOptions#STORAGE_DIRECTORY} instead */
-    @Deprecated public static final String BLOB_STORAGE_DIRECTORY_KEY = "blob.storage.directory";
-
-    /** @deprecated use {@link BlobServerOptions#FETCH_RETRIES} instead */
-    @Deprecated public static final String BLOB_FETCH_RETRIES_KEY = "blob.fetch.retries";
-
-    /** @deprecated use {@link BlobServerOptions#FETCH_CONCURRENT} instead */
-    @Deprecated public static final String BLOB_FETCH_CONCURRENT_KEY = "blob.fetch.num-concurrent";
-
-    /** @deprecated use {@link BlobServerOptions#FETCH_BACKLOG} instead */
-    @Deprecated public static final String BLOB_FETCH_BACKLOG_KEY = "blob.fetch.backlog";
-
-    /** @deprecated use {@link BlobServerOptions#PORT} instead */
-    @Deprecated public static final String BLOB_SERVER_PORT = "blob.server.port";
-
-    /** @deprecated use {@link BlobServerOptions#SSL_ENABLED} instead */
-    @Deprecated public static final String BLOB_SERVICE_SSL_ENABLED = "blob.service.ssl.enabled";
-
-    /**
-     * The config parameter defining the cleanup interval of the library cache manager.
-     *
-     * @deprecated use {@link BlobServerOptions#CLEANUP_INTERVAL} instead
-     */
-    @Deprecated
-    public static final String LIBRARY_CACHE_MANAGER_CLEANUP_INTERVAL =
-            "library-cache-manager.cleanup.interval";
-
-    /**
-     * The config parameter defining the task manager's hostname.
-     *
-     * @deprecated use {@link TaskManagerOptions#HOST} instead
-     */
-    @Deprecated public static final String TASK_MANAGER_HOSTNAME_KEY = "taskmanager.hostname";
-
-    /** @deprecated use {@link TaskManagerOptions#RPC_PORT} instead */
-    @Deprecated public static final String TASK_MANAGER_IPC_PORT_KEY = "taskmanager.rpc.port";
-
-    /** @deprecated use {@link NettyShuffleEnvironmentOptions#DATA_PORT} instead */
-    @Deprecated public static final String TASK_MANAGER_DATA_PORT_KEY = "taskmanager.data.port";
-
-    /**
-     * Config parameter to override SSL support for taskmanager's data transport.
-     *
-     * @deprecated use {@link NettyShuffleEnvironmentOptions#DATA_SSL_ENABLED} instead
-     */
-    @Deprecated
-    public static final String TASK_MANAGER_DATA_SSL_ENABLED = "taskmanager.data.ssl.enabled";
-
-    /**
-     * The config parameter defining the directories for temporary files, separated by ",", "|", or
-     * the system's {@link java.io.File#pathSeparator}.
-     *
-     * @deprecated Use {@link CoreOptions#TMP_DIRS} instead
-     */
-    @Deprecated public static final String TASK_MANAGER_TMP_DIR_KEY = "taskmanager.tmp.dirs";
-
-    /**
-     * The config parameter defining the taskmanager log file location.
-     *
-     * @deprecated Use {@link TaskManagerOptions#TASK_MANAGER_LOG_PATH} instead.
-     */
-    @Deprecated public static final String TASK_MANAGER_LOG_PATH_KEY = "taskmanager.log.path";
-
-    /** @deprecated Use {@link TaskManagerOptions#MANAGED_MEMORY_SIZE} instead */
-    @Deprecated public static final String TASK_MANAGER_MEMORY_SIZE_KEY = "taskmanager.memory.size";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String TASK_MANAGER_MEMORY_FRACTION_KEY = "taskmanager.memory.fraction";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String TASK_MANAGER_MEMORY_OFF_HEAP_KEY = "taskmanager.memory.off-heap";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String TASK_MANAGER_MEMORY_PRE_ALLOCATE_KEY =
-            "taskmanager.memory.preallocate";
-
-    /**
-     * The config parameter defining the number of buffers used in the network stack. This defines
-     * the number of possible tasks and shuffles.
-     *
-     * @deprecated Use {@link NettyShuffleEnvironmentOptions#NETWORK_NUM_BUFFERS} instead
-     */
-    @Deprecated
-    public static final String TASK_MANAGER_NETWORK_NUM_BUFFERS_KEY =
-            "taskmanager.network.numberOfBuffers";
-
-    /**
-     * Config parameter defining the size of memory buffers used by the network stack and the memory
-     * manager.
-     *
-     * @deprecated Use {@link TaskManagerOptions#MEMORY_SEGMENT_SIZE} instead
-     */
-    @Deprecated
-    public static final String TASK_MANAGER_MEMORY_SEGMENT_SIZE_KEY =
-            "taskmanager.memory.segment-size";
-
-    /** @deprecated Not used anymore */
-    @Deprecated
-    public static final String TASK_MANAGER_NETWORK_DEFAULT_IO_MODE =
-            "taskmanager.network.defaultIOMode";
-
-    /**
-     * The config parameter defining the number of task slots of a task manager.
-     *
-     * @deprecated use {@link TaskManagerOptions#NUM_TASK_SLOTS} instead
-     */
-    @Deprecated
-    public static final String TASK_MANAGER_NUM_TASK_SLOTS = "taskmanager.numberOfTaskSlots";
-
-    /**
-     * Flag indicating whether to start a thread, which repeatedly logs the memory usage of the JVM.
-     *
-     * @deprecated use {@link TaskManagerOptions#DEBUG_MEMORY_LOG} instead
-     */
-    @Deprecated
-    public static final String TASK_MANAGER_DEBUG_MEMORY_USAGE_START_LOG_THREAD =
-            "taskmanager.debug.memory.startLogThread";
-
-    /**
-     * The interval (in ms) for the log thread to log the current memory usage.
-     *
-     * @deprecated use {@link TaskManagerOptions#DEBUG_MEMORY_USAGE_LOG_INTERVAL_MS} instead
-     */
-    @Deprecated
-    public static final String TASK_MANAGER_DEBUG_MEMORY_USAGE_LOG_INTERVAL_MS =
-            "taskmanager.debug.memory.logIntervalMs";
-
-    /**
-     * Defines the maximum time it can take for the TaskManager registration. If the duration is
-     * exceeded without a successful registration, then the TaskManager terminates.
-     *
-     * @deprecated use {@link TaskManagerOptions#REGISTRATION_TIMEOUT} instead
-     */
-    @Deprecated
-    public static final String TASK_MANAGER_MAX_REGISTRATION_DURATION =
-            "taskmanager.maxRegistrationDuration";
-
-    /**
-     * The initial registration pause between two consecutive registration attempts. The pause is
-     * doubled for each new registration attempt until it reaches the maximum registration pause.
-     *
-     * @deprecated use {@link ClusterOptions#INITIAL_REGISTRATION_TIMEOUT} instead
-     */
-    @Deprecated
-    public static final String TASK_MANAGER_INITIAL_REGISTRATION_PAUSE =
-            "taskmanager.initial-registration-pause";
-
-    /**
-     * The maximum registration pause between two consecutive registration attempts.
-     *
-     * @deprecated use {@link ClusterOptions#MAX_REGISTRATION_TIMEOUT} instead
-     */
-    @Deprecated
-    public static final String TASK_MANAGER_MAX_REGISTARTION_PAUSE =
-            "taskmanager.max-registration-pause";
-
-    /**
-     * The pause after a registration has been refused by the job manager before retrying to
-     * connect.
-     *
-     * @deprecated use {@link ClusterOptions#REFUSED_REGISTRATION_DELAY} instead
-     */
-    @Deprecated
-    public static final String TASK_MANAGER_REFUSED_REGISTRATION_PAUSE =
-            "taskmanager.refused-registration-pause";
-
-    /** @deprecated has no effect */
-    @Deprecated public static final boolean DEFAULT_TASK_MANAGER_MEMORY_PRE_ALLOCATE = false;
-
-    /** @deprecated Deprecated. Please use {@link TaskManagerOptions#TASK_CANCELLATION_INTERVAL}. */
-    @PublicEvolving @Deprecated
-    public static final String TASK_CANCELLATION_INTERVAL_MILLIS = "task.cancellation-interval";
-
-    // --------------------------- Runtime Algorithms -------------------------------
-
-    /** @deprecated use {@link AlgorithmOptions#SPILLING_MAX_FAN} instead */
-    @Deprecated
-    public static final String DEFAULT_SPILLING_MAX_FAN_KEY = "taskmanager.runtime.max-fan";
-
-    /** @deprecated use {@link AlgorithmOptions#SORT_SPILLING_THRESHOLD instead} */
-    @Deprecated
-    public static final String DEFAULT_SORT_SPILLING_THRESHOLD_KEY =
-            "taskmanager.runtime.sort-spilling-threshold";
-
-    /** @deprecated use {@link AlgorithmOptions#HASH_JOIN_BLOOM_FILTERS} instead */
-    @Deprecated
-    public static final String RUNTIME_HASH_JOIN_BLOOM_FILTERS_KEY =
-            "taskmanager.runtime.hashjoin-bloom-filters";
-
-    /**
-     * The config parameter defining the timeout for filesystem stream opening. A value of 0
-     * indicates infinite waiting.
-     *
-     * @deprecated use {@link TaskManagerOptions#FS_STREAM_OPENING_TIME_OUT} instead.
-     */
-    @Deprecated
-    public static final String FS_STREAM_OPENING_TIMEOUT_KEY = "taskmanager.runtime.fs_timeout";
-
-    /**
-     * Whether to use the LargeRecordHandler when spilling.
-     *
-     * @deprecated use {@link AlgorithmOptions#USE_LARGE_RECORDS_HANDLER}
-     */
-    @Deprecated
-    public static final String USE_LARGE_RECORD_HANDLER_KEY =
-            "taskmanager.runtime.large-record-handler";
-
-    // -------- Common Resource Framework Configuration (YARN) --------
-
-    /**
-     * Percentage of heap space to remove from containers (YARN / Kubernetes), to compensate for
-     * other JVM memory usage.
-     *
-     * @deprecated Not used anymore, but remain here until Flink 2.0
-     */
-    @Deprecated
-    public static final String CONTAINERIZED_HEAP_CUTOFF_RATIO = "containerized.heap-cutoff-ratio";
-
-    /**
-     * Minimum amount of heap memory to remove in containers, as a safety margin.
-     *
-     * @deprecated Not used anymore, but remain here until Flink 2.0
-     */
-    @Deprecated
-    public static final String CONTAINERIZED_HEAP_CUTOFF_MIN = "containerized.heap-cutoff-min";
-
-    /**
-     * Prefix for passing custom environment variables to Flink's master process. For example for
-     * passing LD_LIBRARY_PATH as an env variable to the AppMaster, set:
-     * containerized.master.env.LD_LIBRARY_PATH: "/usr/lib/native" in the config.yaml.
-     *
-     * @deprecated Use {@link ResourceManagerOptions#CONTAINERIZED_MASTER_ENV_PREFIX} instead.
-     */
-    @Deprecated
-    public static final String CONTAINERIZED_MASTER_ENV_PREFIX = "containerized.master.env.";
-
-    /**
-     * Similar to the {@see CONTAINERIZED_MASTER_ENV_PREFIX}, this configuration prefix allows
-     * setting custom environment variables for the workers (TaskManagers).
-     *
-     * @deprecated Use {@link ResourceManagerOptions#CONTAINERIZED_TASK_MANAGER_ENV_PREFIX} instead.
-     */
-    @Deprecated
-    public static final String CONTAINERIZED_TASK_MANAGER_ENV_PREFIX =
-            "containerized.taskmanager.env.";
-
-    // ------------------------ YARN Configuration ------------------------
-
-    /**
-     * The vcores exposed by YARN.
-     *
-     * @deprecated in favor of {@code YarnConfigOptions#VCORES}.
-     */
-    @Deprecated public static final String YARN_VCORES = "yarn.containers.vcores";
-
-    /**
-     * Percentage of heap space to remove from containers started by YARN.
-     *
-     * @deprecated Not used anymore, but remain here until Flink 2.0
-     */
-    @Deprecated public static final String YARN_HEAP_CUTOFF_RATIO = "yarn.heap-cutoff-ratio";
-
-    /**
-     * Minimum amount of memory to remove from the heap space as a safety margin.
-     *
-     * @deprecated Not used anymore, but remain here until Flink 2.0
-     */
-    @Deprecated public static final String YARN_HEAP_CUTOFF_MIN = "yarn.heap-cutoff-min";
-
-    /**
-     * Reallocate failed YARN containers.
-     *
-     * @deprecated Not used anymore
-     */
-    @Deprecated
-    public static final String YARN_REALLOCATE_FAILED_CONTAINERS = "yarn.reallocate-failed";
-
-    /**
-     * The maximum number of failed YARN containers before entirely stopping the YARN session / job
-     * on YARN.
-     *
-     * <p>By default, we take the number of initially requested containers.
-     *
-     * @deprecated in favor of {@code YarnConfigOptions#MAX_FAILED_CONTAINERS}.
-     */
-    @Deprecated
-    public static final String YARN_MAX_FAILED_CONTAINERS = "yarn.maximum-failed-containers";
-
-    /**
-     * Set the number of retries for failed YARN ApplicationMasters/JobManagers in high availability
-     * mode. This value is usually limited by YARN.
-     *
-     * <p>By default, it's 1 in the standalone case and 2 in the high availability case.
-     *
-     * @deprecated in favor of {@code YarnConfigOptions#APPLICATION_ATTEMPTS}.
-     */
-    @Deprecated public static final String YARN_APPLICATION_ATTEMPTS = "yarn.application-attempts";
-
-    /**
-     * The heartbeat interval between the Application Master and the YARN Resource Manager. The
-     * default value is 5 (seconds).
-     *
-     * @deprecated in favor of {@code YarnConfigOptions#HEARTBEAT_DELAY_SECONDS}.
-     */
-    @Deprecated public static final String YARN_HEARTBEAT_DELAY_SECONDS = "yarn.heartbeat-delay";
-
-    /**
-     * When a Flink job is submitted to YARN, the JobManager's host and the number of available
-     * processing slots is written into a properties file, so that the Flink client is able to pick
-     * those details up. This configuration parameter allows changing the default location of that
-     * file (for example for environments sharing a Flink installation between users).
-     *
-     * @deprecated in favor of {@code YarnConfigOptions#PROPERTIES_FILE_LOCATION}.
-     */
-    @Deprecated
-    public static final String YARN_PROPERTIES_FILE_LOCATION = "yarn.properties-file.location";
-
-    /**
-     * Prefix for passing custom environment variables to Flink's ApplicationMaster (JobManager).
-     * For example for passing LD_LIBRARY_PATH as an env variable to the AppMaster, set:
-     * yarn.application-master.env.LD_LIBRARY_PATH: "/usr/lib/native" in the config.yaml.
-     *
-     * @deprecated Please use {@code CONTAINERIZED_MASTER_ENV_PREFIX}.
-     */
-    @Deprecated
-    public static final String YARN_APPLICATION_MASTER_ENV_PREFIX = "yarn.application-master.env.";
-
-    /** @deprecated Not used anymore, but remain here until Flink 2.0 */
-    @Deprecated public static final String DEFAULT_YARN_APPLICATION_MASTER_PORT = "deprecated";
-
-    /** @deprecated Not used anymore, but remain here until Flink 2.0 */
-    @Deprecated public static final int DEFAULT_YARN_MIN_HEAP_CUTOFF = -1;
-
-    /**
-     * Similar to the {@see YARN_APPLICATION_MASTER_ENV_PREFIX}, this configuration prefix allows
-     * setting custom environment variables.
-     *
-     * @deprecated Please use {@code CONTAINERIZED_TASK_MANAGER_ENV_PREFIX}.
-     */
-    @Deprecated public static final String YARN_TASK_MANAGER_ENV_PREFIX = "yarn.taskmanager.env.";
-
-    /**
-     * Template for the YARN container start invocation.
-     *
-     * @deprecated in favor of {@code YarnConfigOptions#YARN_CONTAINER_START_COMMAND_TEMPLATE}.
-     */
-    @Deprecated
-    public static final String YARN_CONTAINER_START_COMMAND_TEMPLATE =
-            "yarn.container-start-command-template";
-
-    /**
-     * The config parameter defining the Akka actor system port for the ApplicationMaster and
-     * JobManager
-     *
-     * <p>The port can either be a port, such as "9123", a range of ports: "50100-50200" or a list
-     * of ranges and or points: "50100-50200,50300-50400,51234"
-     *
-     * <p>Setting the port to 0 will let the OS choose an available port.
-     *
-     * @deprecated in favor of {@code YarnConfigOptions#APPLICATION_MASTER_PORT}.
-     */
-    @Deprecated
-    public static final String YARN_APPLICATION_MASTER_PORT = "yarn.application-master.port";
-
-    /**
-     * A comma-separated list of strings to use as YARN application tags.
-     *
-     * @deprecated in favor of {@code YarnConfigOptions#APPLICATION_TAGS}.
-     */
-    @Deprecated public static final String YARN_APPLICATION_TAGS = "yarn.tags";
-
-    // ------------------------ Mesos Configuration ------------------------
-
-    /** @deprecated has no effect */
-    @Deprecated public static final String MESOS_INITIAL_TASKS = "mesos.initial-tasks";
-
-    /** @deprecated has no effect */
-    @Deprecated public static final String MESOS_MAX_FAILED_TASKS = "mesos.maximum-failed-tasks";
-
-    /** @deprecated has no effect */
-    @Deprecated public static final String MESOS_MASTER_URL = "mesos.master";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String MESOS_FAILOVER_TIMEOUT_SECONDS = "mesos.failover-timeout";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String MESOS_ARTIFACT_SERVER_PORT_KEY =
-            "mesos.resourcemanager.artifactserver.port";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String MESOS_RESOURCEMANAGER_FRAMEWORK_NAME =
-            "mesos.resourcemanager.framework.name";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String MESOS_RESOURCEMANAGER_FRAMEWORK_ROLE =
-            "mesos.resourcemanager.framework.role";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String MESOS_RESOURCEMANAGER_FRAMEWORK_PRINCIPAL =
-            "mesos.resourcemanager.framework.principal";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String MESOS_RESOURCEMANAGER_FRAMEWORK_SECRET =
-            "mesos.resourcemanager.framework.secret";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String MESOS_RESOURCEMANAGER_FRAMEWORK_USER =
-            "mesos.resourcemanager.framework.user";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String MESOS_ARTIFACT_SERVER_SSL_ENABLED =
-            "mesos.resourcemanager.artifactserver.ssl.enabled";
-
-    // ------------------------ Hadoop Configuration ------------------------
-
-    /**
-     * Path to hdfs-default.xml file.
-     *
-     * @deprecated Use environment variable HADOOP_CONF_DIR instead.
-     */
-    @Deprecated public static final String HDFS_DEFAULT_CONFIG = "fs.hdfs.hdfsdefault";
-
-    /**
-     * Path to hdfs-site.xml file.
-     *
-     * @deprecated Use environment variable HADOOP_CONF_DIR instead.
-     */
-    @Deprecated public static final String HDFS_SITE_CONFIG = "fs.hdfs.hdfssite";
-
-    /**
-     * Path to Hadoop configuration.
-     *
-     * @deprecated Use environment variable HADOOP_CONF_DIR instead.
-     */
-    @Deprecated public static final String PATH_HADOOP_CONFIG = "fs.hdfs.hadoopconf";
-
-    // ------------------------ File System Behavior ------------------------
-
-    /**
-     * Key to specify the default filesystem to be used by a job. In the case of <code>file:///
-     * </code>, which is the default (see {@link ConfigConstants#DEFAULT_FILESYSTEM_SCHEME}), the
-     * local filesystem is going to be used to resolve URIs without an explicit scheme.
-     *
-     * @deprecated Use {@link CoreOptions#DEFAULT_FILESYSTEM_SCHEME} instead.
-     */
-    @Deprecated public static final String FILESYSTEM_SCHEME = "fs.default-scheme";
-
-    /**
-     * Key to specify whether the file systems should simply overwrite existing files.
-     *
-     * @deprecated Use {@link CoreOptions#FILESYTEM_DEFAULT_OVERRIDE} instead.
-     */
-    @Deprecated public static final String FILESYSTEM_DEFAULT_OVERWRITE_KEY = "fs.overwrite-files";
-
-    /**
-     * Key to specify whether the file systems should always create a directory for the output, even
-     * with a parallelism of one.
-     *
-     * @deprecated Use {@link CoreOptions#FILESYSTEM_OUTPUT_ALWAYS_CREATE_DIRECTORY} instead.
-     */
-    @Deprecated
-    public static final String FILESYSTEM_OUTPUT_ALWAYS_CREATE_DIRECTORY_KEY =
-            "fs.output.always-create-directory";
-
-    // ---------------------------- Compiler -------------------------------
-
-    /**
-     * The maximum number of line samples to be taken by the delimited input format, if no other
-     * value is specified for the data source.
-     *
-     * @deprecated use {@link OptimizerOptions#DELIMITED_FORMAT_MAX_LINE_SAMPLES} instead
-     */
-    @Deprecated
-    public static final String DELIMITED_FORMAT_MAX_LINE_SAMPLES_KEY =
-            "compiler.delimited-informat.max-line-samples";
-
-    /**
-     * The minimum number of line samples to be taken by the delimited input format, if no other
-     * value is specified for the data source.
-     *
-     * @deprecated use {@link OptimizerOptions#DELIMITED_FORMAT_MIN_LINE_SAMPLES} instead
-     */
-    @Deprecated
-    public static final String DELIMITED_FORMAT_MIN_LINE_SAMPLES_KEY =
-            "compiler.delimited-informat.min-line-samples";
-
-    /**
-     * The maximum length of a single sampled record before the sampling is aborted.
-     *
-     * @deprecated use {@link OptimizerOptions#DELIMITED_FORMAT_MAX_SAMPLE_LEN} instead
-     */
-    @Deprecated
-    public static final String DELIMITED_FORMAT_MAX_SAMPLE_LENGTH_KEY =
-            "compiler.delimited-informat.max-sample-len";
-
-    // ------------------------- JobManager Web Frontend ----------------------
-
-    /**
-     * The port for the runtime monitor web-frontend server.
-     *
-     * @deprecated Use {@link WebOptions#PORT} instead.
-     */
-    @Deprecated public static final String JOB_MANAGER_WEB_PORT_KEY = "jobmanager.web.port";
-
-    /**
-     * Config parameter to override SSL support for the JobManager Web UI.
-     *
-     * @deprecated Use {@link WebOptions#SSL_ENABLED} instead.
-     */
-    @Deprecated
-    public static final String JOB_MANAGER_WEB_SSL_ENABLED = "jobmanager.web.ssl.enabled";
-
-    /**
-     * The config parameter defining the flink web directory to be used by the webmonitor.
-     *
-     * @deprecated Use {@link WebOptions#TMP_DIR} instead.
-     */
-    @Deprecated public static final String JOB_MANAGER_WEB_TMPDIR_KEY = "jobmanager.web.tmpdir";
-
-    /**
-     * The config parameter defining the directory for uploading the job jars. If not specified a
-     * dynamic directory will be used under the directory specified by JOB_MANAGER_WEB_TMPDIR_KEY.
-     *
-     * @deprecated Use {@link WebOptions#UPLOAD_DIR} instead.
-     */
-    @Deprecated
-    public static final String JOB_MANAGER_WEB_UPLOAD_DIR_KEY = "jobmanager.web.upload.dir";
-
-    /**
-     * The config parameter defining the number of archived jobs for the jobmanager.
-     *
-     * @deprecated Use {@link WebOptions#ARCHIVE_COUNT} instead.
-     */
-    @Deprecated public static final String JOB_MANAGER_WEB_ARCHIVE_COUNT = "jobmanager.web.history";
-
-    /**
-     * The log file location (may be in /log for standalone but under log directory when using
-     * YARN).
-     *
-     * @deprecated Use {@link WebOptions#LOG_PATH} instead.
-     */
-    @Deprecated public static final String JOB_MANAGER_WEB_LOG_PATH_KEY = "jobmanager.web.log.path";
-
-    /**
-     * Config parameter indicating whether jobs can be uploaded and run from the web-frontend.
-     *
-     * @deprecated Use {@link WebOptions#SUBMIT_ENABLE} instead.
-     */
-    @Deprecated
-    public static final String JOB_MANAGER_WEB_SUBMIT_ENABLED_KEY = "jobmanager.web.submit.enable";
-
-    /**
-     * Flag to disable checkpoint stats.
-     *
-     * @deprecated Not possible to disable any longer. Use history size of 0.
-     */
-    @Deprecated
-    public static final String JOB_MANAGER_WEB_CHECKPOINTS_DISABLE =
-            "jobmanager.web.checkpoints.disable";
-
-    /**
-     * Config parameter defining the number of checkpoints to remember for recent history.
-     *
-     * @deprecated Use {@link WebOptions#CHECKPOINTS_HISTORY_SIZE} instead.
-     */
-    @Deprecated
-    public static final String JOB_MANAGER_WEB_CHECKPOINTS_HISTORY_SIZE =
-            "jobmanager.web.checkpoints.history";
-
-    /** @deprecated - no longer used. */
-    @Deprecated
-    public static final String JOB_MANAGER_WEB_BACK_PRESSURE_CLEAN_UP_INTERVAL =
-            "jobmanager.web.backpressure.cleanup-interval";
-
-    /** @deprecated - no longer used. */
-    @Deprecated
-    public static final String JOB_MANAGER_WEB_BACK_PRESSURE_REFRESH_INTERVAL =
-            "jobmanager.web.backpressure.refresh-interval";
-
-    /** @deprecated - no longer used. */
-    @Deprecated
-    public static final String JOB_MANAGER_WEB_BACK_PRESSURE_NUM_SAMPLES =
-            "jobmanager.web.backpressure.num-samples";
-
-    /** @deprecated - no longer used. */
-    @Deprecated
-    public static final String JOB_MANAGER_WEB_BACK_PRESSURE_DELAY =
-            "jobmanager.web.backpressure.delay-between-samples";
-
-    // ------------------------------ AKKA ------------------------------------
-
-    /**
-     * Timeout for the startup of the actor system.
-     *
-     * @deprecated Use {@link RpcOptions#STARTUP_TIMEOUT} instead.
-     */
-    @Deprecated public static final String AKKA_STARTUP_TIMEOUT = "akka.startup-timeout";
-
-    /**
-     * Heartbeat interval of the transport failure detector.
-     *
-     * @deprecated Use {@link RpcOptions#TRANSPORT_HEARTBEAT_INTERVAL} instead.
-     */
-    @Deprecated
-    public static final String AKKA_TRANSPORT_HEARTBEAT_INTERVAL =
-            "akka.transport.heartbeat.interval";
-
-    /**
-     * Allowed heartbeat pause for the transport failure detector.
-     *
-     * @deprecated Use {@link RpcOptions#TRANSPORT_HEARTBEAT_PAUSE} instead.
-     */
-    @Deprecated
-    public static final String AKKA_TRANSPORT_HEARTBEAT_PAUSE = "akka.transport.heartbeat.pause";
-
-    /**
-     * Detection threshold of transport failure detector.
-     *
-     * @deprecated Use {@link RpcOptions#TRANSPORT_THRESHOLD} instead.
-     */
-    @Deprecated public static final String AKKA_TRANSPORT_THRESHOLD = "akka.transport.threshold";
-
-    /**
-     * Heartbeat interval of watch failure detector.
-     *
-     * @deprecated This option is no longer used and has no effect on Flink.
-     */
-    @Deprecated
-    public static final String AKKA_WATCH_HEARTBEAT_INTERVAL = "akka.watch.heartbeat.interval";
-
-    /**
-     * Allowed heartbeat pause for the watch failure detector.
-     *
-     * @deprecated This option is no longer used and has no effect on Flink.
-     */
-    @Deprecated
-    public static final String AKKA_WATCH_HEARTBEAT_PAUSE = "akka.watch.heartbeat.pause";
-
-    /**
-     * Detection threshold for the phi accrual watch failure detector.
-     *
-     * @deprecated This option is no longer used and has no effect on Flink.
-     */
-    @Deprecated public static final String AKKA_WATCH_THRESHOLD = "akka.watch.threshold";
-
-    /**
-     * Akka TCP timeout.
-     *
-     * @deprecated Use {@link RpcOptions#TCP_TIMEOUT} instead.
-     */
-    @Deprecated public static final String AKKA_TCP_TIMEOUT = "akka.tcp.timeout";
-
-    /**
-     * Override SSL support for the Akka transport.
-     *
-     * @deprecated Use {@link RpcOptions#SSL_ENABLED} instead.
-     */
-    @Deprecated public static final String AKKA_SSL_ENABLED = "akka.ssl.enabled";
-
-    /**
-     * Maximum framesize of akka messages.
-     *
-     * @deprecated Use {@link RpcOptions#FRAMESIZE} instead.
-     */
-    @Deprecated public static final String AKKA_FRAMESIZE = "akka.framesize";
-
-    /**
-     * Maximum number of messages until another actor is executed by the same thread.
-     *
-     * @deprecated Use {@link RpcOptions#DISPATCHER_THROUGHPUT} instead.
-     */
-    @Deprecated public static final String AKKA_DISPATCHER_THROUGHPUT = "akka.throughput";
-
-    /**
-     * Log lifecycle events.
-     *
-     * @deprecated Use {@link RpcOptions#LOG_LIFECYCLE_EVENTS} instead.
-     */
-    @Deprecated public static final String AKKA_LOG_LIFECYCLE_EVENTS = "akka.log.lifecycle.events";
-
-    /**
-     * Timeout for all blocking calls on the cluster side.
-     *
-     * @deprecated Use {@link RpcOptions#ASK_TIMEOUT_DURATION} instead.
-     */
-    @Deprecated public static final String AKKA_ASK_TIMEOUT = "akka.ask.timeout";
-
-    /**
-     * Timeout for all blocking calls that look up remote actors.
-     *
-     * @deprecated Use {@link RpcOptions#LOOKUP_TIMEOUT_DURATION} instead.
-     */
-    @Deprecated public static final String AKKA_LOOKUP_TIMEOUT = "akka.lookup.timeout";
-
-    /**
-     * Timeout for all blocking calls on the client side.
-     *
-     * @deprecated Use {@code ClientOptions#CLIENT_TIMEOUT} instead.
-     */
-    @Deprecated public static final String AKKA_CLIENT_TIMEOUT = "akka.client.timeout";
-
-    /**
-     * Exit JVM on fatal Akka errors.
-     *
-     * @deprecated Use {@link RpcOptions#JVM_EXIT_ON_FATAL_ERROR} instead.
-     */
-    @Deprecated
-    public static final String AKKA_JVM_EXIT_ON_FATAL_ERROR = "akka.jvm-exit-on-fatal-error";
-
-    // ----------------------------- Transport SSL Settings--------------------
-
-    /** @deprecated use {@link SecurityOptions#SSL_ENABLED} instead */
-    @Deprecated public static final String SECURITY_SSL_ENABLED = "security.ssl.enabled";
-
-    /** @deprecated use {@link SecurityOptions#SSL_KEYSTORE} instead */
-    @Deprecated public static final String SECURITY_SSL_KEYSTORE = "security.ssl.keystore";
-
-    /** @deprecated use {@link SecurityOptions#SSL_KEYSTORE_PASSWORD} instead */
-    @Deprecated
-    public static final String SECURITY_SSL_KEYSTORE_PASSWORD = "security.ssl.keystore-password";
-
-    /** @deprecated use {@link SecurityOptions#SSL_KEY_PASSWORD} instead */
-    @Deprecated public static final String SECURITY_SSL_KEY_PASSWORD = "security.ssl.key-password";
-
-    /** @deprecated use {@link SecurityOptions#SSL_TRUSTSTORE} instead */
-    @Deprecated public static final String SECURITY_SSL_TRUSTSTORE = "security.ssl.truststore";
-
-    /** @deprecated use {@link SecurityOptions#SSL_TRUSTSTORE_PASSWORD} instead */
-    @Deprecated
-    public static final String SECURITY_SSL_TRUSTSTORE_PASSWORD =
-            "security.ssl.truststore-password";
-
-    /** @deprecated use {@link SecurityOptions#SSL_PROTOCOL} instead */
-    @Deprecated public static final String SECURITY_SSL_PROTOCOL = "security.ssl.protocol";
-
-    /** @deprecated use {@link SecurityOptions#SSL_ALGORITHMS} instead */
-    @Deprecated public static final String SECURITY_SSL_ALGORITHMS = "security.ssl.algorithms";
-
-    /** @deprecated use {@link SecurityOptions#SSL_VERIFY_HOSTNAME} instead */
-    @Deprecated
-    public static final String SECURITY_SSL_VERIFY_HOSTNAME = "security.ssl.verify-hostname";
-
-    // ----------------------------- Streaming --------------------------------
-
-    /**
-     * State backend for checkpoints.
-     *
-     * @deprecated Use {@link CheckpointingOptions#STATE_BACKEND} instead.
-     */
-    @Deprecated public static final String STATE_BACKEND = "state.backend";
-
-    // ----------------------------- Miscellaneous ----------------------------
-
-    /**
-     * The key to the Flink base directory path. Was initially used for configurations of the web
-     * UI, but outdated now.
-     *
-     * @deprecated This parameter should not be used any more. A running Flink cluster should make
-     *     no assumption about its location.
-     */
-    @Deprecated public static final String FLINK_BASE_DIR_PATH_KEY = "flink.base.dir.path";
-
-    /** @deprecated Use {@link CoreOptions#FLINK_JVM_OPTIONS} instead. */
-    @Deprecated public static final String FLINK_JVM_OPTIONS = "env.java.opts";
-
-    // --------------------------- High Availability --------------------------
-
-    /** @deprecated Deprecated in favour of {@link HighAvailabilityOptions#HA_MODE} */
-    @PublicEvolving @Deprecated public static final String HA_MODE = "high-availability";
-
-    /** Ports used by the job manager if not in 'none' recovery mode. */
-    @Deprecated
-    public static final String HA_JOB_MANAGER_PORT = "high-availability.jobmanager.port";
-
-    /** @deprecated Deprecated in favour of {@link #HA_MODE}. */
-    @Deprecated public static final String RECOVERY_MODE = "recovery.mode";
-
-    /** @deprecated Deprecated in favour of {@link #HA_JOB_MANAGER_PORT}. */
-    @Deprecated public static final String RECOVERY_JOB_MANAGER_PORT = "recovery.jobmanager.port";
-
-    /** @deprecated This option is no longer used and has no effect on Flink. */
-    @Deprecated public static final String RECOVERY_JOB_DELAY = "recovery.job.delay";
-
-    // --------------------------- ZooKeeper ----------------------------------
-
-    /**
-     * ZooKeeper servers.
-     *
-     * @deprecated in favor of {@link HighAvailabilityOptions#HA_ZOOKEEPER_QUORUM}.
-     */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_QUORUM_KEY = "high-availability.zookeeper.quorum";
-
-    /**
-     * File system state backend base path for recoverable state handles. Recovery state is written
-     * to this path and the file state handles are persisted for recovery.
-     *
-     * @deprecated in favor of {@link HighAvailabilityOptions#HA_STORAGE_PATH}.
-     */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_STORAGE_PATH = "high-availability.zookeeper.storageDir";
-
-    /**
-     * ZooKeeper root path.
-     *
-     * @deprecated in favor of {@link HighAvailabilityOptions#HA_ZOOKEEPER_ROOT}.
-     */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_DIR_KEY = "high-availability.zookeeper.path.root";
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#HA_CLUSTER_ID}. */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_NAMESPACE_KEY =
-            "high-availability.zookeeper.path.namespace";
-
-    /** @deprecated no longer used. */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_LATCH_PATH = "high-availability.zookeeper.path.latch";
-
-    /**
-     * ZooKeeper root path (ZNode) for job graphs.
-     *
-     * @deprecated in favor of {@link HighAvailabilityOptions#HA_ZOOKEEPER_JOBGRAPHS_PATH}.
-     */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_JOBGRAPHS_PATH =
-            "high-availability.zookeeper.path.jobgraphs";
-
-    /** @deprecated no longer used. */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_LEADER_PATH = "high-availability.zookeeper.path.leader";
-
-    /**
-     * ZooKeeper root path (ZNode) for completed checkpoints.
-     *
-     * @deprecated no longer used.
-     */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_CHECKPOINTS_PATH =
-            "high-availability.zookeeper.path.checkpoints";
-
-    /**
-     * ZooKeeper root path (ZNode) for checkpoint counters.
-     *
-     * @deprecated no longer used.
-     */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_CHECKPOINT_COUNTER_PATH =
-            "high-availability.zookeeper.path.checkpoint-counter";
-
-    /** @deprecated has no effect */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_MESOS_WORKERS_PATH =
-            "high-availability.zookeeper.path.mesos-workers";
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#ZOOKEEPER_SESSION_TIMEOUT}. */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_SESSION_TIMEOUT =
-            "high-availability.zookeeper.client.session-timeout";
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#ZOOKEEPER_CONNECTION_TIMEOUT}. */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_CONNECTION_TIMEOUT =
-            "high-availability.zookeeper.client.connection-timeout";
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#ZOOKEEPER_RETRY_WAIT} */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_RETRY_WAIT =
-            "high-availability.zookeeper.client.retry-wait";
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#ZOOKEEPER_MAX_RETRY_ATTEMPTS}. */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_MAX_RETRY_ATTEMPTS =
-            "high-availability.zookeeper.client.max-retry-attempts";
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#ZOOKEEPER_CLIENT_ACL}. */
-    @PublicEvolving @Deprecated
-    public static final String HA_ZOOKEEPER_CLIENT_ACL = "high-availability.zookeeper.client.acl";
-
-    /** @deprecated in favor of {@link SecurityOptions#ZOOKEEPER_SASL_DISABLE}. */
-    @PublicEvolving @Deprecated
-    public static final String ZOOKEEPER_SASL_DISABLE = "zookeeper.sasl.disable";
-
-    /** @deprecated in favor of {@link SecurityOptions#ZOOKEEPER_SASL_SERVICE_NAME}. */
-    @PublicEvolving @Deprecated
-    public static final String ZOOKEEPER_SASL_SERVICE_NAME = "zookeeper.sasl.service-name";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_QUORUM_KEY}. */
-    @Deprecated public static final String ZOOKEEPER_QUORUM_KEY = "recovery.zookeeper.quorum";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_STORAGE_PATH}. */
-    @Deprecated
-    public static final String ZOOKEEPER_RECOVERY_PATH = "recovery.zookeeper.storageDir";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_DIR_KEY}. */
-    @Deprecated public static final String ZOOKEEPER_DIR_KEY = "recovery.zookeeper.path.root";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_NAMESPACE_KEY}. */
-    @Deprecated
-    public static final String ZOOKEEPER_NAMESPACE_KEY = "recovery.zookeeper.path.namespace";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_LATCH_PATH}. */
-    @Deprecated public static final String ZOOKEEPER_LATCH_PATH = "recovery.zookeeper.path.latch";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_LEADER_PATH}. */
-    @Deprecated public static final String ZOOKEEPER_LEADER_PATH = "recovery.zookeeper.path.leader";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_JOBGRAPHS_PATH}. */
-    @Deprecated
-    public static final String ZOOKEEPER_JOBGRAPHS_PATH = "recovery.zookeeper.path.jobgraphs";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_CHECKPOINTS_PATH}. */
-    @Deprecated
-    public static final String ZOOKEEPER_CHECKPOINTS_PATH = "recovery.zookeeper.path.checkpoints";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_CHECKPOINT_COUNTER_PATH}. */
-    @Deprecated
-    public static final String ZOOKEEPER_CHECKPOINT_COUNTER_PATH =
-            "recovery.zookeeper.path.checkpoint-counter";
-
-    /** @deprecated has no effect */
-    @Deprecated
-    public static final String ZOOKEEPER_MESOS_WORKERS_PATH =
-            "recovery.zookeeper.path.mesos-workers";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_SESSION_TIMEOUT}. */
-    @Deprecated
-    public static final String ZOOKEEPER_SESSION_TIMEOUT =
-            "recovery.zookeeper.client.session-timeout";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_CONNECTION_TIMEOUT}. */
-    @Deprecated
-    public static final String ZOOKEEPER_CONNECTION_TIMEOUT =
-            "recovery.zookeeper.client.connection-timeout";
-
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_RETRY_WAIT}. */
-    @Deprecated
-    public static final String ZOOKEEPER_RETRY_WAIT = "recovery.zookeeper.client.retry-wait";
+/**
+ * This class contains all constants for the configuration. That includes the configuration keys and
+ * the default values.
+ */
+@Public
+@SuppressWarnings("unused")
+public final class ConfigConstants {
 
-    /** @deprecated Deprecated in favour of {@link #HA_ZOOKEEPER_MAX_RETRY_ATTEMPTS}. */
-    @Deprecated
-    public static final String ZOOKEEPER_MAX_RETRY_ATTEMPTS =
-            "recovery.zookeeper.client.max-retry-attempts";
+    // ------------------------------------------------------------------------
+    //                            Configuration Keys
+    // ------------------------------------------------------------------------
 
     // ---------------------------- Metrics -----------------------------------
 
-    /** @deprecated Use {@link MetricOptions#REPORTERS_LIST} instead. */
-    @Deprecated public static final String METRICS_REPORTERS_LIST = "metrics.reporters";
-
     /**
      * The prefix for per-metric reporter configs. Has to be combined with a reporter name and the
      * configs mentioned below.
@@ -1130,614 +48,20 @@ public final class ConfigConstants {
      */
     public static final String TRACES_REPORTER_PREFIX = "traces.reporter.";
 
-    /** @deprecated use {@link MetricOptions#REPORTER_CLASS} */
-    @Deprecated public static final String METRICS_REPORTER_CLASS_SUFFIX = "class";
-
-    /** @deprecated use {@link MetricOptions#REPORTER_FACTORY_CLASS} */
-    @Deprecated public static final String METRICS_REPORTER_FACTORY_CLASS_SUFFIX = "factory.class";
-
-    /** @deprecated use {@link MetricOptions#REPORTER_INTERVAL} */
-    @Deprecated public static final String METRICS_REPORTER_INTERVAL_SUFFIX = "interval";
-
-    /** @deprecated use {@link MetricOptions#REPORTER_SCOPE_DELIMITER} */
-    @Deprecated public static final String METRICS_REPORTER_SCOPE_DELIMITER = "scope.delimiter";
-
-    /** @deprecated use {@link MetricOptions#REPORTER_EXCLUDED_VARIABLES} */
-    @Deprecated
-    public static final String METRICS_REPORTER_EXCLUDED_VARIABLES = "scope.variables.excludes";
-
-    /** @deprecated use {@link MetricOptions#REPORTER_ADDITIONAL_VARIABLES} */
-    @Deprecated
-    public static final String METRICS_REPORTER_ADDITIONAL_VARIABLES = "scope.variables.additional";
-
-    /** @deprecated Use {@link MetricOptions#SCOPE_DELIMITER} instead. */
-    @Deprecated public static final String METRICS_SCOPE_DELIMITER = "metrics.scope.delimiter";
-
-    /** @deprecated Use {@link MetricOptions#SCOPE_NAMING_JM} instead. */
-    @Deprecated public static final String METRICS_SCOPE_NAMING_JM = "metrics.scope.jm";
-
-    /** @deprecated Use {@link MetricOptions#SCOPE_NAMING_TM} instead. */
-    @Deprecated public static final String METRICS_SCOPE_NAMING_TM = "metrics.scope.tm";
-
-    /** @deprecated Use {@link MetricOptions#SCOPE_NAMING_JM_JOB} instead. */
-    @Deprecated public static final String METRICS_SCOPE_NAMING_JM_JOB = "metrics.scope.jm.job";
-
-    /** @deprecated Use {@link MetricOptions#SCOPE_NAMING_TM_JOB} instead. */
-    @Deprecated public static final String METRICS_SCOPE_NAMING_TM_JOB = "metrics.scope.tm.job";
-
-    /** @deprecated Use {@link MetricOptions#SCOPE_NAMING_TASK} instead. */
-    @Deprecated public static final String METRICS_SCOPE_NAMING_TASK = "metrics.scope.task";
-
-    /** @deprecated Use {@link MetricOptions#SCOPE_NAMING_OPERATOR} instead. */
-    @Deprecated public static final String METRICS_SCOPE_NAMING_OPERATOR = "metrics.scope.operator";
-
-    /** @deprecated Use {@link MetricOptions#LATENCY_HISTORY_SIZE} instead. */
-    @Deprecated
-    public static final String METRICS_LATENCY_HISTORY_SIZE = "metrics.latency.history-size";
-
-    // ---------------------------- Checkpoints -------------------------------
-
-    /**
-     * The default directory for savepoints.
-     *
-     * @deprecated Use {@link CheckpointingOptions#SAVEPOINT_DIRECTORY} instead.
-     */
-    @PublicEvolving @Deprecated
-    public static final String SAVEPOINT_DIRECTORY_KEY = "state.savepoints.dir";
-
-    /**
-     * The default directory used for persistent checkpoints.
-     *
-     * @deprecated Use {@link CheckpointingOptions#CHECKPOINTS_DIRECTORY} instead.
-     */
-    @PublicEvolving @Deprecated
-    public static final String CHECKPOINTS_DIRECTORY_KEY = "state.checkpoints.dir";
-
-    /**
-     * @deprecated This key was used in Flink versions <= 1.1.X with the savepoint backend
-     *     configuration. We now always use the FileSystem for savepoints. For this, the only
-     *     relevant config key is {@link CheckpointingOptions#SAVEPOINT_DIRECTORY}.
-     */
-    @Deprecated
-    public static final String SAVEPOINT_FS_DIRECTORY_KEY = "savepoints.state.backend.fs.dir";
-
     // ------------------------------------------------------------------------
     //                            Default Values
     // ------------------------------------------------------------------------
 
-    // ---------------------------- Parallelism -------------------------------
-
-    /**
-     * The default parallelism for operations.
-     *
-     * @deprecated use {@link CoreOptions#DEFAULT_PARALLELISM} instead
-     */
-    @Deprecated public static final int DEFAULT_PARALLELISM = 1;
-
-    /** The default number of execution retries. */
-    @Deprecated public static final int DEFAULT_EXECUTION_RETRIES = 0;
-
-    // ------------------------------ Runtime ---------------------------------
-
-    /**
-     * The default library cache manager cleanup interval in seconds.
-     *
-     * @deprecated use {@link BlobServerOptions#CLEANUP_INTERVAL} instead
-     */
-    @Deprecated
-    public static final long DEFAULT_LIBRARY_CACHE_MANAGER_CLEANUP_INTERVAL =
-            BlobServerOptions.CLEANUP_INTERVAL.defaultValue();
-
-    /** @deprecated use {@link JobManagerOptions#PORT} instead */
-    @Deprecated public static final int DEFAULT_JOB_MANAGER_IPC_PORT = 6123;
-
-    /**
-     * The default network port of the resource manager.
-     *
-     * @deprecated Use {@link ResourceManagerOptions#IPC_PORT} instead.
-     */
-    @Deprecated public static final int DEFAULT_RESOURCE_MANAGER_IPC_PORT = 0;
-
-    /** @deprecated use {@link BlobServerOptions#SSL_ENABLED} instead */
-    @Deprecated public static final boolean DEFAULT_BLOB_SERVICE_SSL_ENABLED = true;
-
-    /** @deprecated use {@link BlobServerOptions#FETCH_RETRIES} instead */
-    @Deprecated public static final int DEFAULT_BLOB_FETCH_RETRIES = 5;
-
-    /** @deprecated use {@link BlobServerOptions#FETCH_CONCURRENT} instead */
-    @Deprecated public static final int DEFAULT_BLOB_FETCH_CONCURRENT = 50;
-
-    /** @deprecated use {@link BlobServerOptions#FETCH_BACKLOG} instead */
-    @Deprecated public static final int DEFAULT_BLOB_FETCH_BACKLOG = 1000;
-
-    /** @deprecated use {@link BlobServerOptions#PORT} instead */
-    @Deprecated public static final String DEFAULT_BLOB_SERVER_PORT = "0";
-
-    /** @deprecated use {@link TaskManagerOptions#RPC_PORT} instead */
-    @Deprecated public static final int DEFAULT_TASK_MANAGER_IPC_PORT = 0;
-
-    /**
-     * The default network port the task manager expects to receive transfer envelopes on. The
-     * {@code 0} means that the TaskManager searches for a free port.
-     *
-     * @deprecated use {@link NettyShuffleEnvironmentOptions#DATA_PORT} instead
-     */
-    @Deprecated public static final int DEFAULT_TASK_MANAGER_DATA_PORT = 0;
-
-    /**
-     * The default value to override ssl support for task manager's data transport.
-     *
-     * @deprecated use {@link NettyShuffleEnvironmentOptions#DATA_SSL_ENABLED} instead
-     */
-    @Deprecated public static final boolean DEFAULT_TASK_MANAGER_DATA_SSL_ENABLED = true;
-
-    /**
-     * The default directory for temporary files of the task manager.
-     *
-     * @deprecated {@link CoreOptions#TMP_DIRS} provides the default value now
-     */
-    @Deprecated
-    public static final String DEFAULT_TASK_MANAGER_TMP_PATH = System.getProperty("java.io.tmpdir");
-
-    /** @deprecated has no effect */
-    @Deprecated public static final float DEFAULT_MEMORY_MANAGER_MEMORY_FRACTION = 0.7f;
-
-    /**
-     * Config key has been deprecated. Therefore, no default value required.
-     *
-     * @deprecated {@link NettyShuffleEnvironmentOptions#NETWORK_NUM_BUFFERS} provides the default
-     *     value now
-     */
-    @Deprecated public static final int DEFAULT_TASK_MANAGER_NETWORK_NUM_BUFFERS = 2048;
-
-    /**
-     * Config key has been deprecated. Therefore, no default value required.
-     *
-     * @deprecated {@link TaskManagerOptions#MEMORY_SEGMENT_SIZE} provides the default value now
-     */
-    @Deprecated public static final int DEFAULT_TASK_MANAGER_MEMORY_SEGMENT_SIZE = 32768;
-
-    /** @deprecated Not used anymore */
-    @Deprecated public static final String DEFAULT_TASK_MANAGER_NETWORK_DEFAULT_IO_MODE = "sync";
-
-    /**
-     * Flag indicating whether to start a thread, which repeatedly logs the memory usage of the JVM.
-     *
-     * @deprecated use {@link TaskManagerOptions#DEBUG_MEMORY_LOG} instead
-     */
-    @Deprecated
-    public static final boolean DEFAULT_TASK_MANAGER_DEBUG_MEMORY_USAGE_START_LOG_THREAD = false;
-
-    /**
-     * The interval (in ms) for the log thread to log the current memory usage.
-     *
-     * @deprecated use {@link TaskManagerOptions#DEBUG_MEMORY_USAGE_LOG_INTERVAL_MS} instead
-     */
-    @Deprecated
-    public static final long DEFAULT_TASK_MANAGER_DEBUG_MEMORY_USAGE_LOG_INTERVAL_MS = 5000L;
-
-    /**
-     * The default task manager's maximum registration duration.
-     *
-     * @deprecated use {@link TaskManagerOptions#REGISTRATION_TIMEOUT} instead
-     */
-    @Deprecated public static final String DEFAULT_TASK_MANAGER_MAX_REGISTRATION_DURATION = "Inf";
-
-    /**
-     * The default task manager's initial registration pause.
-     *
-     * @deprecated use {@link ClusterOptions#INITIAL_REGISTRATION_TIMEOUT} instead
-     */
-    @Deprecated
-    public static final String DEFAULT_TASK_MANAGER_INITIAL_REGISTRATION_PAUSE = "500 ms";
-
-    /**
-     * The default task manager's maximum registration pause.
-     *
-     * @deprecated use {@link ClusterOptions#MAX_REGISTRATION_TIMEOUT} instead
-     */
-    @Deprecated public static final String DEFAULT_TASK_MANAGER_MAX_REGISTRATION_PAUSE = "30 s";
-
-    /**
-     * The default task manager's refused registration pause.
-     *
-     * @deprecated use {@link ClusterOptions#REFUSED_REGISTRATION_DELAY} instead
-     */
-    @Deprecated public static final String DEFAULT_TASK_MANAGER_REFUSED_REGISTRATION_PAUSE = "10 s";
-
-    /** @deprecated Please use {@link TaskManagerOptions#TASK_CANCELLATION_INTERVAL}. */
-    @Deprecated public static final long DEFAULT_TASK_CANCELLATION_INTERVAL_MILLIS = 30000;
-
-    // ------------------------ Runtime Algorithms ------------------------
-
-    /** @deprecated use {@link AlgorithmOptions#HASH_JOIN_BLOOM_FILTERS} instead */
-    @Deprecated public static final boolean DEFAULT_RUNTIME_HASH_JOIN_BLOOM_FILTERS = false;
-
-    /** @deprecated use {@link AlgorithmOptions#SPILLING_MAX_FAN} insstead */
-    @Deprecated public static final int DEFAULT_SPILLING_MAX_FAN = 128;
-
-    /** @deprecated use {@link AlgorithmOptions#SORT_SPILLING_THRESHOLD} instead */
-    @Deprecated public static final float DEFAULT_SORT_SPILLING_THRESHOLD = 0.8f;
-
-    /**
-     * The default timeout for filesystem stream opening: infinite (means max long milliseconds).
-     */
-    @Deprecated public static final int DEFAULT_FS_STREAM_OPENING_TIMEOUT = 0;
-
-    /**
-     * Whether to use the LargeRecordHandler when spilling.
-     *
-     * @deprecated use {@link AlgorithmOptions#USE_LARGE_RECORDS_HANDLER} instead
-     */
-    @Deprecated public static final boolean DEFAULT_USE_LARGE_RECORD_HANDLER = false;
-
     // ------ Common Resource Framework Configuration (YARN & Mesos) ------
 
-    /**
-     * Minimum amount of memory to subtract from the process memory to get the TaskManager heap
-     * size. We came up with these values experimentally.
-     *
-     * @deprecated Not used anymore, but remain here until Flink 2.0
-     */
-    @Deprecated public static final int DEFAULT_YARN_HEAP_CUTOFF = 600;
-
-    /**
-     * Relative amount of memory to subtract from Java process memory to get the TaskManager heap
-     * size.
-     *
-     * @deprecated Not used anymore, but remain here until Flink 2.0
-     */
-    @Deprecated public static final float DEFAULT_YARN_HEAP_CUTOFF_RATIO = 0.25f;
-
     /** Start command template for Flink on YARN containers. */
     public static final String DEFAULT_YARN_CONTAINER_START_COMMAND_TEMPLATE =
             "%java% %jvmmem% %jvmopts% %logging% %class% %args% %redirects%";
 
-    /**
-     * Default port for the application master is 0, which means the operating system assigns an
-     * ephemeral port.
-     *
-     * @deprecated in favor of {@code YarnConfigOptions#APPLICATION_MASTER_PORT}.
-     */
-    @Deprecated public static final String DEFAULT_YARN_JOB_MANAGER_PORT = "0";
-
-    // ------ Mesos-Specific Configuration ------
-    // For more configuration entries please see {@code MesosTaskManagerParameters}.
-
-    /** @deprecated has no effect */
-    @Deprecated public static final int DEFAULT_MESOS_FAILOVER_TIMEOUT_SECS = 10 * 60;
-
-    /** @deprecated has no effect */
-    @Deprecated public static final int DEFAULT_MESOS_ARTIFACT_SERVER_PORT = 0;
-
-    /** @deprecated has no effect */
-    @Deprecated public static final String DEFAULT_MESOS_RESOURCEMANAGER_FRAMEWORK_NAME = "Flink";
-
-    /** @deprecated has no effect */
-    @Deprecated public static final String DEFAULT_MESOS_RESOURCEMANAGER_FRAMEWORK_ROLE = "*";
-
-    /** @deprecated has no effect */
-    @Deprecated public static final String DEFAULT_MESOS_RESOURCEMANAGER_FRAMEWORK_USER = "";
-
-    /** @deprecated has no effect */
-    @Deprecated public static final boolean DEFAULT_MESOS_ARTIFACT_SERVER_SSL_ENABLED = true;
-
-    // ------------------------ File System Behavior ------------------------
-
-    /**
-     * The default filesystem to be used, if no other scheme is specified in the user-provided URI
-     * (= local filesystem).
-     */
-    @Deprecated public static final String DEFAULT_FILESYSTEM_SCHEME = "file:///";
-
-    /** The default behavior with respect to overwriting existing files (= not overwrite). */
-    @Deprecated public static final boolean DEFAULT_FILESYSTEM_OVERWRITE = false;
-
-    /**
-     * The default behavior for output directory creating (create only directory when parallelism
-     * &gt; 1).
-     *
-     * @deprecated Use {@link CoreOptions#FILESYSTEM_OUTPUT_ALWAYS_CREATE_DIRECTORY} instead.
-     */
-    @Deprecated public static final boolean DEFAULT_FILESYSTEM_ALWAYS_CREATE_DIRECTORY = false;
-
-    // ---------------------------- Compiler -------------------------------
-
-    /**
-     * The default maximum number of line samples taken by the delimited input format.
-     *
-     * @deprecated use {@link OptimizerOptions#DELIMITED_FORMAT_MAX_LINE_SAMPLES} instead
-     */
-    @Deprecated public static final int DEFAULT_DELIMITED_FORMAT_MAX_LINE_SAMPLES = 10;
-
-    /**
-     * The default minimum number of line samples taken by the delimited input format.
-     *
-     * @deprecated use {@link OptimizerOptions#DELIMITED_FORMAT_MIN_LINE_SAMPLES} instead
-     */
-    @Deprecated public static final int DEFAULT_DELIMITED_FORMAT_MIN_LINE_SAMPLES = 2;
-
-    /**
-     * The default maximum sample length before sampling is aborted (2 MiBytes).
-     *
-     * @deprecated use {@link OptimizerOptions#DELIMITED_FORMAT_MAX_SAMPLE_LEN} instead
-     */
-    @Deprecated public static final int DEFAULT_DELIMITED_FORMAT_MAX_SAMPLE_LEN = 2 * 1024 * 1024;
-
-    // ------------------------- JobManager Web Frontend ----------------------
-
-    /**
-     * The config key for the address of the JobManager web frontend.
-     *
-     * @deprecated use {@link WebOptions#ADDRESS} instead
-     */
-    @Deprecated
-    public static final ConfigOption<String> DEFAULT_JOB_MANAGER_WEB_FRONTEND_ADDRESS =
-            key("jobmanager.web.address").stringType().noDefaultValue();
-
-    /**
-     * The config key for the port of the JobManager web frontend. Setting this value to {@code -1}
-     * disables the web frontend.
-     *
-     * @deprecated use {@link WebOptions#PORT} instead
-     */
-    @Deprecated public static final int DEFAULT_JOB_MANAGER_WEB_FRONTEND_PORT = 8081;
-
-    /**
-     * Default value to override SSL support for the JobManager web UI.
-     *
-     * @deprecated use {@link WebOptions#SSL_ENABLED} instead
-     */
-    @Deprecated public static final boolean DEFAULT_JOB_MANAGER_WEB_SSL_ENABLED = true;
-
-    /**
-     * The default number of archived jobs for the jobmanager.
-     *
-     * @deprecated use {@link WebOptions#ARCHIVE_COUNT} instead
-     */
-    @Deprecated public static final int DEFAULT_JOB_MANAGER_WEB_ARCHIVE_COUNT = 5;
-
-    /**
-     * By default, submitting jobs from the web-frontend is allowed.
-     *
-     * @deprecated use {@link WebOptions#SUBMIT_ENABLE} instead
-     */
-    @Deprecated public static final boolean DEFAULT_JOB_MANAGER_WEB_SUBMIT_ENABLED = true;
-
-    /** @deprecated Config key has been deprecated. Therefore, no default value required. */
-    @Deprecated public static final boolean DEFAULT_JOB_MANAGER_WEB_CHECKPOINTS_DISABLE = false;
-
-    /**
-     * Default number of checkpoints to remember for recent history.
-     *
-     * @deprecated use {@link WebOptions#CHECKPOINTS_HISTORY_SIZE} instead
-     */
-    @Deprecated public static final int DEFAULT_JOB_MANAGER_WEB_CHECKPOINTS_HISTORY_SIZE = 10;
-
-    /**
-     * Time after which cached stats are cleaned up.
-     *
-     * @deprecated use {@link WebOptions#BACKPRESSURE_CLEANUP_INTERVAL} instead
-     */
-    @Deprecated
-    public static final int DEFAULT_JOB_MANAGER_WEB_BACK_PRESSURE_CLEAN_UP_INTERVAL =
-            10 * 60 * 1000;
-
-    /**
-     * Time after which available stats are deprecated and need to be refreshed (by resampling).
-     *
-     * @deprecated use {@link WebOptions#BACKPRESSURE_REFRESH_INTERVAL} instead
-     */
-    @Deprecated
-    public static final int DEFAULT_JOB_MANAGER_WEB_BACK_PRESSURE_REFRESH_INTERVAL = 60 * 1000;
-
-    /**
-     * Number of samples to take to determine back pressure.
-     *
-     * @deprecated use {@link WebOptions#BACKPRESSURE_NUM_SAMPLES} instead
-     */
-    @Deprecated public static final int DEFAULT_JOB_MANAGER_WEB_BACK_PRESSURE_NUM_SAMPLES = 100;
-
-    /**
-     * Delay between samples to determine back pressure.
-     *
-     * @deprecated use {@link WebOptions#BACKPRESSURE_DELAY} instead
-     */
-    @Deprecated public static final int DEFAULT_JOB_MANAGER_WEB_BACK_PRESSURE_DELAY = 50;
-
-    // ------------------------------ Akka Values ------------------------------
-
-    /** @deprecated Use {@link RpcOptions#TRANSPORT_HEARTBEAT_INTERVAL} instead. */
-    @Deprecated public static final String DEFAULT_AKKA_TRANSPORT_HEARTBEAT_INTERVAL = "1000 s";
-
-    /** @deprecated Use {@link RpcOptions#TRANSPORT_HEARTBEAT_PAUSE} instead. */
-    @Deprecated public static final String DEFAULT_AKKA_TRANSPORT_HEARTBEAT_PAUSE = "6000 s";
-
-    /** @deprecated Use {@link RpcOptions#TRANSPORT_THRESHOLD} instead. */
-    @Deprecated public static final double DEFAULT_AKKA_TRANSPORT_THRESHOLD = 300.0;
-
-    /** @deprecated This default value is no longer used and has no effect on Flink. */
-    @Deprecated public static final double DEFAULT_AKKA_WATCH_THRESHOLD = 12;
-
-    /** @deprecated Use {@link RpcOptions#DISPATCHER_THROUGHPUT} instead. */
-    @Deprecated public static final int DEFAULT_AKKA_DISPATCHER_THROUGHPUT = 15;
-
-    /** @deprecated Use {@link RpcOptions#LOG_LIFECYCLE_EVENTS} instead. */
-    @Deprecated public static final boolean DEFAULT_AKKA_LOG_LIFECYCLE_EVENTS = false;
-
-    /** @deprecated Use {@link RpcOptions#FRAMESIZE} instead. */
-    @Deprecated public static final String DEFAULT_AKKA_FRAMESIZE = "10485760b";
-
-    /** @deprecated Use {@link RpcOptions#ASK_TIMEOUT_DURATION} instead. */
-    @Deprecated public static final String DEFAULT_AKKA_ASK_TIMEOUT = "10 s";
-
-    /** @deprecated Use {@link RpcOptions#LOOKUP_TIMEOUT_DURATION} instead. */
-    @Deprecated public static final String DEFAULT_AKKA_LOOKUP_TIMEOUT = "10 s";
-
-    /** @deprecated Use {@code ClientOptions#CLIENT_TIMEOUT} instead. */
-    @Deprecated public static final String DEFAULT_AKKA_CLIENT_TIMEOUT = "60 s";
-
-    /** @deprecated Use {@link RpcOptions#SSL_ENABLED} instead. */
-    @Deprecated public static final boolean DEFAULT_AKKA_SSL_ENABLED = true;
-
-    // ----------------------------- SSL Values --------------------------------
-
-    /** @deprecated use {@link SecurityOptions#SSL_ENABLED} instead */
-    @Deprecated public static final boolean DEFAULT_SECURITY_SSL_ENABLED = false;
-
-    /** @deprecated use {@link SecurityOptions#SSL_PROTOCOL} instead */
-    @Deprecated public static final String DEFAULT_SECURITY_SSL_PROTOCOL = "TLSv1.2";
-
-    /** @deprecated use {@link SecurityOptions#SSL_ALGORITHMS} instead */
-    @Deprecated
-    public static final String DEFAULT_SECURITY_SSL_ALGORITHMS = "TLS_RSA_WITH_AES_128_CBC_SHA";
-
-    /** @deprecated use {@link SecurityOptions#SSL_VERIFY_HOSTNAME} instead */
-    @Deprecated public static final boolean DEFAULT_SECURITY_SSL_VERIFY_HOSTNAME = true;
-
-    // ----------------------------- Streaming Values --------------------------
-
-    @Deprecated public static final String DEFAULT_STATE_BACKEND = "jobmanager";
-
     // ----------------------------- LocalExecution ----------------------------
 
-    /**
-     * Sets the number of local task managers.
-     *
-     * @deprecated use {@link TaskManagerOptions#MINI_CLUSTER_NUM_TASK_MANAGERS} instead
-     */
-    @Deprecated public static final String LOCAL_NUMBER_TASK_MANAGER = "local.number-taskmanager";
-
     public static final int DEFAULT_LOCAL_NUMBER_TASK_MANAGER = 1;
 
-    @Deprecated public static final String LOCAL_NUMBER_JOB_MANAGER = "local.number-jobmanager";
-
-    @Deprecated public static final int DEFAULT_LOCAL_NUMBER_JOB_MANAGER = 1;
-
-    /** @deprecated Use {@link ResourceManagerOptions#LOCAL_NUMBER_RESOURCE_MANAGER} instead. */
-    @Deprecated
-    public static final String LOCAL_NUMBER_RESOURCE_MANAGER = "local.number-resourcemanager";
-
-    /** @deprecated Use {@link ResourceManagerOptions#LOCAL_NUMBER_RESOURCE_MANAGER} instead. */
-    @Deprecated public static final int DEFAULT_LOCAL_NUMBER_RESOURCE_MANAGER = 1;
-
-    /** @deprecated Has no effect; the web-server is always started. Will be removed in 2.0. */
-    @Deprecated public static final String LOCAL_START_WEBSERVER = "local.start-webserver";
-
-    // --------------------------- High Availability ---------------------------------
-
-    /** @deprecated Deprecated in favour of {@link HighAvailabilityOptions#HA_MODE} */
-    @PublicEvolving @Deprecated public static final String DEFAULT_HA_MODE = "none";
-
-    /** @deprecated Deprecated in favour of {@link #DEFAULT_HA_MODE} */
-    @Deprecated public static final String DEFAULT_RECOVERY_MODE = "standalone";
-
-    /**
-     * Default port used by the job manager if not in standalone recovery mode. If <code>0</code>
-     * the OS picks a random port port.
-     *
-     * @deprecated No longer used.
-     */
-    @PublicEvolving @Deprecated public static final String DEFAULT_HA_JOB_MANAGER_PORT = "0";
-
-    /** @deprecated Deprecated in favour of {@link #DEFAULT_HA_JOB_MANAGER_PORT} */
-    @Deprecated public static final String DEFAULT_RECOVERY_JOB_MANAGER_PORT = "0";
-
-    // --------------------------- ZooKeeper ----------------------------------
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#HA_ZOOKEEPER_ROOT}. */
-    @Deprecated public static final String DEFAULT_ZOOKEEPER_DIR_KEY = "/flink";
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#HA_CLUSTER_ID}. */
-    @Deprecated public static final String DEFAULT_ZOOKEEPER_NAMESPACE_KEY = "/default";
-
-    /** @deprecated no longer used. */
-    @Deprecated public static final String DEFAULT_ZOOKEEPER_LATCH_PATH = "/leaderlatch";
-
-    /** @deprecated no longer used. */
-    @Deprecated public static final String DEFAULT_ZOOKEEPER_LEADER_PATH = "/leader";
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#HA_ZOOKEEPER_JOBGRAPHS_PATH}. */
-    @Deprecated public static final String DEFAULT_ZOOKEEPER_JOBGRAPHS_PATH = "/jobgraphs";
-
-    /** @deprecated no longer used. */
-    @Deprecated public static final String DEFAULT_ZOOKEEPER_CHECKPOINTS_PATH = "/checkpoints";
-
-    /** @deprecated no longer used. */
-    @Deprecated
-    public static final String DEFAULT_ZOOKEEPER_CHECKPOINT_COUNTER_PATH = "/checkpoint-counter";
-
-    /** @deprecated has no effect */
-    @Deprecated public static final String DEFAULT_ZOOKEEPER_MESOS_WORKERS_PATH = "/mesos-workers";
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#ZOOKEEPER_SESSION_TIMEOUT}. */
-    @Deprecated public static final int DEFAULT_ZOOKEEPER_SESSION_TIMEOUT = 60000;
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#ZOOKEEPER_CONNECTION_TIMEOUT}. */
-    @Deprecated public static final int DEFAULT_ZOOKEEPER_CONNECTION_TIMEOUT = 15000;
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#ZOOKEEPER_RETRY_WAIT}. */
-    @Deprecated public static final int DEFAULT_ZOOKEEPER_RETRY_WAIT = 5000;
-
-    /** @deprecated in favor of {@link HighAvailabilityOptions#ZOOKEEPER_MAX_RETRY_ATTEMPTS}. */
-    @Deprecated public static final int DEFAULT_ZOOKEEPER_MAX_RETRY_ATTEMPTS = 3;
-
-    // - Defaults for required ZooKeeper configuration keys -------------------
-
-    /**
-     * ZooKeeper default client port.
-     *
-     * @deprecated in favor of {@code FlinkZookeeperQuorumPeer#DEFAULT_ZOOKEEPER_CLIENT_PORT}.
-     */
-    @Deprecated public static final int DEFAULT_ZOOKEEPER_CLIENT_PORT = 2181;
-
-    /**
-     * ZooKeeper default init limit.
-     *
-     * @deprecated in favor of {@code FlinkZookeeperQuorumPeer#DEFAULT_ZOOKEEPER_INIT_LIMIT}.
-     */
-    @Deprecated public static final int DEFAULT_ZOOKEEPER_INIT_LIMIT = 10;
-
-    /**
-     * ZooKeeper default sync limit.
-     *
-     * @deprecated in favor of {@code FlinkZookeeperQuorumPeer#DEFAULT_ZOOKEEPER_SYNC_LIMIT}.
-     */
-    @Deprecated public static final int DEFAULT_ZOOKEEPER_SYNC_LIMIT = 5;
-
-    /**
-     * ZooKeeper default peer port.
-     *
-     * @deprecated in favor of {@code FlinkZookeeperQuorumPeer#DEFAULT_ZOOKEEPER_PEER_PORT}.
-     */
-    @Deprecated public static final int DEFAULT_ZOOKEEPER_PEER_PORT = 2888;
-
-    /**
-     * ZooKeeper default leader port.
-     *
-     * @deprecated in favor of {@code FlinkZookeeperQuorumPeer#DEFAULT_ZOOKEEPER_LEADER_PORT}.
-     */
-    @Deprecated public static final int DEFAULT_ZOOKEEPER_LEADER_PORT = 3888;
-
-    /**
-     * Defaults for ZK client security.
-     *
-     * @deprecated in favor of {@link SecurityOptions#ZOOKEEPER_SASL_DISABLE}.
-     */
-    @Deprecated public static final boolean DEFAULT_ZOOKEEPER_SASL_DISABLE = true;
-
-    /**
-     * ACL options supported "creator" or "open".
-     *
-     * @deprecated in favor of {@link HighAvailabilityOptions#ZOOKEEPER_CLIENT_ACL}.
-     */
-    @Deprecated public static final String DEFAULT_HA_ZOOKEEPER_CLIENT_ACL = "open";
-
-    // ----------------------------- Metrics ----------------------------
-
-    /** @deprecated Use {@link MetricOptions#LATENCY_HISTORY_SIZE} instead. */
-    @Deprecated public static final int DEFAULT_METRICS_LATENCY_HISTORY_SIZE = 128;
-
     // ----------------------------- Environment Variables ----------------------------
 
     /** The environment variable name which contains the location of the configuration directory. */
@@ -1768,9 +92,6 @@ public final class ConfigConstants {
      */
     public static final String DEFAULT_FLINK_PLUGINS_DIRS = "plugins";
 
-    /** The environment variable name which contains the location of the bin directory. */
-    @Deprecated public static final String ENV_FLINK_BIN_DIR = "FLINK_BIN_DIR";
-
     /** The environment variable name which contains the Flink installation root directory. */
     public static final String ENV_FLINK_HOME_DIR = "FLINK_HOME";
 
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/RestOptions.java b/flink-core/src/main/java/org/apache/flink/configuration/RestOptions.java
index b4e93f7ec6c..a6785ff6f58 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/RestOptions.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/RestOptions.java
@@ -41,8 +41,7 @@ public class RestOptions {
                     .stringType()
                     .noDefaultValue()
                     .withFallbackKeys(WebOptions.ADDRESS.key())
-                    .withDeprecatedKeys(
-                            ConfigConstants.DEFAULT_JOB_MANAGER_WEB_FRONTEND_ADDRESS.key())
+                    .withDeprecatedKeys("jobmanager.web.address")
                     .withDescription("The address that the server binds itself.");
 
     /** The port range that the server could bind itself to. */
@@ -52,8 +51,7 @@ public class RestOptions {
                     .stringType()
                     .defaultValue("8081")
                     .withFallbackKeys(REST_PORT_KEY)
-                    .withDeprecatedKeys(
-                            WebOptions.PORT.key(), ConfigConstants.JOB_MANAGER_WEB_PORT_KEY)
+                    .withDeprecatedKeys(WebOptions.PORT.key(), "jobmanager.web.port")
                     .withDescription(
                             "The port that the server binds itself. Accepts a list of ports (“50100,50101”), ranges"
                                     + " (“50100-50200”) or a combination of both. It is recommended to set a range of ports to avoid"
diff --git a/flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/util/HadoopUtils.java b/flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/util/HadoopUtils.java
index 40fdffcee50..e59027cae90 100644
--- a/flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/util/HadoopUtils.java
+++ b/flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/util/HadoopUtils.java
@@ -19,7 +19,6 @@
 package org.apache.flink.runtime.util;
 
 import org.apache.flink.api.java.tuple.Tuple2;
-import org.apache.flink.configuration.ConfigConstants;
 import org.apache.flink.util.FlinkRuntimeException;
 import org.apache.flink.util.Preconditions;
 
@@ -81,35 +80,7 @@ public class HadoopUtils {
             }
         }
 
-        // Approach 2: Flink configuration (deprecated)
-        final String hdfsDefaultPath =
-                flinkConfiguration.getString(ConfigConstants.HDFS_DEFAULT_CONFIG, null);
-        if (hdfsDefaultPath != null) {
-            result.addResource(new org.apache.hadoop.fs.Path(hdfsDefaultPath));
-            LOG.debug(
-                    "Using hdfs-default configuration-file path from Flink config: {}",
-                    hdfsDefaultPath);
-            foundHadoopConfiguration = true;
-        }
-
-        final String hdfsSitePath =
-                flinkConfiguration.getString(ConfigConstants.HDFS_SITE_CONFIG, null);
-        if (hdfsSitePath != null) {
-            result.addResource(new org.apache.hadoop.fs.Path(hdfsSitePath));
-            LOG.debug(
-                    "Using hdfs-site configuration-file path from Flink config: {}", hdfsSitePath);
-            foundHadoopConfiguration = true;
-        }
-
-        final String hadoopConfigPath =
-                flinkConfiguration.getString(ConfigConstants.PATH_HADOOP_CONFIG, null);
-        if (hadoopConfigPath != null) {
-            LOG.debug("Searching Hadoop configuration files in Flink config: {}", hadoopConfigPath);
-            foundHadoopConfiguration =
-                    addHadoopConfIfFound(result, hadoopConfigPath) || foundHadoopConfiguration;
-        }
-
-        // Approach 3: HADOOP_CONF_DIR environment variable
+        // Approach 2: HADOOP_CONF_DIR environment variable
         String hadoopConfDir = System.getenv("HADOOP_CONF_DIR");
         if (hadoopConfDir != null) {
             LOG.debug("Searching Hadoop configuration files in HADOOP_CONF_DIR: {}", hadoopConfDir);
@@ -117,7 +88,7 @@ public class HadoopUtils {
                     addHadoopConfIfFound(result, hadoopConfDir) || foundHadoopConfiguration;
         }
 
-        // Approach 4: Flink configuration
+        // Approach 3: Flink configuration
         // add all configuration key with prefix 'flink.hadoop.' in flink conf to hadoop conf
         for (String key : flinkConfiguration.keySet()) {
             for (String prefix : FLINK_CONFIG_PREFIXES) {
diff --git a/flink-filesystems/flink-hadoop-fs/src/test/java/org/apache/flink/runtime/fs/hdfs/HadoopConfigLoadingTest.java b/flink-filesystems/flink-hadoop-fs/src/test/java/org/apache/flink/runtime/fs/hdfs/HadoopConfigLoadingTest.java
index fdced3fa00f..78c3a8b0c33 100644
--- a/flink-filesystems/flink-hadoop-fs/src/test/java/org/apache/flink/runtime/fs/hdfs/HadoopConfigLoadingTest.java
+++ b/flink-filesystems/flink-hadoop-fs/src/test/java/org/apache/flink/runtime/fs/hdfs/HadoopConfigLoadingTest.java
@@ -18,7 +18,6 @@
 
 package org.apache.flink.runtime.fs.hdfs;
 
-import org.apache.flink.configuration.ConfigConstants;
 import org.apache.flink.configuration.Configuration;
 import org.apache.flink.core.testutils.CommonTestUtils;
 import org.apache.flink.runtime.util.HadoopUtils;
@@ -53,61 +52,6 @@ class HadoopConfigLoadingTest {
         assertThat(hadoopConf.get(IN_CP_CONFIG_KEY, null)).isEqualTo(IN_CP_CONFIG_VALUE);
     }
 
-    @Test
-    void loadFromLegacyConfigEntries(@TempDir File tempFolder) throws Exception {
-        final String k1 = "shipmate";
-        final String v1 = "smooth sailing";
-
-        final String k2 = "pirate";
-        final String v2 = "Arrg, yer scurvy dog!";
-
-        final File file1 = new File(tempFolder, "core-site.xml");
-        final File file2 = new File(tempFolder, "hdfs-site.xml");
-
-        printConfig(file1, k1, v1);
-        printConfig(file2, k2, v2);
-
-        final Configuration cfg = new Configuration();
-        cfg.setString(ConfigConstants.HDFS_DEFAULT_CONFIG, file1.getAbsolutePath());
-        cfg.setString(ConfigConstants.HDFS_SITE_CONFIG, file2.getAbsolutePath());
-
-        org.apache.hadoop.conf.Configuration hadoopConf = HadoopUtils.getHadoopConfiguration(cfg);
-
-        // contains extra entries
-        assertThat(hadoopConf.get(k1, null)).isEqualTo(v1);
-        assertThat(hadoopConf.get(k2, null)).isEqualTo(v2);
-
-        // also contains classpath defaults
-        assertThat(hadoopConf.get(IN_CP_CONFIG_KEY, null)).isEqualTo(IN_CP_CONFIG_VALUE);
-    }
-
-    @Test
-    void loadFromHadoopConfEntry(@TempDir File confDir) throws Exception {
-        final String k1 = "singing?";
-        final String v1 = "rain!";
-
-        final String k2 = "dancing?";
-        final String v2 = "shower!";
-
-        final File file1 = new File(confDir, "core-site.xml");
-        final File file2 = new File(confDir, "hdfs-site.xml");
-
-        printConfig(file1, k1, v1);
-        printConfig(file2, k2, v2);
-
-        final Configuration cfg = new Configuration();
-        cfg.setString(ConfigConstants.PATH_HADOOP_CONFIG, confDir.getAbsolutePath());
-
-        org.apache.hadoop.conf.Configuration hadoopConf = HadoopUtils.getHadoopConfiguration(cfg);
-
-        // contains extra entries
-        assertThat(hadoopConf.get(k1, null)).isEqualTo(v1);
-        assertThat(hadoopConf.get(k2, null)).isEqualTo(v2);
-
-        // also contains classpath defaults
-        assertThat(hadoopConf.get(IN_CP_CONFIG_KEY, null)).isEqualTo(IN_CP_CONFIG_VALUE);
-    }
-
     @Test
     void loadFromEnvVariables(@TempDir File hadoopConfDir, @TempDir File hadoopHome)
             throws Exception {
@@ -183,8 +127,8 @@ class HadoopConfigLoadingTest {
         final String k5 = "key5";
 
         final String v1 = "from HADOOP_CONF_DIR";
-        final String v2 = "from Flink config `fs.hdfs.hadoopconf`";
-        final String v3 = "from Flink config `fs.hdfs.hdfsdefault`";
+        final String v2 = "from HADOOP_HOME/etc/hadoop";
+        final String v3 = "from HADOOP_HOME/etc/hadoop";
         final String v4 = "from HADOOP_HOME/etc/hadoop";
         final String v5 = "from HADOOP_HOME/conf";
 
@@ -230,8 +174,6 @@ class HadoopConfigLoadingTest {
         printConfigs(file5, properties5);
 
         final Configuration cfg = new Configuration();
-        cfg.setString(ConfigConstants.PATH_HADOOP_CONFIG, hadoopConfEntryDir.getAbsolutePath());
-        cfg.setString(ConfigConstants.HDFS_DEFAULT_CONFIG, file3.getAbsolutePath());
 
         final org.apache.hadoop.conf.Configuration hadoopConf;
 
diff --git a/flink-optimizer/src/main/java/org/apache/flink/optimizer/plantranslate/JobGraphGenerator.java b/flink-optimizer/src/main/java/org/apache/flink/optimizer/plantranslate/JobGraphGenerator.java
index 87c8bdd8f18..da19a3f209e 100644
--- a/flink-optimizer/src/main/java/org/apache/flink/optimizer/plantranslate/JobGraphGenerator.java
+++ b/flink-optimizer/src/main/java/org/apache/flink/optimizer/plantranslate/JobGraphGenerator.java
@@ -32,7 +32,6 @@ import org.apache.flink.api.common.operators.util.UserCodeWrapper;
 import org.apache.flink.api.common.typeutils.TypeSerializerFactory;
 import org.apache.flink.api.java.io.BlockingShuffleOutputFormat;
 import org.apache.flink.configuration.AlgorithmOptions;
-import org.apache.flink.configuration.ConfigConstants;
 import org.apache.flink.configuration.Configuration;
 import org.apache.flink.configuration.GlobalConfiguration;
 import org.apache.flink.configuration.JobManagerOptions;
@@ -105,6 +104,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.stream.Collectors;
 
+import static org.apache.flink.configuration.AlgorithmOptions.USE_LARGE_RECORDS_HANDLER;
 import static org.apache.flink.util.Preconditions.checkState;
 
 /**
@@ -170,16 +170,13 @@ public class JobGraphGenerator implements Visitor<PlanNode> {
     public JobGraphGenerator() {
         this.defaultMaxFan = AlgorithmOptions.SPILLING_MAX_FAN.defaultValue();
         this.defaultSortSpillingThreshold = AlgorithmOptions.SORT_SPILLING_THRESHOLD.defaultValue();
-        this.useLargeRecordHandler = ConfigConstants.DEFAULT_USE_LARGE_RECORD_HANDLER;
+        this.useLargeRecordHandler = USE_LARGE_RECORDS_HANDLER.defaultValue();
     }
 
     public JobGraphGenerator(Configuration config) {
         this.defaultMaxFan = config.get(AlgorithmOptions.SPILLING_MAX_FAN);
         this.defaultSortSpillingThreshold = config.get(AlgorithmOptions.SORT_SPILLING_THRESHOLD);
-        this.useLargeRecordHandler =
-                config.getBoolean(
-                        ConfigConstants.USE_LARGE_RECORD_HANDLER_KEY,
-                        ConfigConstants.DEFAULT_USE_LARGE_RECORD_HANDLER);
+        this.useLargeRecordHandler = config.get(USE_LARGE_RECORDS_HANDLER);
     }
 
     /**
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/jobmanager/HighAvailabilityMode.java b/flink-runtime/src/main/java/org/apache/flink/runtime/jobmanager/HighAvailabilityMode.java
index 466ed60f4ef..9123b140e34 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/jobmanager/HighAvailabilityMode.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/jobmanager/HighAvailabilityMode.java
@@ -18,7 +18,6 @@
 
 package org.apache.flink.runtime.jobmanager;
 
-import org.apache.flink.configuration.ConfigConstants;
 import org.apache.flink.configuration.Configuration;
 import org.apache.flink.configuration.HighAvailabilityOptions;
 
@@ -55,7 +54,7 @@ public enum HighAvailabilityMode {
 
         if (haMode == null) {
             return HighAvailabilityMode.NONE;
-        } else if (haMode.equalsIgnoreCase(ConfigConstants.DEFAULT_RECOVERY_MODE)) {
+        } else if (haMode.equalsIgnoreCase("standalone")) {
             // Map old default to new default
             return HighAvailabilityMode.NONE;
         } else {
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/ExternalSorterBuilder.java b/flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/ExternalSorterBuilder.java
index 81a4e7f5a39..84fcda93fb3 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/ExternalSorterBuilder.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/ExternalSorterBuilder.java
@@ -23,7 +23,6 @@ import org.apache.flink.api.common.functions.GroupCombineFunction;
 import org.apache.flink.api.common.typeutils.TypeComparator;
 import org.apache.flink.api.common.typeutils.TypeSerializer;
 import org.apache.flink.configuration.AlgorithmOptions;
-import org.apache.flink.configuration.ConfigConstants;
 import org.apache.flink.configuration.Configuration;
 import org.apache.flink.core.memory.MemorySegment;
 import org.apache.flink.runtime.io.disk.iomanager.IOManager;
@@ -42,6 +41,7 @@ import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
 
+import static org.apache.flink.configuration.AlgorithmOptions.USE_LARGE_RECORDS_HANDLER;
 import static org.apache.flink.util.Preconditions.checkNotNull;
 
 /**
@@ -75,7 +75,7 @@ public final class ExternalSorterBuilder<T> {
     private InMemorySorterFactory<T> inMemorySorterFactory;
     private int maxNumFileHandles = AlgorithmOptions.SPILLING_MAX_FAN.defaultValue();
     private boolean objectReuseEnabled = false;
-    private boolean handleLargeRecords = ConfigConstants.DEFAULT_USE_LARGE_RECORD_HANDLER;
+    private boolean handleLargeRecords = USE_LARGE_RECORDS_HANDLER.defaultValue();
     private double memoryFraction = 1.0;
     private int numSortBuffers = -1;
     private double startSpillingFraction = AlgorithmOptions.SORT_SPILLING_THRESHOLD.defaultValue();
diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/jobmanager/HighAvailabilityModeTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/jobmanager/HighAvailabilityModeTest.java
index c5288ab3149..cbec0c718ed 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/jobmanager/HighAvailabilityModeTest.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/jobmanager/HighAvailabilityModeTest.java
@@ -18,13 +18,12 @@
 
 package org.apache.flink.runtime.jobmanager;
 
-import org.apache.flink.configuration.ConfigConstants;
 import org.apache.flink.configuration.Configuration;
-import org.apache.flink.configuration.HighAvailabilityOptions;
 import org.apache.flink.util.TestLogger;
 
 import org.junit.Test;
 
+import static org.apache.flink.configuration.HighAvailabilityOptions.HA_MODE;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 
@@ -33,7 +32,7 @@ public class HighAvailabilityModeTest extends TestLogger {
 
     // Default HA mode
     private static final HighAvailabilityMode DEFAULT_HA_MODE =
-            HighAvailabilityMode.valueOf(ConfigConstants.DEFAULT_HA_MODE.toUpperCase());
+            HighAvailabilityMode.valueOf(HA_MODE.defaultValue());
 
     /** Tests HA mode configuration. */
     @Test
@@ -44,13 +43,11 @@ public class HighAvailabilityModeTest extends TestLogger {
         assertEquals(DEFAULT_HA_MODE, HighAvailabilityMode.fromConfig(config));
 
         // Check not equals default
-        config.set(
-                HighAvailabilityOptions.HA_MODE,
-                HighAvailabilityMode.ZOOKEEPER.name().toLowerCase());
+        config.set(HA_MODE, HighAvailabilityMode.ZOOKEEPER.name().toLowerCase());
         assertEquals(HighAvailabilityMode.ZOOKEEPER, HighAvailabilityMode.fromConfig(config));
 
         // Check factory class
-        config.set(HighAvailabilityOptions.HA_MODE, "factory.class.FQN");
+        config.set(HA_MODE, "factory.class.FQN");
         assertEquals(HighAvailabilityMode.FACTORY_CLASS, HighAvailabilityMode.fromConfig(config));
     }
 
@@ -60,7 +57,7 @@ public class HighAvailabilityModeTest extends TestLogger {
         Configuration config = new Configuration();
 
         // Check mapping of old default to new default
-        config.setString("recovery.mode", ConfigConstants.DEFAULT_RECOVERY_MODE);
+        config.setString("recovery.mode", "standalone");
         assertEquals(DEFAULT_HA_MODE, HighAvailabilityMode.fromConfig(config));
 
         // Check deprecated config
@@ -68,7 +65,7 @@ public class HighAvailabilityModeTest extends TestLogger {
         assertEquals(HighAvailabilityMode.ZOOKEEPER, HighAvailabilityMode.fromConfig(config));
 
         // Check precedence over deprecated config
-        config.set(HighAvailabilityOptions.HA_MODE, HighAvailabilityMode.NONE.name().toLowerCase());
+        config.set(HA_MODE, HighAvailabilityMode.NONE.name().toLowerCase());
         config.setString("recovery.mode", HighAvailabilityMode.ZOOKEEPER.name().toLowerCase());
 
         assertEquals(HighAvailabilityMode.NONE, HighAvailabilityMode.fromConfig(config));
diff --git a/flink-yarn/src/main/java/org/apache/flink/yarn/entrypoint/YarnEntrypointUtils.java b/flink-yarn/src/main/java/org/apache/flink/yarn/entrypoint/YarnEntrypointUtils.java
index 0480b13814e..e0b1e642080 100644
--- a/flink-yarn/src/main/java/org/apache/flink/yarn/entrypoint/YarnEntrypointUtils.java
+++ b/flink-yarn/src/main/java/org/apache/flink/yarn/entrypoint/YarnEntrypointUtils.java
@@ -18,11 +18,9 @@
 
 package org.apache.flink.yarn.entrypoint;
 
-import org.apache.flink.configuration.ConfigConstants;
 import org.apache.flink.configuration.Configuration;
 import org.apache.flink.configuration.GlobalConfiguration;
 import org.apache.flink.configuration.JobManagerOptions;
-import org.apache.flink.configuration.ResourceManagerOptions;
 import org.apache.flink.configuration.RestOptions;
 import org.apache.flink.configuration.SecurityOptions;
 import org.apache.flink.configuration.WebOptions;
@@ -77,20 +75,6 @@ public class YarnEntrypointUtils {
             configuration.set(RestOptions.BIND_PORT, "0");
         }
 
-        // if the user has set the deprecated YARN-specific config keys, we add the
-        // corresponding generic config keys instead. that way, later code needs not
-        // deal with deprecated config keys
-
-        BootstrapTools.substituteDeprecatedConfigPrefix(
-                configuration,
-                ConfigConstants.YARN_APPLICATION_MASTER_ENV_PREFIX,
-                ResourceManagerOptions.CONTAINERIZED_MASTER_ENV_PREFIX);
-
-        BootstrapTools.substituteDeprecatedConfigPrefix(
-                configuration,
-                ConfigConstants.YARN_TASK_MANAGER_ENV_PREFIX,
-                ResourceManagerOptions.CONTAINERIZED_TASK_MANAGER_ENV_PREFIX);
-
         final String keytabPath =
                 Utils.resolveKeytabPath(
                         workingDirectory, env.get(YarnConfigKeys.LOCAL_KEYTAB_PATH));
diff --git a/flink-yarn/src/test/java/org/apache/flink/yarn/YarnFileStageTestS3ITCase.java b/flink-yarn/src/test/java/org/apache/flink/yarn/YarnFileStageTestS3ITCase.java
index d323e35aeb4..1486d2e3f9f 100644
--- a/flink-yarn/src/test/java/org/apache/flink/yarn/YarnFileStageTestS3ITCase.java
+++ b/flink-yarn/src/test/java/org/apache/flink/yarn/YarnFileStageTestS3ITCase.java
@@ -18,7 +18,6 @@
 
 package org.apache.flink.yarn;
 
-import org.apache.flink.configuration.ConfigConstants;
 import org.apache.flink.configuration.Configuration;
 import org.apache.flink.configuration.CoreOptions;
 import org.apache.flink.core.fs.FileSystem;
@@ -108,7 +107,6 @@ class YarnFileStageTestS3ITCase {
         }
 
         final Configuration conf = new Configuration();
-        conf.setString(ConfigConstants.HDFS_SITE_CONFIG, hadoopConfig.getAbsolutePath());
         conf.set(CoreOptions.ALLOWED_FALLBACK_FILESYSTEMS, "s3;s3a;s3n");
 
         FileSystem.initialize(conf, null);