You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Sunil G (JIRA)" <ji...@apache.org> on 2018/05/01 04:56:00 UTC
[jira] [Commented] (YARN-8236) Invalid kerberos principal file name
cause NPE in native service
[ https://issues.apache.org/jira/browse/YARN-8236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16459447#comment-16459447 ]
Sunil G commented on YARN-8236:
-------------------------------
Thanks [~shanekumpf@gmail.com]
Its interesting
{code:java}
"kerberos_principal" : {
"principal_name" : "ambari-qa@EXAMPLE.COM",
"keytab" : "/etc/security/keytabs/smokeuser.headless.keytab"
}
{code}
I missed giving "file://" prefix to keytab. After giving the same, its working. However i still thinks, we should not get an NPE on same error condition.
Seems like the line in {{ServiceClient.addKeytabResourceIfSecure}} *switch (keytabURI.getScheme())* is causing the NPE.
> Invalid kerberos principal file name cause NPE in native service
> ----------------------------------------------------------------
>
> Key: YARN-8236
> URL: https://issues.apache.org/jira/browse/YARN-8236
> Project: Hadoop YARN
> Issue Type: Bug
> Components: yarn-native-services
> Affects Versions: 3.1.0
> Reporter: Sunil G
> Priority: Major
>
> Stack trace
>
> {code:java}
> 2018-04-29 16:22:54,266 WARN webapp.GenericExceptionHandler (GenericExceptionHandler.java:toResponse(98)) - INTERNAL_SERVER_ERROR
> java.lang.NullPointerException
> at org.apache.hadoop.yarn.service.client.ServiceClient.addKeytabResourceIfSecure(ServiceClient.java:994)
> at org.apache.hadoop.yarn.service.client.ServiceClient.submitApp(ServiceClient.java:685)
> at org.apache.hadoop.yarn.service.client.ServiceClient.actionCreate(ServiceClient.java:269){code}
> cc [~gsaha] [~csingh]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org