hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoyu Yao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-14969) Improve diagnostics in secure DataNode startup
Date Thu, 25 Jan 2018 23:38:00 GMT

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

Xiaoyu Yao commented on HADOOP-14969:
-------------------------------------

Thanks [~ajayydv] for working on this. Patch v4 looks good to me, just two minor issue:

Datanode.java

Line 1482: can we add a LOG.info("Privileged Resources = {},  saslPropsResolver = {}", haveResources,
haveSaslProps) for troubleshooting?

Line 1505:  should be "and SSL for HTTP"


> Improve diagnostics in secure DataNode startup
> ----------------------------------------------
>
>                 Key: HADOOP-14969
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14969
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Ajay Kumar
>            Assignee: Ajay Kumar
>            Priority: Major
>         Attachments: HADOOP-14969.001.patch, HADOOP-14969.002.patch, HADOOP-14969.003.patch,
HADOOP-14969.004.patch
>
>
> When DN secure mode configuration is incorrect, it throws the following exception from
Datanode#checkSecureConfig
> {code}
>   private static void checkSecureConfig(DNConf dnConf, Configuration conf,
>       SecureResources resources) throws RuntimeException {
>     if (!UserGroupInformation.isSecurityEnabled()) {
>       return;
>     }
> ...
>     throw new RuntimeException("Cannot start secure DataNode without " +
>       "configuring either privileged resources or SASL RPC data transfer " +
>       "protection and SSL for HTTP.  Using privileged resources in " +
>       "combination with SASL RPC data transfer protection is not supported.");
> {code}
> The DN should print more useful diagnostics as to what exactly what went wrong.
> Also when starting secure DN with resources then the startup scripts should launch the
SecureDataNodeStarter class. If no SASL is configured and SecureDataNodeStarter is not used,
then we could mention that too.



--
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