HBase安装配置
2015-08-14 09:22
369 查看
1、下载hbase安装包
http://www.apache.org/dyn/closer.cgi/hbase/2、将hbase-1.0.1.1-bin.tar.gz 放入自己选好的文件夹下,如/root/software 然后解压。Shell命令如下:tar zxvf hbase-1.0.1.1-bin.tar.gz 3、进入 解压后的hbase-1.0.1.1cd hbase-1.0.1.14、配置文件1) hbase-env.sh取消配置JDK的注释并做并如下修改(我的JDK安装路径):# The java implementation to use. Java 1.7+ required.
export JAVA_HOME=/usr/java/jdk1.7.0_45
2) hbase-site.xml修改如下:<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://10.118.46.22:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>10.118.46.22</value>
</property>
<property>
<name>dfs.replication</name>
<value>3</value>
</property>
</configuration>
5、启动hbase[root@HBMS-DKXD-DEV hbase-1.0.1.1]# bin/start-hbase.sh查看启动是否成功jps 查看是否有下面7758 HRegionServer
7632 HMaster
7572 HQuorumPeer
6、hbase shell命令
[root@HBMS-DKXD-DEV hbase-1.0.1.1]# bin/hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/sherry/hbase-1.0.1.1/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/sherry/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.0.1.1, re1dbf4df30d214fca14908df71d038081577ea46, Sun May 17 12:34:26 PDT 2015
hbase(main):001:0>
http://www.apache.org/dyn/closer.cgi/hbase/2、将hbase-1.0.1.1-bin.tar.gz 放入自己选好的文件夹下,如/root/software 然后解压。Shell命令如下:tar zxvf hbase-1.0.1.1-bin.tar.gz 3、进入 解压后的hbase-1.0.1.1cd hbase-1.0.1.14、配置文件1) hbase-env.sh取消配置JDK的注释并做并如下修改(我的JDK安装路径):# The java implementation to use. Java 1.7+ required.
export JAVA_HOME=/usr/java/jdk1.7.0_45
2) hbase-site.xml修改如下:<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://10.118.46.22:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>10.118.46.22</value>
</property>
<property>
<name>dfs.replication</name>
<value>3</value>
</property>
</configuration>
5、启动hbase[root@HBMS-DKXD-DEV hbase-1.0.1.1]# bin/start-hbase.sh查看启动是否成功jps 查看是否有下面7758 HRegionServer
7632 HMaster
7572 HQuorumPeer
6、hbase shell命令
[root@HBMS-DKXD-DEV hbase-1.0.1.1]# bin/hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/sherry/hbase-1.0.1.1/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/sherry/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.0.1.1, re1dbf4df30d214fca14908df71d038081577ea46, Sun May 17 12:34:26 PDT 2015
hbase(main):001:0>
相关文章推荐
- Facebook's New Real-time Messaging System: HBase to Store 135+ Billion Messages a Month
- Hadoop生态上几个技术的关系与区别:hive、pig、hbase 关系与区别
- Powershell Profiles配置文件的存放位置介绍
- PowerShell入门教程之创建和使用配置文件实例
- SERV-U 的配置文件详解
- php.ini 配置文件的深入解析
- redis2.8配置文件中文翻译版
- PHP配置文件php.ini中打开错误报告的设置方法
- C#中读取App.config配置文件代码实例
- c++实现逐行读取配置文件写入内存的示例
- 关于session在PHP5的配置文件中的详细设置参数说明
- MySQL 配置文件my.cnf 例子最详细翻译
- apache 配置文件解说
- 基于HBase Thrift接口的一些使用问题及相关注意事项的详解
- Android 读取Properties配置文件的小例子
- PHP 配置文件中open_basedir选项作用
- .net 读取非标准配置文件的小例子
- APACHE 配置文件中文版 httpd.conf FOR Apache 2.2.13
- 读取spring配置文件的方法(spring读取资源文件)
- PHPMyadmin 配置文件详解(配置)