<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: NiFi Kubernetes cluster - ProtocolException: Failed marshalling 'HEARTBEAT' protocol message in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Kubernetes-cluster-ProtocolException-Failed-marshalling/m-p/394268#M248685</link>
    <description>&lt;P&gt;i have the same issue any one resolved this ?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 05:58:45 GMT</pubDate>
    <dc:creator>mmuthu</dc:creator>
    <dc:date>2024-10-01T05:58:45Z</dc:date>
    <item>
      <title>NiFi Kubernetes cluster - ProtocolException: Failed marshalling 'HEARTBEAT' protocol message</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Kubernetes-cluster-ProtocolException-Failed-marshalling/m-p/346662#M234956</link>
      <description>&lt;P&gt;Hi everybody!&lt;/P&gt;&lt;P&gt;I am struggling trying to create a NiFi Kubernetes cluster out of &lt;A href="https://github.com/cetic/helm-nifi" target="_self"&gt;cetic helm chart.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After installation, I see a working zookeeper cluster (3 instances) and&amp;nbsp; a 2 instances stateful set for NiFi. One instance is correctly elected as cluster coordinator, NiFi frontend shows me a 1 member cluster. The second instance's log keeps on popping messages such as:&lt;/P&gt;&lt;P&gt;2022-07-01 11:52:23,839 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:29,313 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:34,792 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;every five seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching the second pod's log and that pod's generated nifi.properties file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nifi.properties:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Licensed to the Apache Software Foundation (ASF) under one or more&lt;BR /&gt;# contributor license agreements. See the NOTICE file distributed with&lt;BR /&gt;# this work for additional information regarding copyright ownership.&lt;BR /&gt;# The ASF licenses this file to You under the Apache License, Version 2.0&lt;BR /&gt;# (the "License"); you may not use this file except in compliance with&lt;BR /&gt;# the License. You may obtain a copy of the License at&lt;BR /&gt;#&lt;BR /&gt;# &lt;A href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank" rel="noopener"&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt;&lt;BR /&gt;#&lt;BR /&gt;# Unless required by applicable law or agreed to in writing, software&lt;BR /&gt;# distributed under the License is distributed on an "AS IS" BASIS,&lt;BR /&gt;# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;BR /&gt;# See the License for the specific language governing permissions and&lt;BR /&gt;# limitations under the License.&lt;/P&gt;&lt;P&gt;# Core Properties #&lt;BR /&gt;nifi.flow.configuration.file=../data/flow.xml.gz&lt;BR /&gt;nifi.flow.configuration.archive.enabled=true&lt;BR /&gt;nifi.flow.configuration.archive.dir=../data/archive/&lt;BR /&gt;nifi.flow.configuration.archive.max.time=30 days&lt;BR /&gt;nifi.flow.configuration.archive.max.storage=500 MB&lt;BR /&gt;nifi.flow.configuration.archive.max.count=&lt;BR /&gt;nifi.flowcontroller.autoResumeState=true&lt;BR /&gt;nifi.flowcontroller.graceful.shutdown.period=10 sec&lt;BR /&gt;nifi.flowservice.writedelay.interval=500 ms&lt;BR /&gt;nifi.administrative.yield.duration=30 sec&lt;BR /&gt;# If a component has no work to do (is "bored"), how long should we wait before checking again for work?&lt;BR /&gt;nifi.bored.yield.duration=10 millis&lt;/P&gt;&lt;P&gt;nifi.authorizer.configuration.file=./conf/authorizers.xml&lt;BR /&gt;nifi.login.identity.provider.configuration.file=./conf/login-identity-providers.xml&lt;BR /&gt;nifi.templates.directory=../data/templates&lt;BR /&gt;nifi.ui.banner.text=&lt;BR /&gt;nifi.ui.autorefresh.interval=30 sec&lt;BR /&gt;nifi.nar.library.directory=./lib&lt;BR /&gt;nifi.nar.library.directory.custom=&lt;BR /&gt;nifi.nar.library.autoload.directory=./extensions&lt;BR /&gt;nifi.nar.working.directory=./work/nar/&lt;BR /&gt;nifi.documentation.working.directory=./work/docs/components&lt;/P&gt;&lt;P&gt;####################&lt;BR /&gt;# State Management #&lt;BR /&gt;####################&lt;BR /&gt;nifi.state.management.configuration.file=./conf/state-management.xml&lt;BR /&gt;# The ID of the local state provider&lt;BR /&gt;nifi.state.management.provider.local=local-provider&lt;BR /&gt;# The ID of the cluster-wide state provider. This will be ignored if NiFi is not clustered but must be populated if running in a cluster.&lt;BR /&gt;nifi.state.management.provider.cluster=zk-provider&lt;BR /&gt;# Specifies whether or not this instance of NiFi should run an embedded ZooKeeper server&lt;BR /&gt;nifi.state.management.embedded.zookeeper.start=false&lt;BR /&gt;# Properties file that provides the ZooKeeper properties to use if &amp;lt;nifi.state.management.embedded.zookeeper.start&amp;gt; is set to true&lt;BR /&gt;nifi.state.management.embedded.zookeeper.properties=./conf/zookeeper.properties&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# H2 Settings&lt;BR /&gt;nifi.database.directory=../data/database_repository&lt;BR /&gt;nifi.h2.url.append=;LOCK_TIMEOUT=25000;WRITE_DELAY=0;AUTO_SERVER=FALSE&lt;/P&gt;&lt;P&gt;# FlowFile Repository&lt;BR /&gt;nifi.flowfile.repository.implementation=org.apache.nifi.controller.repository.WriteAheadFlowFileRepository&lt;BR /&gt;nifi.flowfile.repository.directory=../flowfile_repository&lt;BR /&gt;nifi.flowfile.repository.partitions=256&lt;BR /&gt;nifi.flowfile.repository.checkpoint.interval=2 mins&lt;BR /&gt;nifi.flowfile.repository.always.sync=false&lt;/P&gt;&lt;P&gt;nifi.swap.manager.implementation=org.apache.nifi.controller.FileSystemSwapManager&lt;BR /&gt;nifi.queue.swap.threshold=20000&lt;BR /&gt;nifi.swap.in.period=5 sec&lt;BR /&gt;nifi.swap.in.threads=1&lt;BR /&gt;nifi.swap.out.period=5 sec&lt;BR /&gt;nifi.swap.out.threads=4&lt;/P&gt;&lt;P&gt;# Content Repository&lt;BR /&gt;nifi.content.repository.implementation=org.apache.nifi.controller.repository.FileSystemRepository&lt;BR /&gt;nifi.content.claim.max.appendable.size=1 MB&lt;BR /&gt;nifi.content.claim.max.flow.files=100&lt;BR /&gt;nifi.content.repository.directory.default=../content_repository&lt;BR /&gt;nifi.content.repository.archive.max.retention.period=3 days&lt;BR /&gt;nifi.content.repository.archive.max.usage.percentage=85%&lt;BR /&gt;nifi.content.repository.archive.enabled=true&lt;BR /&gt;nifi.content.repository.always.sync=false&lt;BR /&gt;nifi.content.viewer.url=/nifi-content-viewer/&lt;/P&gt;&lt;P&gt;# Provenance Repository Properties&lt;BR /&gt;nifi.provenance.repository.implementation=org.apache.nifi.provenance.WriteAheadProvenanceRepository&lt;BR /&gt;nifi.provenance.repository.debug.frequency=1_000_000&lt;BR /&gt;nifi.provenance.repository.encryption.key.provider.implementation=&lt;BR /&gt;nifi.provenance.repository.encryption.key.provider.location=&lt;BR /&gt;nifi.provenance.repository.encryption.key.id=&lt;BR /&gt;nifi.provenance.repository.encryption.key=&lt;/P&gt;&lt;P&gt;# Persistent Provenance Repository Properties&lt;BR /&gt;nifi.provenance.repository.directory.default=../provenance_repository&lt;BR /&gt;nifi.provenance.repository.max.storage.time=10 days&lt;BR /&gt;nifi.provenance.repository.max.storage.size=8 GB&lt;BR /&gt;nifi.provenance.repository.rollover.time=30 secs&lt;BR /&gt;nifi.provenance.repository.rollover.size=100 MB&lt;BR /&gt;nifi.provenance.repository.query.threads=2&lt;BR /&gt;nifi.provenance.repository.index.threads=2&lt;BR /&gt;nifi.provenance.repository.compress.on.rollover=true&lt;BR /&gt;nifi.provenance.repository.always.sync=false&lt;BR /&gt;nifi.provenance.repository.journal.count=16&lt;BR /&gt;# Comma-separated list of fields. Fields that are not indexed will not be searchable. Valid fields are:&lt;BR /&gt;# EventType, FlowFileUUID, Filename, TransitURI, ProcessorID, AlternateIdentifierURI, Relationship, Details&lt;BR /&gt;nifi.provenance.repository.indexed.fields=EventType, FlowFileUUID, Filename, ProcessorID, Relationship&lt;BR /&gt;# FlowFile Attributes that should be indexed and made searchable. Some examples to consider are filename, uuid, mime.type&lt;BR /&gt;nifi.provenance.repository.indexed.attributes=&lt;BR /&gt;# Large values for the shard size will result in more Java heap usage when searching the Provenance Repository&lt;BR /&gt;# but should provide better performance&lt;BR /&gt;nifi.provenance.repository.index.shard.size=500 MB&lt;BR /&gt;# Indicates the maximum length that a FlowFile attribute can be when retrieving a Provenance Event from&lt;BR /&gt;# the repository. If the length of any attribute exceeds this value, it will be truncated when the event is retrieved.&lt;BR /&gt;nifi.provenance.repository.max.attribute.length=65536&lt;/P&gt;&lt;P&gt;# Volatile Provenance Respository Properties&lt;BR /&gt;nifi.provenance.repository.buffer.size=100000&lt;/P&gt;&lt;P&gt;# Component Status Repository&lt;BR /&gt;nifi.components.status.repository.implementation=org.apache.nifi.controller.status.history.VolatileComponentStatusRepository&lt;BR /&gt;nifi.components.status.repository.buffer.size=1440&lt;BR /&gt;nifi.components.status.snapshot.frequency=1 min&lt;/P&gt;&lt;P&gt;# Site to Site properties&lt;BR /&gt;nifi.remote.input.host=dashboard-nifi-1405-1.dashboard-nifi-1405-headless.default.svc.cluster.local&lt;BR /&gt;nifi.remote.input.secure=true&lt;BR /&gt;nifi.remote.input.socket.port=10000&lt;BR /&gt;nifi.remote.input.http.enabled=true&lt;BR /&gt;nifi.remote.input.http.transaction.ttl=30 sec&lt;BR /&gt;nifi.remote.contents.cache.expiration=30 secs&lt;/P&gt;&lt;P&gt;# web properties #&lt;BR /&gt;nifi.web.war.directory=./lib&lt;BR /&gt;nifi.web.proxy.host=dashboard-nifi-1405.default.svc&lt;BR /&gt;nifi.web.https.port=8443&lt;BR /&gt;nifi.web.http.host=dashboard-nifi-1405-1.dashboard-nifi-1405-headless.default.svc.cluster.local&lt;BR /&gt;nifi.web.http.network.interface.default=eth0&lt;BR /&gt;nifi.web.https.host=&lt;BR /&gt;nifi.web.https.network.interface.default=&lt;BR /&gt;nifi.web.jetty.working.directory=./work/jetty&lt;BR /&gt;nifi.web.jetty.threads=200&lt;BR /&gt;# nifi.web.proxy.context.path=&lt;/P&gt;&lt;P&gt;# security properties #&lt;BR /&gt;nifi.sensitive.props.key=changeMechangeMe&lt;BR /&gt;nifi.sensitive.props.key.protected=&lt;BR /&gt;nifi.sensitive.props.algorithm=NIFI_PBKDF2_AES_GCM_256&lt;BR /&gt;nifi.sensitive.props.provider=BC&lt;BR /&gt;nifi.sensitive.props.additional.keys=&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;nifi.security.keystore=./conf/keystore.p12&lt;BR /&gt;nifi.security.keystoreType=PKCS12&lt;BR /&gt;nifi.security.keystorePasswd=1ff548a931ff221a92f866e5107c0f73&lt;BR /&gt;nifi.security.keyPasswd=1ff548a931ff221a92f866e5107c0f73&lt;BR /&gt;nifi.security.truststore=./conf/truststore.p12&lt;BR /&gt;nifi.security.truststoreType=PKCS12&lt;BR /&gt;nifi.security.truststorePasswd=1ca7ca6eb083ef4ecb8bf0983e2f43c9&lt;BR /&gt;nifi.security.user.login.identity.provider=single-user-provider&lt;BR /&gt;nifi.security.user.authorizer=single-user-authorizer&lt;/P&gt;&lt;P&gt;nifi.security.needClientAuth=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Apache Knox SSO Properties #&lt;BR /&gt;nifi.security.user.knox.url=&lt;BR /&gt;nifi.security.user.knox.publicKey=&lt;BR /&gt;nifi.security.user.knox.cookieName=hadoop-jwt&lt;BR /&gt;nifi.security.user.knox.audiences=&lt;/P&gt;&lt;P&gt;# Identity Mapping Properties #&lt;BR /&gt;# These properties allow normalizing user identities such that identities coming from different identity providers&lt;BR /&gt;# (certificates, LDAP, Kerberos) can be treated the same internally in NiFi. The following example demonstrates normalizing&lt;BR /&gt;# DNs from certificates and principals from Kerberos into a common identity string:&lt;BR /&gt;#&lt;BR /&gt;# nifi.security.identity.mapping.pattern.dn=^CN=(.*?), OU=(.*?), O=(.*?), L=(.*?), ST=(.*?), C=(.*?)$&lt;BR /&gt;# nifi.security.identity.mapping.value.dn=$1@$2&lt;BR /&gt;# nifi.security.identity.mapping.pattern.kerb=^(.*?)/instance@(.*?)$&lt;BR /&gt;# nifi.security.identity.mapping.value.kerb=$1@$2&lt;/P&gt;&lt;P&gt;# cluster common properties (all nodes must have same values) #&lt;BR /&gt;nifi.cluster.protocol.heartbeat.interval=5 sec&lt;BR /&gt;nifi.cluster.protocol.is.secure=true&lt;/P&gt;&lt;P&gt;# cluster node properties (only configure for cluster nodes) #&lt;BR /&gt;nifi.cluster.is.node=true&lt;BR /&gt;nifi.cluster.node.address=dashboard-nifi-1405-1.dashboard-nifi-1405-headless.default.svc.cluster.local&lt;BR /&gt;nifi.cluster.node.protocol.port=6007&lt;BR /&gt;nifi.cluster.node.protocol.threads=10&lt;BR /&gt;nifi.cluster.node.protocol.max.threads=50&lt;BR /&gt;nifi.cluster.node.event.history.size=25&lt;BR /&gt;nifi.cluster.node.connection.timeout=5 sec&lt;BR /&gt;nifi.cluster.node.read.timeout=5 sec&lt;BR /&gt;nifi.cluster.node.max.concurrent.requests=100&lt;BR /&gt;nifi.cluster.firewall.file=&lt;BR /&gt;nifi.cluster.flow.election.max.wait.time=1 mins&lt;BR /&gt;nifi.cluster.flow.election.max.candidates=&lt;/P&gt;&lt;P&gt;# zookeeper properties, used for cluster management #&lt;BR /&gt;nifi.zookeeper.connect.string=dashboard-nifi-1405-zookeeper:2181&lt;BR /&gt;nifi.zookeeper.connect.timeout=3 secs&lt;BR /&gt;nifi.zookeeper.session.timeout=3 secs&lt;BR /&gt;nifi.zookeeper.root.node=/nifi&lt;/P&gt;&lt;P&gt;# Zookeeper properties for the authentication scheme used when creating acls on znodes used for cluster management&lt;BR /&gt;# Values supported for nifi.zookeeper.auth.type are "default", which will apply world/anyone rights on znodes&lt;BR /&gt;# and "sasl" which will give rights to the sasl/kerberos identity used to authenticate the nifi node&lt;BR /&gt;# The identity is determined using the value in nifi.kerberos.service.principal and the removeHostFromPrincipal&lt;BR /&gt;# and removeRealmFromPrincipal values (which should align with the kerberos.removeHostFromPrincipal and kerberos.removeRealmFromPrincipal&lt;BR /&gt;# values configured on the zookeeper server).&lt;BR /&gt;nifi.zookeeper.auth.type=&lt;BR /&gt;nifi.zookeeper.kerberos.removeHostFromPrincipal=&lt;BR /&gt;nifi.zookeeper.kerberos.removeRealmFromPrincipal=&lt;/P&gt;&lt;P&gt;# kerberos #&lt;BR /&gt;nifi.kerberos.krb5.file=&lt;/P&gt;&lt;P&gt;# kerberos service principal #&lt;BR /&gt;nifi.kerberos.service.principal=&lt;BR /&gt;nifi.kerberos.service.keytab.location=&lt;/P&gt;&lt;P&gt;# kerberos spnego principal #&lt;BR /&gt;nifi.kerberos.spnego.principal=&lt;BR /&gt;nifi.kerberos.spnego.keytab.location=&lt;BR /&gt;nifi.kerberos.spnego.authentication.expiration=12 hours&lt;/P&gt;&lt;P&gt;# external properties files for variable registry&lt;BR /&gt;# supports a comma delimited list of file locations&lt;BR /&gt;nifi.variable.registry.properties=&lt;BR /&gt;nifi.web.http.network.interface.lo=lo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;app.log from the second node:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2022-07-01 11:51:11,944 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007; will use this address for sending heartbeat messages&lt;BR /&gt;2022-07-01 11:51:11,945 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007. Will send Cluster Connection Request to this address&lt;BR /&gt;2022-07-01 11:51:12,303 WARN [main] o.a.nifi.controller.StandardFlowService Failed to connect to cluster due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'CONNECTION_REQUEST' protocol message due to: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors&lt;BR /&gt;2022-07-01 11:51:17,309 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007; will use this address for sending heartbeat messages&lt;BR /&gt;2022-07-01 11:51:17,310 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007. Will send Cluster Connection Request to this address&lt;BR /&gt;2022-07-01 11:51:17,935 WARN [main] o.a.nifi.controller.StandardFlowService Failed to connect to cluster due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'CONNECTION_REQUEST' protocol message due to: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors&lt;BR /&gt;2022-07-01 11:51:22,942 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007; will use this address for sending heartbeat messages&lt;BR /&gt;2022-07-01 11:51:22,943 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007. Will send Cluster Connection Request to this address&lt;BR /&gt;2022-07-01 11:51:23,442 WARN [main] o.a.nifi.controller.StandardFlowService Failed to connect to cluster due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'CONNECTION_REQUEST' protocol message due to: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors&lt;BR /&gt;2022-07-01 11:51:28,447 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007; will use this address for sending heartbeat messages&lt;BR /&gt;2022-07-01 11:51:28,447 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007. Will send Cluster Connection Request to this address&lt;BR /&gt;2022-07-01 11:51:28,849 WARN [main] o.a.nifi.controller.StandardFlowService Failed to connect to cluster due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'CONNECTION_REQUEST' protocol message due to: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors&lt;BR /&gt;2022-07-01 11:51:33,853 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007; will use this address for sending heartbeat messages&lt;BR /&gt;2022-07-01 11:51:33,854 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007. Will send Cluster Connection Request to this address&lt;BR /&gt;2022-07-01 11:51:34,316 WARN [main] o.a.nifi.controller.StandardFlowService Failed to connect to cluster due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'CONNECTION_REQUEST' protocol message due to: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors&lt;BR /&gt;2022-07-01 11:51:39,326 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007; will use this address for sending heartbeat messages&lt;BR /&gt;2022-07-01 11:51:39,326 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007. Will send Cluster Connection Request to this address&lt;BR /&gt;2022-07-01 11:51:39,853 WARN [main] o.a.nifi.controller.StandardFlowService Failed to connect to cluster due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'CONNECTION_REQUEST' protocol message due to: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors&lt;BR /&gt;2022-07-01 11:51:44,863 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007; will use this address for sending heartbeat messages&lt;BR /&gt;2022-07-01 11:51:44,863 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007. Will send Cluster Connection Request to this address&lt;BR /&gt;2022-07-01 11:51:45,397 WARN [main] o.a.nifi.controller.StandardFlowService Failed to connect to cluster due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'CONNECTION_REQUEST' protocol message due to: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors&lt;BR /&gt;2022-07-01 11:51:47,203 INFO [Cleanup Archive for default] o.a.n.c.repository.FileSystemRepository Successfully deleted 0 files (0 bytes) from archive&lt;BR /&gt;2022-07-01 11:51:47,204 INFO [Cleanup Archive for default] o.a.n.c.repository.FileSystemRepository Archive cleanup completed for container default; will now allow writing to this container. Bytes used = 57.01 GB, bytes free = 60.86 GB, capacity = 117.87 GB&lt;BR /&gt;2022-07-01 11:51:50,405 INFO [main] o.a.n.c.c.n.LeaderElectionNodeProtocolSender Determined that Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007; will use this address for sending heartbeat messages&lt;BR /&gt;2022-07-01 11:51:50,406 INFO [main] o.a.n.c.p.AbstractNodeProtocolSender Cluster Coordinator is located at dashboard-nifi-1348-0.dashboard-nifi-1348-headless.default.svc.cluster.local:6007. Will send Cluster Connection Request to this address&lt;BR /&gt;2022-07-01 11:51:50,833 WARN [main] o.a.nifi.controller.StandardFlowService Failed to connect to cluster due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'CONNECTION_REQUEST' protocol message due to: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors&lt;BR /&gt;2022-07-01 11:51:55,834 INFO [main] o.a.nifi.controller.StandardFlowService Flow controller will load local dataflow and suspend connection handshake until a cluster connection response is received.&lt;BR /&gt;2022-07-01 11:51:55,849 INFO [main] o.apache.nifi.controller.FlowController Cluster State changed from Not Clustered to Clustered&lt;BR /&gt;2022-07-01 11:51:55,852 INFO [main] o.a.n.c.l.e.CuratorLeaderElectionManager CuratorLeaderElectionManager[stopped=false] Registered new Leader Selector for role Primary Node; this node is an active participant in the election.&lt;BR /&gt;2022-07-01 11:51:55,853 INFO [main] o.a.n.c.l.e.CuratorLeaderElectionManager CuratorLeaderElectionManager[stopped=false] Registered new Leader Selector for role Cluster Coordinator; this node is an active participant in the election.&lt;BR /&gt;2022-07-01 11:51:55,862 INFO [main] o.apache.nifi.controller.FlowController Will no longer send heartbeats&lt;BR /&gt;2022-07-01 11:51:55,868 INFO [main] o.a.n.wali.SequentialAccessWriteAheadLog Recovering records from Write-Ahead Log at ../flowfile_repository&lt;BR /&gt;2022-07-01 11:51:55,873 INFO [main] o.a.n.wali.SequentialAccessWriteAheadLog No Snapshot File to recover from at ../flowfile_repository. Now recovering records from 0 journal files&lt;BR /&gt;2022-07-01 11:51:55,875 INFO [main] o.a.n.wali.SequentialAccessWriteAheadLog Successfully recovered 0 records in 6 milliseconds. Now checkpointing to ensure that Write-Ahead Log is in a consistent state&lt;BR /&gt;2022-07-01 11:51:55,916 INFO [main] o.a.n.wali.SequentialAccessWriteAheadLog Checkpointed Write-Ahead Log with 0 Records and 0 Swap Files in 41 milliseconds (Stop-the-world time = 37 milliseconds), max Transaction ID -1&lt;BR /&gt;2022-07-01 11:51:55,919 INFO [main] o.a.n.c.r.WriteAheadFlowFileRepository Successfully restored 0 FlowFiles and 0 Swap Files&lt;BR /&gt;2022-07-01 11:51:55,951 INFO [main] o.apache.nifi.controller.FlowController Performed initial validation of all components in 1 milliseconds&lt;BR /&gt;2022-07-01 11:51:55,952 INFO [main] o.apache.nifi.controller.FlowController Starting 0 processors/ports/funnels&lt;BR /&gt;2022-07-01 11:51:55,952 INFO [main] o.apache.nifi.controller.FlowController Started 0 Remote Group Ports transmitting&lt;BR /&gt;2022-07-01 11:51:56,016 INFO [main] org.apache.nifi.web.server.JettyServer Flow loaded successfully.&lt;BR /&gt;2022-07-01 11:51:56,028 INFO [main] org.apache.nifi.nar.NarAutoLoader Starting NAR Auto-Loader for directory ./extensions ...&lt;BR /&gt;2022-07-01 11:51:56,030 INFO [main] org.apache.nifi.web.server.JettyServer NiFi has started. The UI is available at the following URLs:&lt;BR /&gt;2022-07-01 11:51:56,031 INFO [main] org.apache.nifi.web.server.JettyServer &lt;A href="https://10.1.2.67:8443/nifi" target="_blank" rel="noopener"&gt;https://10.1.2.67:8443/nifi&lt;/A&gt;&lt;BR /&gt;2022-07-01 11:51:56,031 INFO [main] org.apache.nifi.web.server.JettyServer &lt;A href="https://127.0.0.1:8443/nifi" target="_blank" rel="noopener"&gt;https://127.0.0.1:8443/nifi&lt;/A&gt;&lt;BR /&gt;2022-07-01 11:51:56,070 INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with Bootstrap&lt;BR /&gt;2022-07-01 11:51:56,071 INFO [main] org.apache.nifi.NiFi Started Application Controller in 94.386 seconds (94386630200 ns)&lt;BR /&gt;2022-07-01 11:51:56,436 WARN [Clustering Tasks Thread-1] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:01,904 WARN [Clustering Tasks Thread-1] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:07,311 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:12,773 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:18,360 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:23,839 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:29,313 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:34,792 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:40,163 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:45,210 INFO [Write-Ahead Local State Provider Maintenance] org.wali.MinimalLockingWriteAheadLog org.wali.MinimalLockingWriteAheadLog@2d198533 checkpointed with 2 Records and 0 Swap Files in 10 milliseconds (Stop-the-world time = 1 milliseconds, Clear Edit Logs time = 1 millis), max Transaction ID 1&lt;BR /&gt;2022-07-01 11:52:45,565 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:47,215 INFO [Cleanup Archive for default] o.a.n.c.repository.FileSystemRepository Successfully deleted 0 files (0 bytes) from archive&lt;BR /&gt;2022-07-01 11:52:47,215 INFO [Cleanup Archive for default] o.a.n.c.repository.FileSystemRepository Archive cleanup completed for container default; will now allow writing to this container. Bytes used = 57.01 GB, bytes free = 60.86 GB, capacity = 117.87 GB&lt;BR /&gt;2022-07-01 11:52:50,977 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;BR /&gt;2022-07-01 11:52:56,333 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 12:29:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Kubernetes-cluster-ProtocolException-Failed-marshalling/m-p/346662#M234956</guid>
      <dc:creator>Robybrown</dc:creator>
      <dc:date>2022-07-01T12:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Kubernetes cluster - ProtocolException: Failed marshalling 'HEARTBEAT' protocol message</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Kubernetes-cluster-ProtocolException-Failed-marshalling/m-p/352835#M236606</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98955"&gt;@Robybrown&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I was facing with similar issue. You need to enable cert manager and let it generate internal nifi certificates for each node. Tricky part is, that hostname is limited to 64 bytes (64 characters), so cert manager can throw an error, that hostname is to long. This can be overriden by "&lt;SPAN&gt;fullnameOverride" property to make it shorter for example. Next step should be sticky sessions configuration on ingress level.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 10:51:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Kubernetes-cluster-ProtocolException-Failed-marshalling/m-p/352835#M236606</guid>
      <dc:creator>grzesiek20</dc:creator>
      <dc:date>2022-09-21T10:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Kubernetes cluster - ProtocolException: Failed marshalling 'HEARTBEAT' protocol message</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Kubernetes-cluster-ProtocolException-Failed-marshalling/m-p/394268#M248685</link>
      <description>&lt;P&gt;i have the same issue any one resolved this ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 05:58:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Kubernetes-cluster-ProtocolException-Failed-marshalling/m-p/394268#M248685</guid>
      <dc:creator>mmuthu</dc:creator>
      <dc:date>2024-10-01T05:58:45Z</dc:date>
    </item>
  </channel>
</rss>

