{"action":"created","issue":{"url":"https://api.github.com/repos/thinkaurelius/titan/issues/1168","labels_url":"https://api.github.com/repos/thinkaurelius/titan/issues/1168/labels{/name}","comments_url":"https://api.github.com/repos/thinkaurelius/titan/issues/1168/comments","events_url":"https://api.github.com/repos/thinkaurelius/titan/issues/1168/events","html_url":"https://github.com/thinkaurelius/titan/issues/1168","id":110739302,"number":1168,"title":"Where to specify the Zookeeper Quorum when its in standalone mode?","user":{"login":"antonpious","id":15054021,"avatar_url":"https://avatars.githubusercontent.com/u/15054021?v=3","gravatar_id":"","url":"https://api.github.com/users/antonpious","html_url":"https://github.com/antonpious","followers_url":"https://api.github.com/users/antonpious/followers","following_url":"https://api.github.com/users/antonpious/following{/other_user}","gists_url":"https://api.github.com/users/antonpious/gists{/gist_id}","starred_url":"https://api.github.com/users/antonpious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonpious/subscriptions","organizations_url":"https://api.github.com/users/antonpious/orgs","repos_url":"https://api.github.com/users/antonpious/repos","events_url":"https://api.github.com/users/antonpious/events{/privacy}","received_events_url":"https://api.github.com/users/antonpious/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-09T21:31:45Z","updated_at":"2015-10-25T05:35:33Z","closed_at":null,"body":"I have setup Titan 1.0.0-hadoop1 with storage backend as two node hbase cluster. In the titan-hbase.properties I have specified the \r\nstorage.backend=hbase\r\nstorage.hostname=192.168.0.195,192.168.0.128\r\n\r\nI have setup hbase to use a standalone zookeeper at 192.168.0.195 which means that zookeeper is not running on both the nodes but hbase is configured to use a remote zookeeper ensemble.\r\n\r\nNow, I am trying to start the titan graph in Cent OS 7\r\n\r\nI go to the titan directory in which both my bin as well as my conf directory are on the same level and issue the command\r\n$ bin/gremlin.sh\r\nand on \r\ngremlin> g = TitanFactory.open('conf/titan-hbase.properties')\r\n\r\nWhen this happens I am finding that Titan wants to connect to both the Zookeeper nodes and I get the following exception\r\n13:43:03 WARN  org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper  - Possibly transient ZooKeeper, quorum=192.168.0.128:2181,192.168.0.195:2181, exception=org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid\r\n\r\n[INFO] ZooKeeper - Initiating client connection, connectString=192.168.0.128:218                            1,192.168.0.195:2181 sessionTimeout=90000 watcher=catalogtracker-on-hconnection-                            0x5d25e6bb, quorum=192.168.0.128:2181,192.168.0.195:2181, baseZNode=/hbase\r\n[INFO] RecoverableZooKeeper - Process identifier=catalogtracker-on-hconnection-0                            x5d25e6bb connecting to ZooKeeper ensemble=192.168.0.128:2181,192.168.0.195:2181\r\n[INFO] ClientCnxn$SendThread - Opening socket connection to server /192.168.0.12                            8:2181\r\n[WARN] ClientCnxn$SendThread - Session 0x0 for server null, unexpected error, cl                            osing socket connection and attempting reconnect\r\njava.net.ConnectException: Connection refused\r\n        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\r\n        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717                            )\r\n        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)\r\n\r\n\r\nSince I do not have Zookeeper running on both nodes of hbase, where do I specify the zookeeper nodes separately.\r\n\r\nThe strange thing is when I now execute the following\r\n\r\nfrom the Titan base directory\r\nI do a cd to bin so the current directory is bin\r\n\r\nbin$ bash gremlin.sh\r\nand now create the graph\r\ngremlin> g = TitanFactory.open('../conf/titan-hbase.properties')\r\nnote the .. to say that conf directory is on top\r\nI get the correct prompt without any warnings\r\n==>standardtitangraph[hbase:[192.168.0.195, 192.168.0.128]]\r\n\r\n\r\nThe other issue is when invoked from the rexster the command that is called seems to be the one that is causing the warning. \r\n\r\n\r\nHow do I make sure that the one that is working is the default one to initiate? \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/thinkaurelius/titan/issues/comments/150894110","html_url":"https://github.com/thinkaurelius/titan/issues/1168#issuecomment-150894110","issue_url":"https://api.github.com/repos/thinkaurelius/titan/issues/1168","id":150894110,"user":{"login":"fengkai9","id":10541228,"avatar_url":"https://avatars.githubusercontent.com/u/10541228?v=3","gravatar_id":"","url":"https://api.github.com/users/fengkai9","html_url":"https://github.com/fengkai9","followers_url":"https://api.github.com/users/fengkai9/followers","following_url":"https://api.github.com/users/fengkai9/following{/other_user}","gists_url":"https://api.github.com/users/fengkai9/gists{/gist_id}","starred_url":"https://api.github.com/users/fengkai9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengkai9/subscriptions","organizations_url":"https://api.github.com/users/fengkai9/orgs","repos_url":"https://api.github.com/users/fengkai9/repos","events_url":"https://api.github.com/users/fengkai9/events{/privacy}","received_events_url":"https://api.github.com/users/fengkai9/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T05:35:33Z","updated_at":"2015-10-25T05:35:33Z","body":"change the storage.hostname=192.168.0.195\r\nwhen titan connect hbase, it will set hbase.zookeeper.quorum=192.168.0.195"}}