Zookeeper is an open-source distributed coordination service for the management and coordination of hosts. It is difficult to manage a large set of hosts in a distributed environment. The distributed system is used because it helps in completing the task in less time compared to non-distributed systems.
Zookeeper lets the developer focus on software development and not worry about the distributed system. Zookeeper uses Server-client architecture where the client sends for a request a connection to the server. The server accepts the request otherwise the client sends the request to other servers. One of those servers is a Leader that gives information to clients whether servers are alive or not.
You can know more about Hadoop and Hadoop ecosystem from this video: