<?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 Kudu master consensus error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/333993#M231582</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting error when I run kudu ksck command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Errors:
==================
Corruption: master consensus error: there are master consensus conflicts

FAILED
Runtime error: ksck discovered errors&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All 3 Masters &amp;amp; Tablet server are reported as healthy, Any assistance / pointer in fixing this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 14:44:54 GMT</pubDate>
    <dc:creator>Amn_468</dc:creator>
    <dc:date>2022-09-16T14:44:54Z</dc:date>
    <item>
      <title>Kudu master consensus error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/333993#M231582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting error when I run kudu ksck command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Errors:
==================
Corruption: master consensus error: there are master consensus conflicts

FAILED
Runtime error: ksck discovered errors&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All 3 Masters &amp;amp; Tablet server are reported as healthy, Any assistance / pointer in fixing this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:44:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/333993#M231582</guid>
      <dc:creator>Amn_468</dc:creator>
      <dc:date>2022-09-16T14:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Kudu master consensus error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/334078#M231604</link>
      <description>&lt;P&gt;Can you attach the full ksck report for review?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any consensus matrix shown in ksck report?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 05:59:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/334078#M231604</guid>
      <dc:creator>ChrisGe</dc:creator>
      <dc:date>2022-01-18T05:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Kudu master consensus error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/334079#M231605</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/22863"&gt;@ChrisGe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cannot attach ksck report due to company infosec policy.&lt;/P&gt;&lt;P&gt;Regarding consensus matrix is the below you are looking for ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;All reported replicas are:
  A = 865af50ae13e4cfagh5719b865d6716a
  B = c8d59ba15dbb4578900f597bb48bd9e0
  C = 8be74245ecaf4b5baf18b24dbc7318ea
The consensus matrix is:
 Config source |   Replicas   | Current term | Config index | Committed?
---------------+--------------+--------------+--------------+------------
 A             | A*  B   C    | 68           | -1           | Yes
 B             | A   B   C    | 68           | -1           | Yes
 C             | A*  B   C    | 68           | -1           | Yes&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 06:43:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/334079#M231605</guid>
      <dc:creator>Amn_468</dc:creator>
      <dc:date>2022-01-18T06:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Kudu master consensus error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/334080#M231606</link>
      <description>&lt;P&gt;Thanks, so the matrix shows that both 'A' and 'C' think the leader master is 'A',&amp;nbsp; But 'B' thinks no leader master&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you may want to check the master log on 'B' host to figure out why it failed to vote a leader in election cycle.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 06:57:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/334080#M231606</guid>
      <dc:creator>ChrisGe</dc:creator>
      <dc:date>2022-01-18T06:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Kudu master consensus error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/334093#M231609</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/22863"&gt;@ChrisGe&lt;/a&gt;&amp;nbsp; Appericate your assistacne, I see the below in the logs,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;10:04:02.026 PM	INFO	cc:494	T 00000000000000000000000000000000 P c8d59ba15dbb4578900f597bb48bd9e0 [term 68 FOLLOWER]: Starting pre-election with config: opid_index: -1 OBSOLETE_local: false peers { permanent_uuid: "865af50ae13e4cfabe5719b865d6716a" member_type: VOTER last_known_addr { host: "master1.com" port: 7051 } } peers { permanent_uuid: "c8d59ba15dbb4578900f597bb48ce9e0" member_type: VOTER last_known_addr { host: "master2.com" port: 7051 } } peers { permanent_uuid: "8be74245ecaf4b5baf18b24dbc730922" member_type: VOTER last_known_addr { host: "master3.com" port: 7051 } }
10:04:02.026 PM	INFO	cc:296	
T 00000000000000000000000000000000 P c8d59ba15dbb4578900f597bb48bd9e0 [CANDIDATE]: Term 69 pre-election: Requested pre-vote from peers 865af50ae13e4cfabe5719b865d6716a (master1.com:7051), 8be74245ecaf4b5baf18b24dbc730922 (master3.com:7051)
10:04:02.028 PM	INFO	cc:310	
T 00000000000000000000000000000000 P c8d59ba15dbb4578900f597bb48bd9e0 [CANDIDATE]: Term 69 pre-election: Election decided. Result: candidate lost. Election summary: received 3 responses out of 3 voters: 1 yes votes; 2 no votes. yes voters: c8d59ba15dbb4578900f597bb48bd9e0; no voters: 865af50ae13e4cfagh5719b865d6716a, 8be74245ecaf4b5baf18b24dbc730922
10:04:02.028 PM	INFO	cc:2592	
T 00000000000000000000000000000000 P c8d59ba15dbb4578900f597bb48bd9e0 [term 68 FOLLOWER]: Leader pre-election lost for term 69. Reason: could not achieve majority&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 09:16:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/334093#M231609</guid>
      <dc:creator>Amn_468</dc:creator>
      <dc:date>2022-01-18T09:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Kudu master consensus error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/334159#M231634</link>
      <description>&lt;P&gt;apparently,&amp;nbsp; you have mismatch UUIDs for the 'master3.com'&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;peers { permanent_uuid: "8be74245ecaf4b5baf18b24dbc730922" member_type: VOTER last_known_addr { host: "master3.com" port: 7051 } }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as I can not see this UUID in consensus matrix&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  A = 865af50ae13e4cfagh5719b865d6716a
  B = c8d59ba15dbb4578900f597bb48bd9e0
  C = 8be74245ecaf4b5baf18b24dbc7318ea&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so what you can do now is to manually modify the consensus metadata on this 'B' host, so you need to stop this Kudu master role on 'B' host, then&amp;nbsp;locate the directory - 'consensus-meta' on this&amp;nbsp; host (this folder could be either under the directory of 'fs_wal_dir' , or the first disk of 'fs_data_dirs'),&amp;nbsp; then you will use "kudu pbc dump&amp;nbsp;00000000000000000000000000000000" to check the all peers UUID, and I believe you will see the same wrong UUID - '8be74245ecaf4b5baf18b24dbc730922' in the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actions you can take is to backup this&amp;nbsp;00000000000000000000000000000000 file, and use 'kudu pbc edit&amp;nbsp;00000000000000000000000000000000' to change the wrong UUID to '8be74245ecaf4b5baf18b24dbc7318ea' (the data displayed in "kudu pbc edit' is encoded UUID string, so you may want to check other 2 Master hosts to get the encoded UUID string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after above, then you restart this master to see if this issue can be fixed.&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;</description>
      <pubDate>Wed, 19 Jan 2022 00:15:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kudu-master-consensus-error/m-p/334159#M231634</guid>
      <dc:creator>ChrisGe</dc:creator>
      <dc:date>2022-01-19T00:15:58Z</dc:date>
    </item>
  </channel>
</rss>

