Skip to content

HADOOP-17514. Remove trace subcommand from hadoop CLI. #2680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions hadoop-common-project/hadoop-common/src/main/bin/hadoop
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
;;
Expand Down
7 changes: 1 addition & 6 deletions hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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%
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down