You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Hari Sekhon (JIRA)" <ji...@apache.org> on 2019/03/15 14:01:00 UTC

[jira] [Created] (NIFI-6124) NiFi HDFS processors resolve Kerberos principal host component to an IP address and get wrong principal error

Hari Sekhon created NIFI-6124:
---------------------------------

             Summary: NiFi HDFS processors resolve Kerberos principal host component to an IP address and get wrong principal error
                 Key: NIFI-6124
                 URL: https://issues.apache.org/jira/browse/NIFI-6124
             Project: Apache NiFi
          Issue Type: Bug
            Reporter: Hari Sekhon


NiFi HDFS processors appear to be resolving the host component of the kerberos principal given an hdfs-site.xml using the usual Hadoop _HOST placeholder like so:
{code:java}
<property>
  <name>dfs.namenode.kerberos.principal</name>
  <value>hdfs/_HOST@<domain></value>
</property>{code}
Results in an exception like this:
{code:java}
2019-03-15 09:55:42,556 INFO [Timer-Driven Process Thread-6] o.a.h.io.retry.RetryInvocationHandler java.io.IOException: Failed on local exception: java.io.IOException: Couldn't set up IO streams: java.lang.IllegalArgumentException: Server has invalid Kerberos principal: hdfs/<fqdn>@<domain>, expecting: hdfs/<ip_x.x.x.x>@<domain>; Host Details : local host is: "<fqdn>/<ip_x.x.x.x>"; destination host is: "<ip_x.x.x.x>":8020; , while invoking ClientNamenodeProtocolTranslatorPB.getFileInfo over <ip_x.x.x.x>/<ip_x.x.x.x>:8020 after 9 failover attempts. Trying to failover after sleeping for 17661ms.
{code}



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