Skip to main content
laowang231
Silver ⭐️⭐️
Feb 28, 2022 7:12 AM UTC
Question

KUDU NoLeaderFound Issue

Dear:

 

Recently i met a KUDU issue which was randomly occurred. Below is the details.

CDH Version: 5.14.2

KUDU Version: 1.6.0-cdh5.14.2

ERROR Information:

21/11/28 06:56:03 ERROR yarn.ApplicationMaster: User class threw exception: org.apache.kudu.client.NoLeaderFoundException: Master config (10.186.93.6:7051,10.186.93.24:7051,10.186.93.8:7051) has no leader. Exceptions received: org.apache.kudu.client.RecoverableException: connection disconnected,org.apache.kudu.client.RecoverableException: connection disconnected
org.apache.kudu.client.NoLeaderFoundException: Master config (10.186.93.6:7051,10.186.93.24:7051,10.186.93.8:7051) has no leader. Exceptions received: org.apache.kudu.client.RecoverableException: connection disconnected,org.apache.kudu.client.RecoverableException: connection disconnected
at org.apache.kudu.client.ConnectToCluster.incrementCountAndCheckExhausted(ConnectToCluster.java:273)
at org.apache.kudu.client.ConnectToCluster.access$100(ConnectToCluster.java:49)
at org.apache.kudu.client.ConnectToCluster$ConnectToMasterErrCB.call(ConnectToCluster.java:349)
at org.apache.kudu.client.ConnectToCluster$ConnectToMasterErrCB.call(ConnectToCluster.java:338)
at com.stumbleupon.async.Deferred.doCall(Deferred.java:1280)
at com.stumbleupon.async.Deferred.runCallbacks(Deferred.java:1259)
at com.stumbleupon.async.Deferred.handleContinuation(Deferred.java:1315)
at com.stumbleupon.async.Deferred.doCall(Deferred.java:1286)
at com.stumbleupon.async.Deferred.runCallbacks(Deferred.java:1259)
at com.stumbleupon.async.Deferred.callback(Deferred.java:1002)
...
Caused by: org.apache.kudu.client.RecoverableException: connection disconnected
... 55 more

 

this issue happened when i submitted a SPARK style task to YARN. Most time it is fine, but sometimes the problem come. Maybe several times per day.

Everytime I have to re-submit my task to YARN again, luckly the second time try always succeed.

Is it a BUG or something else? Is there any way to fix or workaround?

Appreciate.

8 replies

yanwk
Silver ⭐️⭐️
Feb 28, 2022 8:24 AM UTC

Kudu has a hard requirement on having an up-to-date NTP. Kudu masters and tablet servers will crash when out of sync.

you can check whether your ntp service is up to date

Translate
laowang231
Silver ⭐️⭐️
Feb 28, 2022 8:34 AM UTC

thanks your reply bro, but  the ntp sync looks fine because you know CDH cluster has the check for time sync.

Is there any configuration suggestion for my kudu cluster?

I set 3 masters and 76 kudu tablet servers. The resource for each node is about 48cores and 384G mem and 5T disk space.

We have a high read/write working scenario, is it a reason to cause this? 

Translate
yanwk
Silver ⭐️⭐️
Feb 28, 2022 9:17 AM UTC

hi bro,

you're welcome!

I have no idea about the issue assuming the ntp server is fine.

I searched from some blogs, and some guys recommended  to use a host name instead of ip.

you can have a try.

I am curious about the issue, and will pay attention to it. 

looking forword  to see "the solutions".

Good luck !

Translate