Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unable to connect to nodes for load balancing java.net.ConnectException: Connection timed out

Unable to connect to nodes for load balancing java.net.ConnectException: Connection timed out

Hi Team @Matt Clarke,@Matt Burgess

I am working with 3 node cluster in Nifi1.8 and trying to load balance data between 3 nodes.But getting this error: Unable to connect to <hostname>:9443 for load balancing

java.net.ConnectException: Connection timed out. I have configured the connection to use roundrobin strategy but the flowfiles are not getting distributed,they remain at primary node only. Could you please suggest what is wrong in configuration?

Thanks in advance!!

nifi.properties config is:

# cluster node properties (only configure for cluster nodes) #

nifi.cluster.is.node=true

nifi.cluster.node.address=<mynodehostname>

nifi.cluster.node.protocol.port=11443

nifi.cluster.node.protocol.threads=10

nifi.cluster.node.protocol.max.threads=50

nifi.cluster.node.event.history.size=25

nifi.cluster.node.connection.timeout=60 sec

nifi.cluster.node.read.timeout=60 sec

nifi.cluster.node.max.concurrent.requests=400

nifi.cluster.firewall.file=

nifi.cluster.flow.election.max.wait.time=5 mins

nifi.cluster.flow.election.max.candidates=3


# cluster load balancing properties #

nifi.cluster.load.balance.host=<mynodehostname>

nifi.cluster.load.balance.port=6342

nifi.cluster.load.balance.connections.per.node=4

nifi.cluster.load.balance.max.thread.count=8

nifi.cluster.load.balance.comms.timeout=360 sec


# zookeeper properties, used for cluster management #

nifi.zookeeper.connect.string=<zookeper1hostname>:2181,<zookeper1hostname>:2181,<zookeper1hostname>:2181

nifi.zookeeper.connect.timeout=60 secs

nifi.zookeeper.session.timeout=60 secs

nifi.zookeeper.root.node=/nifi


# Zookeeper properties for the authentication scheme used when creating acls on znodes used for cluster management

# Values supported for nifi.zookeeper.auth.type are "default", which will apply world/anyone rights on znodes

# and "sasl" which will give rights to the sasl/kerberos identity used to authenticate the nifi node

# The identity is determined using the value in nifi.kerberos.service.principal and the removeHostFromPrincipal

# and removeRealmFromPrincipal values (which should align with the kerberos.removeHostFromPrincipal and kerberos.removeRealmFromPrincipal

# values configured on the zookeeper server).

nifi.zookeeper.auth.type=

nifi.zookeeper.kerberos.removeHostFromPrincipal=

nifi.zookeeper.kerberos.removeRealmFromPrincipal=

Don't have an account?
Coming from Hortonworks? Activate your account here