hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "genericqa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-14212) Expose SecurityEnabled boolean field in JMX for other services besides NameNode
Date Mon, 23 Jul 2018 13:23:00 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-14212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16552846#comment-16552846
] 

genericqa commented on HADOOP-14212:
------------------------------------

| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m  0s{color} | {color:blue}
Docker mode activated. {color} |
| {color:red}-1{color} | {color:red} patch {color} | {color:red}  0m  5s{color} | {color:red}
HADOOP-14212 does not apply to trunk. Rebase required? Wrong Branch? See https://wiki.apache.org/hadoop/HowToContribute
for help. {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | HADOOP-14212 |
| JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12932700/HADOOP-14212.005.patch
|
| Console output | https://builds.apache.org/job/PreCommit-HADOOP-Build/14930/console |
| Powered by | Apache Yetus 0.8.0-SNAPSHOT   http://yetus.apache.org |


This message was automatically generated.



> Expose SecurityEnabled boolean field in JMX for other services besides NameNode
> -------------------------------------------------------------------------------
>
>                 Key: HADOOP-14212
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14212
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Ray Burgemeestre
>            Assignee: Adam Antal
>            Priority: Minor
>              Labels: newbie, security
>         Attachments: HADOOP-14212.001.patch, HADOOP-14212.002.patch, HADOOP-14212.003.patch,
HADOOP-14212.004.patch, HADOOP-14212.005.patch, HADOOP-14212.005.patch
>
>
> The following commit https://github.com/apache/hadoop/commit/dc17bda4b677e30c02c2a9a053895a43e41f7a12
introduced a "SecurityEnabled" field in the JMX output for the NameNode. I believe it would
be nice to add this same change to the JMX output of other services: Secondary Namenode, ResourceManager,
NodeManagers, DataNodes, etc. So that it can be queried whether Security is enabled in all
JMX resources.
> The reason I am suggesting this feature / improvement is that I think it  would provide
a clean way to check whether your cluster is completely Kerberized or not. I don't think there
is an easy/clean way to do this now, other than checking the logs, checking ports etc.? 
> The file where the change was made is hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java
has the following function now:
> {code:java}
> @Override // NameNodeStatusMXBean
> public boolean isSecurityEnabled() {
>     return UserGroupInformation.isSecurityEnabled();
> }
> {code}
> I would be happy to develop a patch if it seems useful by others as well?
> This is a snippet from the JMX output from the NameNode in case security is not enabled:
> {code}
>   {
>     "name" : "Hadoop:service=NameNode,name=NameNodeStatus",
>     "modelerType" : "org.apache.hadoop.hdfs.server.namenode.NameNode",
>     "NNRole" : "NameNode",
>     "HostAndPort" : "node001.cm.cluster:8020",
>     "SecurityEnabled" : false,
>     "LastHATransitionTime" : 0,
>     "State" : "standby"
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message