@31610895 - Thanks for the question and using MS Q&A platform.
Yes, Azure HDInsight manages the ZooKeeper nodes. In case of a ZooKeeper node failure, HDInsight automatically handles the failover process. HDInsight has three ZooKeeper quorums running in parallel with each other. One quorum decides the active headnode in a cluster on which HDInsight HA services should run. Another quorum is used to coordinate HA services provided by Apache. If a ZooKeeper node fails, the remaining nodes in the quorum will elect a new leader and continue to function normally.
Regarding your second question, clients do not need to write any code or manage ZooKeeper nodes in HDInsight. Azure HDInsight takes care of the ZooKeeper nodes and provides a fully managed service. Clients can simply use the ZooKeeper service provided by HDInsight to coordinate their distributed applications.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.