Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同一zookeeper下有多个hbase,都启动了phoenix transaction,使用Phoenix 查询引擎会出错 #7

Open
liuyp2018 opened this issue Oct 9, 2019 · 1 comment

Comments

@liuyp2018
Copy link

同一zookeeper下有多个hbase,都启动了phoenix transaction,使用Phoenix 查询引擎执行命令: CREATE TABLE my_table (k BIGINT PRIMARY KEY, v VARCHAR) TRANSACTIONAL=true;时,会报以下错误:
ERROR distributed.TransactionServiceClient: Thrift error for org.apache.tephra.distributed.TransactionServiceClient$2@22df874e: java.net.UnknownHostException: cln-gc0dmmsq
java.lang.RuntimeException: org.apache.phoenix.shaded.org.apache.thrift.transport.TTransportException: java.net.UnknownHostException: cln-gc0dmmsq

@chilianyi
Copy link
Collaborator

tephra 启动时
leaderElection = new LeaderElection(zkClient, "/tx.service/leader", new ElectionHandler()
代码里固定的 zookeeper 路径,导致多个 tephra 无法共用一个 zookeeper。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants