I am working to setup a small cloud of 8 nodes. All slave nodes are attached to a standalone switch. The master node, which has zookeeper, namenode and jobtracker has two nics: one on the standalone switch and one to the main network.
I was hoping that I could run java code to query the cloud through the master from any system on the main network. Is this possible or will I have to run the code on the master node with this setup? Currently I am getting this error:
ZooKeeperInstance zki = new ZooKeeperInstance("cloud", "master-server");
System.err.println("Got zookeeper instance!");
Connector conn = zki.getConnector("root", "somepassword");
System.err.println("never get here.");
12/03/26 23:24:03 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=master-server sessionTimeout=30000 watcher=org.apache.accumulo.core.zookeeper.ZooSession$AccumuloWatcher@85af80
12/03/26 23:24:03 INFO zookeeper.ClientCnxn: Opening socket connection to server /184.108.40.206:2181 (fake IP)
12/03/26 23:24:03 INFO zookeeper.ClientCnxn: Socket connection established to master-server/220.127.116.11:2181, initiating session
12/03/26 23:24:03 INFO zookeeper.ClientCnxn: Session establishment complete on server master-server/18.104.22.168:2181, sessionid = 0x1365226ee5d0039, negotiated timeout = 30000
Got zookeeper instance!
12/03/26 23:24:25 WARN impl.ServerClient: Failed to find an available server in the list of servers: [10.10.10.101:9997:9997 (120000), 10.10.10.102:9997:9997 (120000)]
Thanks in advance,