[
https://issues.apache.org/jira/browse/HADOOP-13056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15255242#comment-15255242
]
Steve Loughran commented on HADOOP-13056:
-----------------------------------------
good start. You should use GenericTestUtils.assertExceptionContains to check
the exception text, as it simplifes the test a lot
> Print expected values when rejecting a server's determined principal
> --------------------------------------------------------------------
>
> Key: HADOOP-13056
> URL: https://issues.apache.org/jira/browse/HADOOP-13056
> Project: Hadoop Common
> Issue Type: Bug
> Components: security
> Affects Versions: 2.5.0
> Reporter: Harsh J
> Assignee: Harsh J
> Priority: Trivial
> Attachments: HADOOP-13056.000.patch
>
>
> When an address-constructed service principal by a client does not match a
> provided pattern or the configured principal property, the error is very
> uninformative on what the specific cause is. Currently the only error printed
> is, in both cases:
> {code}
> java.lang.IllegalArgumentException: Server has invalid Kerberos principal:
> hdfs/host.internal@REALM
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)