[
https://issues.apache.org/jira/browse/HDFS-5040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16092500#comment-16092500
]
Brahma Reddy Battula commented on HDFS-5040:
--------------------------------------------
[~kshukla] thanks for working on this. As of now, following are admin commands,
please correct me if I miss anything.
bq.The following commands do not tie to a call in FSNameSystem directly as of
today and I am looking for some suggestions on if and which ones of these would
need to be covered as part of this change.
Some commands are directly from NameNodeRpcServer(listed below),I feel those
also can be handled as part of this jira and DN commands we might need discuss
further and handle in seperate jira..?
||command||Already Handled || Need to Handle|| Reamarks||
| {noformat}[-report [-live] [-dead] [-decommissioning] [-enteringmaintenance]
[-inmaintenance]]{noformat} |NO|YES|FSNamesystem#datanodeReport|
|{noformat}[-safemode <enter | leave | get | wait>]{noformat}|NO|YES|
|{noformat}[-saveNamespace [-beforeShutdown]]{noformat}|NO|YES|
|{noformat}[-rollEdits]{noformat}|NO|YES|
|{noformat}[-restoreFailedStorage true|false|check]{noformat}|NO|YES|
|{noformat}[-refreshNodes]{noformat}|NO|YES|
|{noformat}[-setQuota <quota>
<dirname>...<dirname>]{noformat}|YES|YES|Need to differentiate for each quota
command|
|{noformat}[-clrQuota <dirname>...<dirname>]{noformat}|YES|YES|Need to
differentiate for each quota command|
|{noformat}[-setSpaceQuota <quota> [-storageType <storagetype>]
<dirname>...<dirname>]{noformat}|YES|YES|Need to differentiate for each quota
command|
|{noformat}[-clrSpaceQuota [-storageType <storagetype>]
<dirname>...<dirname>]{noformat}|YES|YES|Need to differentiate for each quota
command|
|{noformat}[-finalizeUpgrade]{noformat}|NO|YES|
|{noformat}[-rollingUpgrade
[<query|prepare|finalize>]]{noformat}|NO|YES|
|{noformat}[-refreshServiceAcl]{noformat}|NO|YES|NameNodeRpcServer#refreshServiceAcl|
|{noformat}[-refreshUserToGroupsMappings]{noformat}|NO|YES|NameNodeRpcServer#refreshUserToGroupsMappings|
|{noformat}[-refreshSuperUserGroupsConfiguration]{noformat}|NO|YES|NameNodeRpcServer#refreshSuperUserGroupsConfiguration|
|{noformat}[-refreshCallQueue]{noformat}|NO|YES|NameNodeRpcServer#refreshCallQueue|
|{noformat}[-refresh <host:ipc_port> <key>
[arg1..argn]{noformat}|NO|YES|NameNodeRpcServer#refresh |
|{noformat}[-reconfig <namenode|datanode> <host:ipc_port>
<start|status|properties>]{noformat}|NO|YES| namenode call part can be
NameNodeRpcServer#startReconfiguration,getReconfigurationStatus,listReconfigurableProperties|
|{noformat}[-printTopology]{noformat}|NO|YES|Covered as part of report|
|{noformat}[-refreshNamenodes datanode_host:ipc_port]{noformat}|NO|DN
Cmd|
|{noformat}[-getVolumeReport datanode_host:ipc_port]{noformat}|NO|DN
Cmd|
|{noformat}[-deleteBlockPool datanode_host:ipc_port blockpoolId
[force]]{noformat}|NO|DN Cmd|
|{noformat}[-setBalancerBandwidth <bandwidth in bytes per
second>]{noformat}|NO|YES|
|{noformat}[-getBalancerBandwidth
<datanode_host:ipc_port>]{noformat}|NO|DN Cmd|
|{noformat}[-fetchImage <local directory>]{noformat}|NO|NA|
|{noformat}[-allowSnapshot <snapshotDir>]{noformat}|YES|NO|
|{noformat}[-disallowSnapshot <snapshotDir>]{noformat}|YES|NO|
|{noformat}[-shutdownDatanode <datanode_host:ipc_port>
[upgrade]]{noformat}|NO|DN Cmd|
|{noformat}[-evictWriters <datanode_host:ipc_port>]{noformat}|NO|DN|
|{noformat}[-getDatanodeInfo <datanode_host:ipc_port>]{noformat}|NO|DN
Cmd|
|{noformat}[-metasave filename]{noformat}|NO|YES|
|{noformat}[-triggerBlockReport [-incremental]
<datanode_host:ipc_port>]{noformat}|NO|DN Cmd|
|{noformat}[-listOpenFiles]{noformat}|YES|NO|
|{noformat}[-help [cmd]]{noformat}|NO|NA|
> Audit log for admin commands/ logging output of all DFS admin commands
> ----------------------------------------------------------------------
>
> Key: HDFS-5040
> URL: https://issues.apache.org/jira/browse/HDFS-5040
> Project: Hadoop HDFS
> Issue Type: New Feature
> Components: namenode
> Affects Versions: 3.0.0-alpha1
> Reporter: Raghu C Doppalapudi
> Assignee: Kuhu Shukla
> Labels: BB2015-05-TBR
> Attachments: HDFS-5040.001.patch, HDFS-5040.patch, HDFS-5040.patch,
> HDFS-5040.patch
>
>
> enable audit log for all the admin commands/also provide ability to log all
> the admin commands in separate log file, at this point all the logging is
> displayed on the console.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]