You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/07/31 20:59:00 UTC

[jira] [Commented] (AMBARI-24383) A NPE occurs if a Kerberos identity descriptor is missing a Keytab specification

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

Hudson commented on AMBARI-24383:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #9707 (See [https://builds.apache.org/job/Ambari-trunk-Commit/9707/])
AMBARI-24383. A NPE occurs if a Kerberos identity descriptor is missing (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=4348275a08d036a9b1cded285b685ae6e4ee7c3c])
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/KerberosHelperImpl.java


> A NPE occurs if a Kerberos identity descriptor is missing a Keytab specification
> --------------------------------------------------------------------------------
>
>                 Key: AMBARI-24383
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24383
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.7.1
>            Reporter: Denis Tarasyuk
>            Assignee: Dmitry Lysnichenko
>            Priority: Major
>              Labels: kerberos, pull-request-available
>             Fix For: 2.7.1
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> A NPE occurs if a Kerberos identity descriptor is missing a Keytab specification.  For example, if the Kerberos identity descriptor is as follows:
> {code}
> {
>   "name": "druid",
>   "principal": {
>     "value": "druid_124@${realm}",
>     "type": "user"
>   }
> }
> {code}
> {noformat:title=Log Message}
> 2018-07-30 12:58:33,332  WARN [Server Action Executor Worker 265] ServerActionExecutor:471 - Task #265 failed to complete execution due to thrown exception: java.lang.NullPointerException:null
> java.lang.NullPointerException
> 	at org.apache.ambari.server.controller.KerberosHelperImpl.addIdentities(KerberosHelperImpl.java:1603)
> 	at org.apache.ambari.server.serveraction.kerberos.AbstractPrepareKerberosServerAction.processServiceComponents(AbstractPrepareKerberosServerAction.java:168)
> 	at org.apache.ambari.server.serveraction.kerberos.AbstractPrepareKerberosServerAction.processServiceComponentHosts(AbstractPrepareKerberosServerAction.java:94)
> 	at org.apache.ambari.server.serveraction.kerberos.PrepareKerberosIdentitiesServerAction.execute(PrepareKerberosIdentitiesServerAction.java:129)
> 	at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.execute(ServerActionExecutor.java:550)
> 	at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.run(ServerActionExecutor.java:466)
> 	at java.lang.Thread.run(Thread.java:745)
> {noformat}
> *Note*: This is technically an unexpected Kerberos identity specification since the identity will be unusable. However Ambari should not encounter a NPE because of it. 



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