Forum: Building VoltDB Applications

Post: Unable to create voltdb database in enterprise edition

Unable to create voltdb database in enterprise edition
hvadlamani
Nov 29, 2012
I have a test server on which all of the cloudera CDH4 packages are installed. I also installed the VoltDB Enterprise Edition on the same server. I have created a test.sql file and created its catalog file too as test.jar.

When I am using the following command to create VoltDB database I have been getting the following error log.

[root@testvlt02 testdb]# /opt/voltdb/bin/voltdb create catalog test.jar
Build: 2.8.4 voltdb-2.8.4-0-g9d9fbc6-local Enterprise Edition
Connecting to VoltDB cluster as the leader...
FATAL: ZooKeeper server failed to bind to client socket: /127.0.0.1:2181
FATAL: java.net.BindException: Address already in use
VoltDB has encountered an unrecoverable error and is exiting.

The log may contain additional information

Could you please provide some information on the same.
Port Collision
nshi
Dec 3, 2012

FATAL: ZooKeeper server failed to bind to client socket: /127.0.0.1:2181
FATAL: java.net.BindException: Address already in use


The port collision means that there is another program using port 2181 on the same machine. It's possible that you had another VoltDB process or some other program that uses this port. You can use "netstat -lntp | grep 2181" to find out which process is using port 2181.

You can also specify a different ZooKeeper port for VoltDB by passing "zkport ####" to the VoltDB startup script.

--
Ning