cdh5.14.2安装phoenix后开启事务支持

本文档详细介绍了在CDH5.14.2环境下,如何安装Phoenix并开启事务支持。首先,需要在客户端和服务端的`hbase-site.xml`文件中添加特定配置,然后重启HBase。遇到的问题包括Guava版本过低导致的错误和配置未生效。解决方法是更新Guava版本和修改`tephra-env.sh`文件以确保加载正确配置。最后,成功启动Transaction Service并在HBase Master节点上使用Phoenix客户端创建事务表。
摘要由CSDN通过智能技术生成

按照官网进行配置

http://phoenix.apache.org/transactions.html

1、Add the following config to your client side hbase-site.xml file to enable transactions:

客户端 hbase-site.xml配置文件 添加配置

 

<property>
  <name>phoenix.transactions.enabled</name>
  <value>true</value>
</property>

 

 

2、Add the following config to your server side hbase-site.xml file to configure the transaction manager: The “Transaction Server Configuration” section of Tephra describes the available configuration options.

服务端 hbase-site.xml配置文件 添加配置

<property>
  <name>data.tx.snapshot.dir</name>
  <value>/tmp/tephra/snapshots</value>
</property>

 

<property>
  <name>data.tx.timeout</name>
  <value>60</value>
</property>

 

 

3、重启Hbase,使配置生效。

4、以上是官方文档给的配置,配好并不行

要在客户端和服务端的 hbase-site.xml配置文件 都添加以上三个配置

 

 

 

重启Hbase使配置生效

5、通过命令查找   transaction service. 启动命令  tephra

在其中一个hbase的HRegionServer上启动transaction service

find / -name tephra
cd /opt/cloudera/parcels/APACHE_PHOENIX-4.14.0-cdh5.14.2.p0.3/lib/phoenix/bin/
./tephra start
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

非ban必选

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值