You definitely need <name>hbase.zookeeper.quorum</name> set to be able to connect. I think what's happening is since you have phoenix client jar on classpath (which is not needed as hbase/lib/* + phoenix-server.jar on classpath should contain all the necessary libraries) contains guava v13 classes bundled however Tephra works with guava v12 which is already in HBase/lib directory.
To solve see, either remove phoenix-client.jar from classpath and see if it complains about any missing library that you can add ....or.... remove guava classes which are bundled in Phoenix-client.jar and then start Tephra. On Wed, Mar 30, 2016 at 5:07 PM, F21 <[email protected]> wrote: > I removed the following from hbase-site.xml and tephra started correctly: > > <property> > <name>hbase.zookeeper.quorum</name> > <value>f826338-zookeeper.f826338</value> > </property> > > However, it now keeps trying to connect to zookeeper on localhost, which > wouldn't work, because my zookeeper is on another host: > > 2016-03-31 00:06:21,972 WARN [main-SendThread(localhost:2181)] > zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, > closing socket connection and attempting reconnect > java.net.ConnectException: Connection refused > at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) > at > sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) > at > org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) > at > org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) > > Any ideas how this can be fixed? > > > > On 31/03/2016 4:47 AM, Mujtaba Chohan wrote: > > Few pointers: > > - phoenix-core-*.jar is a subset of phoenix-*-server.jar so just > phoenix-*-server.jar in hbase/lib is enough for region servers and master. > - phoenix-server-*-runnable.jar and phoenix-*-server.jar should be enough > for query server. Client jar would only duplicate HBase classes in > hbase/lib. > - Check for exception starting tephra in > /tmp/tephra-*/tephra-service-*.log (assuming this is the log location > configured in your tephra-env.sh) > > - mujtaba > > > On Wed, Mar 30, 2016 at 2:54 AM, F21 <[email protected]> wrote: > >> I have been trying to get tephra working, but wasn't able to get it >> starting successfully. >> >> I have a HDFS and HBase 1.1 cluster running in docker containers. I have >> confirmed that Phoenix, HDFS and HBase are both working correctly. Phoenix >> and the Phoenix query server are also installed correctly and I can access >> the cluster using Squirrel SQL with the thin client. >> >> Here's what I have done: >> >> In the hbase-site.xml of the region servers and masters, add the >> following: >> >> <property> >> <name>data.tx.snapshot.dir</name> >> <value>/tmp/tephra/snapshots</value> >> </property> >> >> <property> >> <name>data.tx.timeout</name> >> <value>60</value> >> </property> >> >> In the hbase-site.xml of the phoenix query server, add: >> >> <property> >> <name>phoenix.transactions.enabled</name> >> <value>true</value> >> </property> >> >> For the master, copy the following to hbase/lib: >> phoenix-4.7.0-HBase-1.1-server >> phoenix-core-4.7.0-HBase-1.1 >> >> Also, copy tephra and tephra-env.sh to hbase/bin >> >> On the region server, copy the following to hbase/lib: >> phoenix-4.7.0-HBase-1.1-server >> phoenix-core-4.7.0-HBase-1.1 >> >> For the phoenix query server, copy the following to hbase/lib: >> phoenix-server-4.7.0-HBase-1.1-runnable >> phoenix-4.7.0-HBase-1.1-client >> >> This is what I get when I try to start tephra on the master: >> >> root@f826338-hmaster1:/opt/hbase/bin# ./tephra start >> Wed Mar 30 09:54:08 UTC 2016 Starting tephra service on >> f826338-hmaster1.f826338 >> Running class co.cask.tephra.TransactionServiceMain >> >> root@f826338-hmaster1:/opt/hbase/bin# ./tephra status >> checking status >> * tephra is not running >> >> Any pointers appreciated! :) >> >> >> > >
