wikimedia / operations-puppet-cdh4

Github mirror of "operations/puppet/cdh4" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
MIT License
4 stars 6 forks source link

Zookeeper #5

Open physikerwelt opened 10 years ago

physikerwelt commented 10 years ago

Hi, it seems as the Zookeeper ToDo has been solved. Zookeeper is being installed automatically but not configured. Can we add a little bit of documentation concerning this aspect to the README.MD If I try to start zookeeper manually I get: zookeeper-server initialize JMX enabled by default Using config: /etc/zookeeper/conf/zoo.cfg ZooKeeper data directory is missing at /var/lib/zookeeper fix the path or run initialize

physikerwelt commented 10 years ago

PS: I tried to use the linked zookeeper module but I get: The following packages have unmet dependencies: zookeeperd : Depends: zookeeper (= 3.3.5+dfsg1-1ubuntu1) but 3.4.5+20-1.cdh4.3.1.p0.76~precise-cdh4.3.1 is to be installed E: Unable to correct problems, you have held broken packages.

ottomata commented 10 years ago

Oo, I need to update the README and remove mention of Zookeeper support.

Can you do:

apt-get purge zookeeper zookeeper-server apt-get install zookeeperd?

physikerwelt commented 10 years ago

This leads to the problem mentioned above:

Attached my log: vagrant@dopa-vm:~$ sudo apt-get purge zookeeper zookeeper-server Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libopts25 ntp bigtop-jsvc Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: hadoop* hadoop-0.20-mapreduce* hadoop-client* hadoop-hdfs* hadoop-hdfs-datanode hadoop-hdfs-namenode* hadoop-mapreduce* hadoop-mapreduce-historyserver hadoop-yarn* hadoop-yarn-nodemanager* hadoop-yarn-resourcemanager* hbase hbase-master* hbase-regionserver* zookeeper* zookeeper-server 0 upgraded, 0 newly installed, 16 to remove and 6 not upgraded. After this operation, 152 MB disk space will be freed. Do you want to continue [Y/n]? Y (Reading database ... 68169 files and directories currently installed.) Removing hadoop-yarn-resourcemanager ...

vagrant@dopa-vm:~$ sudo apt-get install zookeeperd Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: zookeeperd : Depends: zookeeper (= 3.3.5+dfsg1-1ubuntu1) but 3.4.5+20-1.cdh4.3.1.p0.76~precise-cdh4.3.1 is to be installed E: Unable to correct problems, you have held broken packages.

ottomata commented 10 years ago

Oh oh oh, you are right, sorry. We do not install zookeeper on our Hadoop nodes, so we don't have the same conflict you have here :(