Sam-T
Sam-T

Reputation: 1975

Zookeeper admin server Port

Installed zookeeper 3.5.6 bin on windows. Getting error: Unable to start AdminServer, exiting abnormally org.apache.zookeeper.server.admin.AdminServer$AdminServerException: Problem starting AdminServer on address 0.0.0.0, port 8080 and command URL /commands

Where do I find the AdminServer configuration properties to fix this. In my conf directory the .cfg does not have anything, and I cant find anything anywhere else either?? The documentation is referring to zookeeper.admin.serverPort properties etc.

Upvotes: 21

Views: 24872

Answers (1)

Kamal Kumar
Kamal Kumar

Reputation: 554

By default, Admin Server binds to port 8080, in case port 8080 already in use this exception will be thrown.

Add below property to conf/zoo.cfg file and restart zk server.
admin.serverPort=9876 (other port than 8080)

Or you could disable admin server altogether by
admin.enableServer=false

Upvotes: 52

Related Questions