当前位置:网站首页>Phoenix安装教程
Phoenix安装教程
2022-06-28 23:46:00 【Tancy.】
Hadoop 生态圈系列
前期准备
Phoenix 是基于HBase的,需要安装HBase,相当于是HBase的一个皮肤。
具体介绍可见Phoenix官网
因此,Phoenix的环境要求,要在HBase的基础上完成,
即是 :Hadoop + Zookeeper +HBase
注意:不同版本的HBase要对应不同版本的Phoenix,版本不同会报错,
环境配置
安装
安装解压
tar -zxvf xxxxx -C /指定目录
解压过程会有点慢,正常的。改个文件名
mv xxxx xxxx
Phoenix 文件非常简单,三个jar包
分发Server包
先将Phoenix的server包拷贝到HBase的lib目录中cp phoenix-server-hbase-2.4-5.1.2.jar /hbase目录下/lib
例如:cp phoenix-server-hbase-2.4-5.1.2.jar /export/server/hbase-2.4.8/lib
然后再用xsync分发到集群上xsync /export/server/hbase-2.4.8/lib/phoenix-server-hbase-2.4-5.1.2
至此已经部署好Phoenix,因为只是个皮肤,所以只在一台服务器上安装即可
配置环境变量
创建环境变量文件
cd /etc/profile.dvim phoenix.sh写入以下内容
这里的路径根据自己的phoenix路线配置
export PHOENIX_HOME=/export/server/phoenix
export PHOENIX_CLASSPATH=$PHOENIX_HOME
export PATH=$PATH:$PHOENIX_HOME/bin
可用 pwd 看自己的phoenix 路径
- 更新环境变量
source /etc/profile
进入Phoenix
- 重启HBase
- 启动Phoenix
在Phoenix的bin目录下,有一个sqlline.py文件,是进入phoenix的文件
命令:sqlline.py hadoop1,hadoop2,hadoop3:2181
这里是相对路径启动,绝对路径要写完整sqlline.py所在位置,后面的hadoop1是主机名,根据自己的主机名写,就是zookeeper的启动端口
边栏推荐
- [state machine design] Moore, Mealy state machine, three-stage, two-stage and one-stage state machine writing specification
- Yyds dry goods count 【 vs code work record III 】 set vs code format
- PHP uses endroid/qrcode QR code to generate, and Gd library generates sharing posters
- Puma joins hands with 10ktf shop to launch its Web3 cooperation project with the largest scale so far
- I can't sleep
- Design e-commerce seckill system
- PHP 使用endroid/qrcode 二维码生成, GD库生成分享海报
- frameworks/base/core/res/res/values/symbols. Xml:3915: error: no definition for declared symbol solution
- Quartz explanation and use
- Hesitating root sound
猜你喜欢

Behaviortree in ros2

stm32F407-------LCD
![[word Tutorial Series Part 1] how to remove arrows in word tables](/img/c7/dc57002b0e9d433c4dfac15d53713d.png)
[word Tutorial Series Part 1] how to remove arrows in word tables

Stm32f407------- general timer

"Five considerations" for safe use of the Internet

TypeScript--第四节:函数

Yyds dry goods inventory building knowledge map from scratch with neo4j (I)

Finally, someone explained the cloud native architecture

Have you ever met a fake interview in a job interview? How to avoid?

Stm32f407 ------- IO pin multiplexing mapping
随机推荐
在线买股票开户安全嘛?
When dialogfragment's onstop is completely invisible, call disass to exit the interface and report an error. Solution
Be on the list again! Know that Chuangyu was selected as one of the top 50 competitive enterprises in China's network security industry in 2022
Analysis of CSRF Cross Site Request Forgery vulnerability
Baidu knows the crawler, and obtains the dialogue below the comment according to the question Id, clue ID and comment ID
Behaviortree in ros2
Don't ask me how to do UI automation test again
Lock4j -- distributed locking Middleware -- use / instance
TypeScript --第三节:接口
stm32F407-------RTC实时时钟
SQL note 2 [MySQL]
解决ConfigParser解析中文问题
是使用local_setup.bash 还是 setup.bash
融云通信解决方案 破解企业沟通痛点
Stm32f407----- register address name mapping analysis
自动化测试的生命周期是什么?
一条update语句到底加了多少锁?带你深入理解底层原理
《英语语法新思维 基础版2》读书笔记(一)
Yyds dry goods count 【 vs code work record III 】 set vs code format
[matlab] function definition and use
