HDFS-16236. Example command for daemonlog is not correct (#3476)

This commit is contained in:
Renukaprasad C 2021-09-25 16:02:52 +05:30 committed by GitHub
parent 5f9321a5d4
commit 4c516536be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ By default, the command sends a HTTP request, but this can be overridden by usin
Example: Example:
$ bin/hadoop daemonlog -setlevel 127.0.0.1:9870 org.apache.hadoop.hdfs.server.namenode.NameNode DEBUG $ bin/hadoop daemonlog -setlevel 127.0.0.1:9870 org.apache.hadoop.hdfs.server.namenode.NameNode DEBUG
$ bin/hadoop daemonlog -getlevel 127.0.0.1:9871 org.apache.hadoop.hdfs.server.namenode.NameNode DEBUG -protocol https $ bin/hadoop daemonlog -getlevel 127.0.0.1:9871 org.apache.hadoop.hdfs.server.namenode.NameNode -protocol https
Note that the setting is not permanent and will be reset when the daemon is restarted. Note that the setting is not permanent and will be reset when the daemon is restarted.
This command works by sending a HTTP/HTTPS request to the daemon's internal Jetty servlet, so it supports the following daemons: This command works by sending a HTTP/HTTPS request to the daemon's internal Jetty servlet, so it supports the following daemons: