Github user bbende commented on the issue:
https://github.com/apache/nifi/pull/1342
I think the issue was that I had left nifi.remote.input.host blank on both
instances. So in the push model it was getting the ip address of the incoming
connection which was my laptop's internal IP that doesn't resolve to a
hostname, and in the pull model it was receiving the hostname of the peer from
the peer itself (line 228 of SocketClientProtocol) which happened to be
hostname of my laptop.
When I set nifi.remote.input.host to localhost for both of the instances,
then I always get localhost in the attributes which is good.
I'm a +1, will go ahead and merge. Thanks!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---