Hadoop big data platform construction and application (2) HBase installation

Foreword:

HBase is an open, column-oriented open source database. Suitable for unstructured data storage databases.

High-reliability, high-performance, column-oriented, scalable distributed storage system, which can build large-scale structured storage clusters on cheap PC-servers.

Can quickly access massive structured data and make full use of HDFS fault tolerance.

Basic environment preparation:

Prepare the hadoop environment

unzip files:

In order to facilitate the later hbase file path setting

Delete the hbae folder created in the ftp tool before

Then change the file package after decompression of hbase to hbase

rm -rf hbase //删除创建的文件夹

 格式:mv hbase.zip(原名称)  hbase  //更改文件名称

Habase installation:

tar -xzvf ha//将Hbase解压到/home目录下,

sudo mv /opt/ha    /home/hbase //将文件改名,方便后期的使用。

Configure environment variables:

Add the bin directory under the hbase folder to the PATH so that the startup process does not need to be in the /home/hbase directory.

配置环境变量:
root@user01:/home/hbase/conf# vi /root/.bashrc
添加
:/home/hbase/bin

将以下代码,添加到末尾
export PATH=$PATH:/home/hbase/bin //添加后,保存退出。

Next make the environment variables take effect:

source /root/.bashrc //生效指令

Add HBash permissions:

cd /home

root@user01:/home# chown -R user01 ./hbase      //hadoop是主机的用户名

格式:chown -R hadoop ./hbase //这里的hadoop识字的自己的用户名,依据自己的主机用户名添加

The above operations are completed, check whether HBash is successfully installed:

hbase version //检查版本

to sum up:

Not finished, please watch the next episode!

Guess you like

Origin blog.csdn.net/qq_43575090/article/details/108814175