Member since
04-22-2020
3
Posts
0
Kudos Received
0
Solutions
04-20-2021
01:52 PM
@Seeker90 Zookeepers by default are supposed to be running in an ensemble [french together] thats a quorum in English. Minimum number of servers required to run the Zookeeper is called Quorum. Zookeeper replicates whole data tree to all the quorum servers. This number is also the minimum number of servers required to store a client’s data before telling the client it is safely stored. Quorum size should be calculated by Majority Rule Majority rule: QN = (N + 1) / 2 QN: Minimum number of servers in quorum N: Total number of servers. (should be an odd number) So, if we have 5 servers, then Quorum should be minimum of 3 servers. As long as a majority of the ensemble are up, the service will be available. Because Zookeeper requires a majority, it is best to use an odd number of machines ZooKeeper uses Quorums by default to prevent the "brain split" phenomenon. That is, only more than half of the nodes in the cluster can vote for the Leader. This way can ensure the uniqueness of the leader, Split-Brain is like when you have two nodes in your cluster, they both know that a master needs to be elected in this cluster. Then when there is no problem in the communication between the two of them, a consensus will be reached and one of them will be selected as the master. But if there is a problem with the communication between them, both nodes will feel that there is no master now, so each elects itself as the master, so there will be two masters in the cluster. So to avoid the current problem you are facing add 2 more Zk'ers and that problem will vanish Happy hadooping
... View more
04-28-2020
10:35 AM
1 Kudo
Hi @Seeker90 ,
Thanks for reaching out to Cloudera community.
It looks like there is some missing permission and so could you please run the below commands as root user in hue node:
sudo -u solr solrctl sentry --list-roles
sudo -u solr solrctl sentry --list-privileges admin_role
and make sure you receive the below privileges when you run the below command:
[root@hue-test ~]# sudo -u solr solrctl sentry --list-privileges admin_role
Collection=*->action=*
Admin=*->action=*
Schema=*->action=*
Config=*->action=*
If you don't have the privileges, please use below command to add it:
sudo -u solr solrctl sentry --grant-privilege admin_role 'xxxx'
Hope this helps!
Li
... View more