[
https://issues.apache.org/jira/browse/AMBARI-24383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16564861#comment-16564861
]
Hudson commented on AMBARI-24383:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-branch-2.7 #96 (See
[https://builds.apache.org/job/Ambari-branch-2.7/96/])
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=b2b729c10d757bfa9cdfb0cf27d2429d5e5f455a])
* (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: 1h 50m
> 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)