安装hbase

该文描述了如何在Linux环境下进行HBase的伪分布式安装,包括解压安装文件,编辑bash_profile设置环境变量,修改hbase-env.sh和hbase-site.xml配置文件,启动HBase服务,并通过jps检查服务状态。此外,还介绍了使用hbaseshell进行交互式操作的方法。
摘要由CSDN通过智能技术生成

HBase pseudo distributedmode installation

  1. Skip install vmware workstation(you can doc)

  1. Skip install centOS (you can seedoc)

  1. Skip install Hadoop-2.7.3 (seemy video)

  1. install hbase in /trainingfolder

tar -zvxf /tools/hbase-1.3.1-bin.tar.gz -C /training/

  1. Edit bash profile

vi ~/.bash_profile

(*) Add this information:

exportHBASE_HOME=/training/hbase-1.3.1

exportPATH=$HBASE_HOME/bin:$PATH

  1. makeenvironment effects

source ~/.bash_profile

  1. change hbase configuration files

cd/training/hbase-1.3.1/conf

  1. edit hbase environment

vi hbase-env.sh

(*) Find and edit this information(press /and find)

exportJAVA_HOME=/training/jdk1.8.0_241

export HBASE_MANAGES_ZK=true

  1. vi hbase-site.xml

  1. add this information:

<property>

<name>hbase.rootdir</name>

<value>hdfs://niit01:9000/hbase</value>

</property>

<property>

<name>hbase.cluster.distributed</name>

<value>true</value>

</property>

<property>

<name>hbase.zookeeper.quorum</name>

<value>niit01</value>

</property>

<property>

<name>dfs.replication</name>

<value>1</value>

</property>

  1. vi regionservers

  1. add this information:

niit01 (according toyour host name)

  1. start hbase using this:

start-all.sh

start-hbase.sh

  1. if your hbase startssuccessfully you will see this:

  1. check:

jps

if successful you can see this:

  1. to start working in hbase usethis command:

hbaseshell

  1. once you are in hbase shell youcan check with following commands:

status

list

  1. to stop hbase:

stop-hbase.sh

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值