apachephoenfix安装及使用方法

这篇文章主要讲解了“apache phoenfix安装及使用方法”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“apache phoenfix安装及使用方法”吧!

在临夏等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供做网站、成都网站设计 网站设计制作定制开发,公司网站建设,企业网站建设,高端网站设计,营销型网站建设,外贸网站制作,临夏网站建设费用合理。

apache phoenfix 可以帮助你使用sql来操作Hbase API, 及优化。

参考官网介绍:https://phoenix.apache.org/Phoenix-in-15-minutes-or-less.html

翻译官方的安装步骤:
    1、Download and expand the latest phoenix-[version]-bin.tar.(下载官方提供tar文件,对应自己的hbase版本)

    2、Add the phoenix-[version]-server.jar to the classpath of all HBase region server and master and remove any previous version. An easy way to do this is to copy it into the HBase lib directory (use phoenix-core-[version].jar for Phoenix 3.x)  (添加 phoenix-[version]-server.jar到所有的region,master server)
    3、Restart HBase. (重启hbase)
    4、Add the phoenix-[version]-client.jar to the classpath of any Phoenix client. ( 添加phoenix-[version]-client.jar到客户端)

测试:

 cd bin/
 ./sqlline.py 192.168.1.19:2181
  • CREATE TABLE IF NOT EXISTS us_population (  state CHAR(2) NOT NULL,  city VARCHAR NOT NULL,  population BIGINT  CONSTRAINT my_pk PRIMARY KEY (state, city));
  • upsert into us_population values('a','b','aa');

  • select * from us_population;

    apache phoenfix安装及使用方法

感谢各位的阅读,以上就是“apache phoenfix安装及使用方法”的内容了,经过本文的学习后,相信大家对apache phoenfix安装及使用方法这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!


本文题目:apachephoenfix安装及使用方法
网页网址:http://lszwz.com/article/pdsiis.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款