魅腿吧,料酒的用法,广州话字典
hbase 单机安装部署及phoneix 单机安装
hbase 下载 (需先配置jdk)
https://www.apache.org/dyn/closer.lua/hbase/2.0.1/hbase-2.0.1-bin.tar.gz
解压安装
tar -xzvf hbase-2.0.01-bin.tar.gz mv hbase-2.0.0.1-ibin hbase mv hbase-2.0.0.1 hbase mv hbase /opt
修改配置文件
cd /opt/hbase/conf/ vi hbase-site.xml
配置文件修改
<configuration> <property> <name>hbase.rootdir</name> <value>file:////数据存放路径</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> </configuration>
启动 hbase
cd /opt/hbase /bin/start-hbase.sh
修改环境变量
cd ~ vi /etc/profile
环境变量配置
export hbase_home=/opt/hbase export path=$path:$hbase_home/bin
安装测试
hbase shell list
安装phoneix
下载
http://www.apache.org/dyn/closer.lua/phoenix/apache-phoenix-5.0.0-hbase-2.0/bin/apache-phoenix-5.0.0-hbase-2.0-bin.tar.gz
解压到目录
将
cp phoenix-*-server.jar /opt/hbase/lib cp phoenix-core*.jar /opt/hbase/lib
修改 hosts文件(必须配置)
127.0.0.1 localhost
重启habse
启动phoneix
./sqlline.py localhost:2181
可能报错,如果报错将所有的jar 包复制到habse/lib下; 因为启动hbase时会创建四张表(会有缺包现象)
重新启动
0: jdbc:phoenix:localhost:2181> !tables +------------+--------------+-------------+---------------+----------+------------+----------------------------+-------------+ | table_cat |table_schem |table_name | table_type |remarks |type_name |self_referencing_col_name |ref_generat | +------------+--------------+-------------+---------------+----------+------------+----------------------------+-------------+ | |system |catalog |system table | | | | | | |system |function |system table | | | | | | |system |sequence |system table | | | | | | |system |stats |system table | | | | | +------------+--------------+-------------+---------------+----------+------------+----------------------------+-------------+
启动成功,到此结束!!!欢迎学习!!
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
linux下文本编辑器vim的使用方法(复制、粘贴、替换、行号、撤销、多文件操作)
网友评论