当前位置:网站首页>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的启动端口
边栏推荐
- PHP利用CURL实现登录网站后下载Excel文件
- Flutter obtains the coordinate size of any element in the interface through globalkey
- SQL note 2 [MySQL]
- Insomnia last night
- 《英语语法新思维 基础版2》读书笔记(一)
- Machine learning 4-dimension reduction technology
- ES6模块
- IO playback function of FIO
- 入行数字IC验证后会做些什么?
- [software analysis] iterative explanation of software analysis, design and modeling
猜你喜欢

stm32F407-------LCD

Stm32f407 ------- RTC real time clock

MATLAB 学习笔记(6)MATLAB 的 upsample 函数和 downsample 函数

这样学习二叉树

Yyds dry goods inventory building knowledge map from scratch with neo4j (I)
![[machine learning] numerical analysis 02 -- finding roots of arbitrary equations](/img/fd/ec82a50017e692ac90f6e8739b28d3.jpg)
[machine learning] numerical analysis 02 -- finding roots of arbitrary equations
![[mathematical modeling] fmincon() function of MATLAB nonlinear programming](/img/fc/46949679859b1369fcc83d0d8b637c.png)
[mathematical modeling] fmincon() function of MATLAB nonlinear programming

华为22级专家十年心血终成云原生服务网格进阶实战文档,是真的6

ERROR 1067 (42000): Invalid default value for ‘end_time‘ Mysql

Quartz explanation and use
随机推荐
随笔记:重新认识 else if
Design e-commerce seckill system
The secondary market is full of bad news. How should the market go next? One article will show you the general trend
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
从SQL注入绕过最新安全狗WAF中学习fuzz
Yyds dry inventory solution sword finger offer: maximum sum of continuous subarrays (II)
Mysql-5.7.30-winx64 installation free download and installation tutorial
[C Prime plus chapitre II Questions de programmation après la Classe]
百度知道爬虫,根据问题id,线索id,评论id获取评论下面的对话
What is the lifecycle of automated testing?
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
frameworks/base/core/res/res/values/symbols. Xml:3915: error: no definition for declared symbol solution
How to make two objects or arrays equal
Implementation of dynamic timer for quartz
urllib. Parse parses the parameters in the URL connection
随笔记:模拟类数组(array-like)的方法
Oil monkey script learning
TypeScript -- 第七节 枚举
Is it reliable and safe to avoid five in case of stock trading account opening
stm32F407-------外部中断
