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 <firstname.lastname@example.org> wrote:
I removed the following from hbase-site.xml and tephra started correctly:
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)
Any ideas how this can be fixed?
On 31/03/2016 4:47 AM, Mujtaba Chohan wrote:
- mujtaba- Check for exception starting tephra in /tmp/tephra-*/tephra-service-*.log (assuming this is the log location configured in your tephra-env.sh)Few pointers:- phoenix-server-*-runnable.jar and phoenix-*-server.jar should be enough for query server. Client jar would only duplicate HBase classes in hbase/lib.
- 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.
On Wed, Mar 30, 2016 at 2:54 AM, F21 <email@example.com> 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:
In the hbase-site.xml of the phoenix query server, add:
For the master, copy the following to hbase/lib:
Also, copy tephra and tephra-env.sh to hbase/bin
On the region server, copy the following to hbase/lib:
For the phoenix query server, copy the following to hbase/lib:
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
* tephra is not running
Any pointers appreciated! :)