hbase

636379-20181113180649004-140531830.png

636379-20181113225128474-1496601156.png

wget tar 包

去官网下吧,我这里 已经没了。。。
wget hbase-xxx.tar.gz -C /opt/module/

从 hadoop etc/hadoop/下拷贝 两份配置文件到 hbase conff 下

/root/hbase-1.2.8/conf

[root@master conf]# cp /opt/modules/hadoopstandalone/hadoop-2.8.4/etc/hadoop/core-site.xml .
[root@master conf]# cp /opt/modules/hadoopstandalone/hadoop-2.8.4/etc/hadoop/hdfs-site.xml .

1、 修改 hbase-env.sh

export JAVA_HOME=/home/yli/jdk1.8.0_131

由于是 1.8  jdk 注释掉 两行
#export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=256m"
#export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=256m"

保留 zookeeper 管理 hbase
# export HBASE_MANAGES_ZK=true

2、 修改 hbase-site.xml

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
/**
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->
<configuration>
<property>
    <!--hbase.rootdir,HDFS的入口地址,地址和端口要和你的hadoop配置一样(core-site.xml中的 <name>fs.default.name</name>),所有节点公用地址-->
    <name>hbase.rootdir</name>
    <value>hdfs://master:9000/hbase</value>
</property>

<property>  
    <!--hbase.zookeeper.property.dataDir , zookeeper 保持信息的文件,默认为/tmp 重启会丢失-->
    <name>hbase.zookeeper.property.dataDir</name>  
    <value>/opt/modules/zookeeperdataDir</value>  
</property> 
<property >
    <name>hbase.cluster.distributed</name>
    <value>true</value>
    <description>The mode the cluster will be in. Possible values are
      false for standalone mode and true for distributed mode.  If
      false, startup will run all HBase and ZooKeeper daemons together
      in the one JVM.</description>
  </property>
</configuration>

3 进入 hbase bin 目录下 执行

./start-hbase.sh
jps 查看下

636379-20181115230003165-1330028612.png

4 进入 hbase shell

./hbase shell

转载于:https://www.cnblogs.com/Frank99/p/9953664.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值