zoukankan      html  css  js  c++  java
  • ubuntu14.04安装好Hadoo之后接着安装hbase和介绍常用命令

    1.解压

    tar -zxvf hbase-1.0.0-bin.tar.gz
    sudo mv hbase-1.0.0 /opt/hbase
    cd /opt
    sudo chmod -R 775 hbase

    2.修改环境变量
    sudo vim /opt/hbase/conf/hbase-env.sh
    修改$JAVA_HOME为jdk安装目录

    3.修改hbase-site.xml
    添加:

    <configuration>
            <property>
                    <name>hbase.rootdir</name>
                    <value>hdfs://localhost:9000/hbase</value>
            </property>
            <property>
                    <name>hbase.cluster.distributed</name>
                    <value>true</value>
            </property>
    </configuration>

    4.启动hbase
    start-hbase.sh


    5.进入hbase shell
    hbase shell


    6.查看进程
    通过jps,应该会看到一共有9个进程,分别如下:

    3616 NodeManager
    3008 NameNode
    6945 HQuorumPeer
    7010 HMaster
    3302 SecondaryNameNode
    3128 DataNode
    7128 HRegionServer
    3496 ResourceManager
    7209 Jps

  • 相关阅读:
    HDU 3547 DIY Cube
    POJ 2975 Nim
    POJ 1678 I Love this Game!
    POJ 2234 Matches Game
    POJ 3537 Crosses and Crosses
    POJ 3710 Christmas Game
    POJ 1704 Georgia and Bob
    HDU 3923 Invoker
    POJ 2154 Color
    PLM更新自定义CLASS
  • 原文地址:https://www.cnblogs.com/chenlove/p/10736033.html
Copyright © 2011-2022 走看看