Why is it necessary to rename the zoo_sample.cfg with zoo.cfg in zookeeper?

0 votes
Hi,

I am new to work with zookeeper but and the blog which I followed, it has given that in the conf file we need to rename the above file. My question is why we need to do that can anyone explain?
May 27 in Big Data Hadoop by Nupur

edited May 27 by Gitika 56 views

1 answer to this question.

0 votes

Hey,

The main reason why we need to rename or move that file to another directory because, the default zookeeper installation (tar extract) comes with the conf file named conf/zoo_sample.cfg while the same extract's bin/zkServer.sh expects the conf file to be called zoo.cfg thereby resulting in a "No such file or dir" and the "failed to write pid" error. 

So before running zkServer.sh to start or stop zookeeper instance, either: rename the zoo_sample.cfg in the conf dir to zoo.cfg.

answered May 27 by Gitika
• 25,360 points

Related Questions In Big Data Hadoop

+1 vote
1 answer

Is it necessary to use Zookeeper in Hadoop Stack?

ZooKeeper is a centralized service for maintaining ...READ MORE

answered Mar 27, 2018 in Big Data Hadoop by Ashish
• 2,630 points
128 views
0 votes
1 answer

Is it possible to start a zookeeper server instance in process?

To start ZooKeeper you have to execute ZooKeeperServerMain class. You can use ...READ MORE

answered Oct 9, 2018 in Big Data Hadoop by Omkar
• 67,660 points
44 views
0 votes
5 answers
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,730 points
3,356 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
16,621 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
1,214 views
0 votes
1 answer
0 votes
12 answers

What is Zookeeper? What is the purpose of Zookeeper in Hadoop Ecosystem?

Hey, Apache Zookeeper says that it is a ...READ MORE

answered Apr 29 in Big Data Hadoop by Gitika
• 25,360 points
5,675 views