[
https://issues.apache.org/jira/browse/YARN-8236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16459447#comment-16459447
]
Sunil G edited comment on YARN-8236 at 5/1/18 4:55 AM:
-------------------------------------------------------
Thanks [[email protected]]
Its interesting
{code:java}
"kerberos_principal" : {
"principal_name" : "[email protected]",
"keytab" : "/etc/security/keytabs/smokeuser.headless.keytab"
}
{code}
I missed giving "file://" prefix to keytab. After giving the same, its working.
However i still think, we should not get an NPE on same error condition.
Seems like the line in {{ServiceClient.addKeytabResourceIfSecure}} *switch
(keytabURI.getScheme())* is causing the NPE.
was (Author: sunilg):
Thanks [[email protected]]
Its interesting
{code:java}
"kerberos_principal" : {
"principal_name" : "[email protected]",
"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: [email protected]
For additional commands, e-mail: [email protected]