in Education by
I am new to Hadoop/ZooKeeper. I cannot understand the purpose of using ZooKeeper with Hadoop, is ZooKeeper writing data in Hadoop? If not, then why we do we use ZooKeeper with Hadoop? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Apache Zookeeper is a coordination service for distributed application that enables synchronization across a cluster. For Hadoop, Zookeeper is a centralized repository where distributed applications can put data and get data out of it. So, It is not just writing data as you said but also taking data from it. Zookeeper has following properties - Synchronization Serialization Coordination Hadoop is a Distributed application, therefore more error prone and difficult to coordinate and work with due to huge number of machines attached to network.Due to this many problems are faced like - 1. Race condition It occurs when a machine tries to perform two or more operations at the same time. This problem is solved by serialization property of ZooKeeper. 2. Deadlocks These are when two or more machines try to access the same shared resource at the same time or they try to access each other’s resources which leads to lock of system as none of the system is releasing the resource but waiting for other system to release it. Synchronization in Zookeeper helps to solve the deadlock. 3. Partial failure of process This can lead to inconsistency of data. Zookeeper handles this and makes sure that either the whole process will finish or nothing will persist after failure. Thus, Zookeeper is an important part of Hadoop that take care of these small but important issues so that developers can focus more on the functionality of the application.

Related questions

0 votes
    Can anyone tell me why Hive is used in Hadoop? Select the correct answer from above options...
asked Jan 11, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me why Hadoop is used in data analytics? Select the correct answer from above options...
asked Jan 8, 2022 in Education by JackTerrance
0 votes
    The Hadoop list includes the HBase database, the Apache Mahout ________ system, and matrix operations. ... recognition 3. Statistical classification 4. Artificial intelligence...
asked Dec 7, 2022 in Education by JackTerrance
0 votes
    Sun also has the Hadoop Live CD ________ project, which allows running a fully functional Hadoop cluster using a live CD. 1. OpenOffice.org 2. OpenSolaris 3. GNU 4. Linux...
asked Dec 6, 2022 in Education by JackTerrance
0 votes
    When I am running a Hadoop .jar file from the command prompt, it throws an exception saying no such method ... (Child.java:264) Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    So, I've been looking at Hadoop with keen interest, and to be honest I'm fascinated, things don't get much ... anyone know of one? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I would like to know the relation between the mapreduce.map.memory.mb and mapred.map.child.java.opts parameters. ... .child.java.opts? Select the correct answer from above options...
asked Jan 28, 2022 in Education by JackTerrance
0 votes
    I have uploaded a Directory to hadoop cluster that is having "," in its name like "MyDir, Name" when I ... such kind of Directories. Select the correct answer from above options...
asked Jan 28, 2022 in Education by JackTerrance
0 votes
    I do not understand the differences between using S3 and S3n with my Hadoop cluster, can someone explain? Select the correct answer from above options...
asked Jan 26, 2022 in Education by JackTerrance
0 votes
    Why are there two separate packages map-reduce package in Apache's hadoop package tree: org.apache.hadoop.mapred ... separated out? Select the correct answer from above options...
asked Jan 26, 2022 in Education by JackTerrance
0 votes
    I installed Hadoop on the server running CentOs. As I run start-dfs.shor stop-dfs.sh I got the following error : ... I have to do? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    What is namenode formatting? What does it involve. I'm looking to understand namenode formatting and its use. Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    Are they same? In my view "hadoop fs" command shows the hdfs files and the "hdfs dfs" command shows the local files, why is that? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    I am having some trouble writing the code for wordcount program using MapReduce, I could use some help. Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    I plan on downloading Hadoop for learning purposes, can someone tell me what is the latest build or version in Hadoop? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
...