ZooKeeper configuration error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hdp-zookeeper (Juju Charms Collection) |
New
|
Undecided
|
Unassigned |
Bug Description
When deploying with
juju deploy hdp-zookeeper
the configuration on the zookeeper node that is created looks like:
ubuntu@
#
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
#
#
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
dataDir=
# the port at which the clients will connect
clientPort=2181
server.
# server.
# server.
server.
As you can see there is a line with "server.1 = " that is configured with real data. This blocks ZooKeeper and it doesn't start at all. It is impossible to integrate other apps with it.
I just ran a test on hdp-zookeeper quorum ( 3 nodes as required by hortonworks) /grid/hadoop/ zookeeper/ data 1=10.0. 3.217:2888: 3888 2=TODO- ZKSERVER- HOSTNAME: 2888:3888 3=TODO- ZKSERVER- HOSTNAME: 2888:3888 0=10.0. 3.26:2888: 3888 2=10.0. 3.107:2888: 3888
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
dataDir=
# the port at which the clients will connect
clientPort=2181
server.
# server.
# server.
server.
server.
It looks like you are using a standalone zookeeper node and not quorum, a practice that is not used docs.hortonwork s.com/HDPDocume nts/HDP2/ HDP-2.1. 1/bk_installing _manually_ book/content/ rpm-zookeeper- 3.html).
in production environment. This charm was design based on hortonworks quorum requirement based
on real production scenarios (http://
However, modification for a single node quorum should not be difficult. Again, do strongly recommend to not use a single node
zookeeper in any production scenario.