Hbase: How to specify hostname for Hbase master

后端 未结 4 998
夕颜
夕颜 2021-02-09 00:00

I\'m struggling to setup a Hbase distributed cluster with 2 nodes, one is my machine and one is the VM, using the \"host-only\" Adapter in VirtualBox.

My problem is that

4条回答
  •  孤城傲影
    2021-02-09 00:18

    My host file is like

    127.0.0.1 localhost

    192.168.2.118 shashwat.machine.com shashwat

    make your hosts file as following:

    127.0.0.1 localhost

    For Hadoop

    192.168.56.1 master

    192.168.56.101 slave

    and in hbase conf put following entries :

    
    hbase.rootdir
    hdfs://master:9000/hbase
    
    
    hbase.master
    master:60000
    The host and port that the HBase master runs at.
    
    
    hbase.regionserver.port
    60020
    The host and port that the HBase master runs at.
    
    hbase.cluster.distributed
    true
    
    
    hbase.tmp.dir
    /home/cluster/Hadoop/hbase-0.90.4/temp
    
    
    hbase.zookeeper.quorum
    master
    
    
    dfs.replication
    2
    
    
    hbase.zookeeper.property.clientPort
    2181
    Property from ZooKeeper's config zoo.cfg.
    The port at which the clients will connect.
    
    
    

    If you are using localhost anywhere remove that and replace it with "master" which is name for namenode in your hostfile....

    one morething you can do

    sudo gedit /etc/hostname

    this will open the hostname file bydefault ubuntu will be there so make it master. and restart your system.

    For hbase specify in "regionserver" file inside conf dir put these entries

    master slave

    and restart.everything.

提交回复
热议问题