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 69 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,420 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
144 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
• 68,180 points
45 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,760 points
3,539 views
+1 vote
11 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
18,044 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,280 points
1,309 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,420 points
6,283 views