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 28, 2019 in Big Data Hadoop by Nupur

edited May 28, 2019 by Gitika 529 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 28, 2019 by Gitika
• 65,950 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,650 points
327 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
• 69,170 points
163 views
0 votes
1 answer

I have to ingest in hadoop cluster large number of files for testing , what is the best way to do it?

Hi@sonali, It depends on what kind of testing ...READ MORE

answered Jul 8, 2020 in Big Data Hadoop by MD
• 95,300 points
414 views
0 votes
5 answers
+1 vote
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
• 11,380 points
7,921 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
63,037 views
–1 vote
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,390 points
3,009 views
0 votes
1 answer
0 votes
1 answer