From 0f6ba5e031b93b6a812038edbfa8658a40a5365f Mon Sep 17 00:00:00 2001 From: Masatake Iwasaki Date: Fri, 12 Mar 2021 10:26:46 +0900 Subject: [PATCH] HADOOP-17514. Remove trace subcommand from hadoop CLI. (#2680) --- hadoop-common-project/hadoop-common/src/main/bin/hadoop | 4 ---- .../hadoop-common/src/main/bin/hadoop.cmd | 7 +------ .../hadoop-common/src/site/markdown/CommandsManual.md | 4 ---- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop b/hadoop-common-project/hadoop-common/src/main/bin/hadoop index 7f46e7e2ab..abf3573986 100755 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop @@ -44,7 +44,6 @@ function hadoop_usage hadoop_add_subcommand "kerbname" client "show auth_to_local principal conversion" hadoop_add_subcommand "key" client "manage keys via the KeyProvider" hadoop_add_subcommand "registrydns" daemon "run the registry DNS server" - hadoop_add_subcommand "trace" client "view and modify Hadoop tracing settings" hadoop_add_subcommand "version" client "print the version" hadoop_add_subcommand "kdiag" client "Diagnose Kerberos Problems" hadoop_add_subcommand "rbfbalance" client "move directories and files across router-based federation namespaces" @@ -166,9 +165,6 @@ function hadoopcmd_case HADOOP_SECURE_CLASSNAME='org.apache.hadoop.registry.server.dns.PrivilegedRegistryDNSStarter' HADOOP_CLASSNAME='org.apache.hadoop.registry.server.dns.RegistryDNSServer' ;; - trace) - HADOOP_CLASSNAME=org.apache.hadoop.tracing.TraceAdmin - ;; version) HADOOP_CLASSNAME=org.apache.hadoop.util.VersionInfo ;; diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd b/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd index 04e5039d19..ed25183a9e 100644 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd @@ -149,7 +149,7 @@ call :updatepath %HADOOP_BIN_PATH% exit /b ) - set corecommands=fs version jar checknative conftest distch distcp daemonlog archive classpath credential kerbname key trace kdiag + set corecommands=fs version jar checknative conftest distch distcp daemonlog archive classpath credential kerbname key kdiag for %%i in ( %corecommands% ) do ( if %hadoop-command% == %%i set corecommand=true ) @@ -244,10 +244,6 @@ call :updatepath %HADOOP_BIN_PATH% set CLASS=org.apache.hadoop.crypto.key.KeyShell goto :eof -:trace - set CLASS=org.apache.hadoop.tracing.TraceAdmin - goto :eof - :updatepath set path_to_add=%* set current_path_comparable=%path% @@ -318,7 +314,6 @@ call :updatepath %HADOOP_BIN_PATH% @echo kerbname show auth_to_local principal conversion @echo kdiag diagnose kerberos problems @echo key manage keys via the KeyProvider - @echo trace view and modify Hadoop tracing settings @echo daemonlog get/set the log level for each daemon @echo or @echo CLASSNAME run the class named CLASSNAME diff --git a/hadoop-common-project/hadoop-common/src/site/markdown/CommandsManual.md b/hadoop-common-project/hadoop-common/src/site/markdown/CommandsManual.md index 4842d5b86d..59a73ba7b4 100644 --- a/hadoop-common-project/hadoop-common/src/site/markdown/CommandsManual.md +++ b/hadoop-common-project/hadoop-common/src/site/markdown/CommandsManual.md @@ -240,10 +240,6 @@ Usage: `hadoop kms` Run KMS, the Key Management Server. -### `trace` - -View and modify Hadoop tracing settings. See the [Tracing Guide](./Tracing.html). - ### `version` Usage: `hadoop version`