Member since
01-15-2018
93
Posts
2
Kudos Received
1
Solution
03-31-2020
05:39 AM
2 Kudos
What happened?
Starting up a ZooKeeper server in a Kerberized CDP-DC 7.0.3 cluster failed with the logs below.
2020-03-30 12:23:10,251 ERROR org.apache.zookeeper.server.quorum.QuorumPeerMain: Unexpected exception, exiting abnormally java.io.IOException: Could not configure server because SASL configuration did not allow the ZooKeeper server to authenticate itself properly: javax.security.auth.login.LoginException: Message stream modified (41) at org.apache.zookeeper.server.ServerCnxnFactory.configureSaslLogin(ServerCnxnFactory.java:243) at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:646) at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:148) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:123) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82)
The JDK for this environment is OpenJDK 1.8.0_242.
# java -version openjdk version "1.8.0_242" OpenJDK Runtime Environment (build 1.8.0_242-b08) OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
Solution
Removing the line of renew_lifetime in /etc/krb5.conf.
Removing this line means to use the default value, 0, for renew_lifetime.
Thus, it may also need to specify renew_lifetime when running kinit command.
See also
http://mail-archives.apache.org/mod_mbox/hadoop-yarn-dev/201909.mbox/%3CCAKRKJ1O3yrYKDZ=WhU=i6A+zqxFnUidxvwQzNCTW0mnEv2WFPA@mail.gmail.com%3E
On this page, Akira Ajisaka, one of Hadoop PMCs, described the solution.
He also mentioned a related OpenJDK's JIRA ticket.
https://bugs.centos.org/view.php?id=17000
This page also introduced the same solution.
Additionally, this page showed another solution, setting sun.security.krb5.disableReferrals=true in java.security file. But in my case, this solution didn't work.
https://my.cloudera.com/knowledge/Cloudera-Customer-Advisory-Servers-with-Kerberos-enabled-stop?id=292027
This is a related article from the Cloudera Knowledge Base.
It also describes sun.security.krb5.disableReferrals=true as its workaround.
... View more
Labels:
10-05-2018
07:30 AM
Hi, Please try adding <service>
<role>ATLAS-API</role>
<url>http://${atlas_metadata_server_host}:${atlas_metadata_server_port}/</url>
</service> (e.g. <service>
<role>ATLAS-API</role>
<url>http://toide-2.toide.hortonworks.com:21000/</url>
</service> ) to your "Advanced topology". I met "Something went wrong" error on Atlas WebUI before adding it.
... View more
08-20-2018
11:45 PM
I asked the person in charge of the blog and the article has been recovered. Thanks,
... View more
08-20-2018
02:11 AM
1 Kudo
That URL is automatically redirected to the search page https://hortonworks.com/blog/ now. I remember I could access that URL a few days ago. Does anyone know the new URL for this page? Or, is this page permanently removed? This page was very helpful, but I forgot the details of the content.
... View more
05-17-2018
02:15 PM
@Matt Clarke Thank you very much!
... View more
05-17-2018
01:05 PM
Hi @Matt Clarke, Thank you for the great article. This article will strongly help me and my client. If there's any additional point for NiFi 1.5 on HDF 3.1.1, I'd like to know it. Many Thanks, Takefumi
... View more