Adding the hostname to /etc/hosts with 127.0.0.1 as the IP is common in cloud-init VM images so double check that it’s not getting rewritten on reboot if that applies to you.
Thanks Shawn From: Jens M. Kofoed <[email protected]> Sent: Thursday, September 9, 2021 8:25 AM To: [email protected] Subject: Re: ${hostname(true)} returns localhost Thanks Shawn Some how the hostname was added to the /etc/hosts file as 127.0.0.1 It is now deleted and it works fine. Kind regards Jens Den 9. sep. 2021 kl. 13.41 skrev Shawn Weeks <[email protected]<mailto:[email protected]>>: Do you have nifi.cluster.node.address set to the hostname? I think that will bypass the issue. The actual issue has to do with how the hostname is auto detected, I think. Some things to check are that you have an appropriate entry in /etc/hosts for your hostname pointing back to it’s IP and that you don’t have an entry for the hostname pointing at 127.0.0.1. Thanks Shawn From: Jens M. Kofoed <[email protected]<mailto:[email protected]>> Sent: Thursday, September 9, 2021 5:53 AM To: [email protected]<mailto:[email protected]> Subject: ${hostname(true)} returns localhost Hi I'm using nifi 1.14.0 and have a single node cluster and a 3 node cluster. At the single node cluster the ${hostname(true)} returns the FQDN but at my 3 node cluster it returns "localhost". Any ideas why??? Kind regards Jens M. Kofoed
