Hbase深入学习(二) 安装hbase

This guidedescribes setup of a standalone hbase instance that uses the local filesystem. Itleads you through creating a table, inserting rows via the hbase shell, andthen cleaning up and shutting down your standalone hbase instance.

Uncompress thehbase download file, before starting it, edit conf/hbase-site.xml, the file youwrite your site-specific configurations into. Set hbase.rootdir, the directoryhbase writes data to, and hbase.zookeeper.property.datadir, the director zookeeperwrites its data too:

<?xmlversion="1.0"?>

<?xml-stylesheettype="text/xsl" href="configuration.xsl"?>

<configuration>

<property>

<name>hbase.rootdir</name>

<value>file:///DIRECTORY/hbase</value>

</property>

<property>

<name>hbase.zookeeper.property.dataDir</name>

<value>/DIRECTORY/zookeeper</value>

</property>

</configuration>

Replace DIRECTORYin the above with the path to the directory you would have HBase and ZooKeeperwrite their data. By default, hbase.rootdir is set to /tmp/hbase-${user.name}and similarly so for the default ZooKeeper data location which means you'lllose all your data whenever your server reboots unless you change it (Mostoperating systems clear /tmp on restart).

Edit hbase-config.sh,export JAVA_HOME=/export/opt/jrockit/6.0_14R27.6.5l64

$ ./start-hbase.sh

[WARN ]-XX:OnOutOfMemoryError=kill -9 %p is not a valid VM option. Ignoring

[WARN ]-XX:+UseConcMarkSweepGC is not a valid VM option. Ignoring

starting master,logging to /home/yj70978/hbase-0.94.11/bin/../logs/hbase-yj70978-master-retailvm1d.out

[WARN ]-XX:OnOutOfMemoryError=kill -9 %p is not a valid VM option. Ignoring

[WARN ]-XX:+UseConcMarkSweepGC is not a valid VM option. Ignoring

$ ps -ef | grephbase

yj70978  25111    1 42 03:33 pts/4    00:00:06/export/opt/jrockit/6.0_14R27.6.5l64/bin/java -XX:OnOutOfMemoryError=kill -9 %p-Xmx1000m -XX:+UseConcMarkSweepGC-Dhbase.log.dir=/home/yj70978/hbase-0.94.11/bin/../logs-Dhbase.log.file=hbase-yj70978-master-retailvm1d.log -Dhbase.home.dir=/home/yj70978/hbase-0.94.11/bin/..-Dhbase.id.str=yj70978 -Dhbase.root.logger=INFO,DRFA-Djava.library.path=/home/yj70978/hbase-0.94.11/bin/../lib/native/Linux-amd64-64-Dhbase.security.logger=INFO,DRFAS -classpath /home/yj70978/hbase-0.94.11/bin/../conf:/export/opt/jrockit/6.0_14R27.6.5l64/lib/tools.jar:/home/yj70978/hbase-0.94.11/bin/..:/home/yj70978/hbase-0.94.11/bin/../hbase-0.94.11.jar:/home/yj70978/hbase-0.94.11/bin/../hbase-0.94.11-tests.jar:/home/yj70978/hbase-0.94.11/bin/../lib/activation-1.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/asm-3.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/avro-1.5.3.jar:/home/yj70978/hbase-0.94.11/bin/../lib/avro-ipc-1.5.3.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-beanutils-1.7.0.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-beanutils-core-1.8.0.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-cli-1.2.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-codec-1.4.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-collections-3.2.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-configuration-1.6.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-digester-1.8.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-el-1.0.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-httpclient-3.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-io-2.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-lang-2.5.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-logging-1.1.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-math-2.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/commons-net-1.4.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/core-3.1.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/guava-11.0.2.jar:/home/yj70978/hbase-0.94.11/bin/../lib/hadoop-core-1.0.4.jar:/home/yj70978/hbase-0.94.11/bin/../lib/high-scale-lib-1.1.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/httpclient-4.1.2.jar:/home/yj70978/hbase-0.94.11/bin/../lib/httpcore-4.1.3.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jackson-core-asl-1.8.8.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jackson-jaxrs-1.8.8.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jackson-mapper-asl-1.8.8.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jackson-xc-1.8.8.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jamon-runtime-2.3.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jasper-compiler-5.5.23.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jasper-runtime-5.5.23.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jaxb-api-2.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jaxb-impl-2.2.3-1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jersey-core-1.8.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jersey-json-1.8.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jersey-server-1.8.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jettison-1.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jetty-6.1.26.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jetty-util-6.1.26.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jruby-complete-1.6.5.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jsp-2.1-6.1.14.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jsp-api-2.1-6.1.14.jar:/home/yj70978/hbase-0.94.11/bin/../lib/jsr305-1.3.9.jar:/home/yj70978/hbase-0.94.11/bin/../lib/junit-4.10-HBASE-1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/libthrift-0.8.0.jar:/home/yj70978/hbase-0.94.11/bin/../lib/log4j-1.2.16.jar:/home/yj70978/hbase-0.94.11/bin/../lib/metrics-core-2.1.2.jar:/home/yj70978/hbase-0.94.11/bin/../lib/netty-3.2.4.Final.jar:/home/yj70978/hbase-0.94.11/bin/../lib/protobuf-java-2.4.0a.jar:/home/yj70978/hbase-0.94.11/bin/../lib/servlet-api-2.5-6.1.14.jar:/home/yj70978/hbase-0.94.11/bin/../lib/slf4j-api-1.4.3.jar:/home/yj70978/hbase-0.94.11/bin/../lib/slf4j-log4j12-1.4.3.jar:/home/yj70978/hbase-0.94.11/bin/../lib/snappy-java-1.0.3.2.jar:/home/yj70978/hbase-0.94.11/bin/../lib/stax-api-1.0.1.jar:/home/yj70978/hbase-0.94.11/bin/../lib/velocity-1.7.jar:/home/yj70978/hbase-0.94.11/bin/../lib/xmlenc-0.52.

you should now havea running standalone hbase instance. In standalone mode, hbase runs all daemonsin the one jvm;i.e. both the hbase and zookeeper daemons. Hbase logs can befound in the logs subdirectory. Check them out especially of it seems hbase hadtrouble starting.

Log in here: /home/yj70978/hbase-0.94.11/bin/../logs/hbase-yj70978-master-retailvm1d.out

Hbase深入学习(二) 安装hbase的更多相关文章

  1. hbase总结(二)-hbase安装

    本篇介绍两种HBase的安装方式:本地安装方式和伪分布式安装方式. 安装的前提条件是已经安装成功了hadoop,并且hadoop的版本号要和hbase的版本号相匹配. 我将要安装的hbase是hbas ...

  2. HBase 系列(二)—— HBase 系统架构及数据结构

    一.基本概念 一个典型的 Hbase Table 表如下: 1.1 Row Key (行键) Row Key 是用来检索记录的主键.想要访问 HBase Table 中的数据,只有以下三种方式: 通过 ...

  3. YII2.0学习二 安装adminlte 后台模板

    控制台切换到安装目录wwwroot/shanghai/ 修改一下composer镜像地址:composer 使用中国镜像 运行 composer require dmstr/yii2-adminlte ...

  4. HBase 学习之一 <<HBase使用客户端API动态创建Hbase数据表并在Hbase下导出执行>>

    HBase使用客户端API动态创建Hbase数据表并在Hbase下导出执行                       ----首先感谢网络能够给我提供一个开放的学习平台,如果没有网上的技术爱好者提供 ...

  5. Hbase总结(一)-hbase命令,hbase安装,与Hive的区别,与传统数据库的区别,Hbase数据模型

    Hbase总结(一)-hbase命令 下面我们看看HBase Shell的一些基本操作命令,我列出了几个常用的HBase Shell命令,如下: 名称 命令表达式 创建表 create '表名称', ...

  6. HBase学习之路 (二)HBase集群安装

    前提 1.HBase 依赖于 HDFS 做底层的数据存储 2.HBase 依赖于 MapReduce 做数据计算 3.HBase 依赖于 ZooKeeper 做服务协调 4.HBase源码是java编 ...

  7. hbase学习(二)hbase单机和高可用完全分布式安装部署

    hbase版本 2.0.4  与hadoop兼容表http://hbase.apache.org/book.html#hadoop  我的 hadoop版本是3.1   1.单机版hbase 1.1解 ...

  8. 【Hbase学习之二】Hbase 搭建

    环境 虚拟机:VMware 10 Linux版本:CentOS-6.5-x86_64 客户端:Xshell4 FTP:Xftp4 jdk8 hadoop-3.1.1 hbase-2.1.3 一.单机模 ...

  9. HBase 系列(二)安装部署

    HBase 系列(二)安装部署 本节以 Hadoop-2.7.6,HBase-1.4.5 为例安装 HBase 环境.HBase 也有三种模式:本地模式.伪分布模式.分布模式. 一.环境准备 (1) ...

随机推荐

  1. 处理emacs-org模式TODO的一个脚本

    处理前: 处理后: Table of Contents 1 前言 2 中文的处理 2.1 vim相关 2.2 perl 相关 3 时间相关 4 程序解析 1 前言 最近风帆问我一个问题,也就是处理or ...

  2. flexbox自动完成

    1.引入文件 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ty ...

  3. 【HDU1514】Stars(树状数组)

    绝对大坑.千万记住树状数组0好下标位置是虚拟节点.详见大白书P195.其实肉眼看也能得出,在add(有的也叫update)的点修改操作中如果传入0就会死循环.最后TLE.所以下标+1解决问题.上代码! ...

  4. jdbc资料收集

    1.Hibernate史上最简单的Hibernate入门简介http://blog.csdn.net/doodoofish/article/details/43207/ jdbc不足 尽管JDBC在J ...

  5. pod setup 报CocoaPods was not able to update the `master` repo 错误解决办法

    先删除全局的缓存: $ sudo rm -fr ~/Library/Caches/CocoaPods/ $ sudo rm -fr ~/.cocoapods/repos/master/ 还不行的话就把 ...

  6. nginx 采用https 协议通信配置

    在网络通信中,使用抓包软件可以对网络请求进行分析,并进行重放攻击,重放攻击的解决方案一般是使用一个变化的参数,例如RSA加密的时间戳,但考虑到网络传输时延,时间戳需要有一定的误差容限,这样仍然不能从根 ...

  7. All X(思维)

    All X Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Subm ...

  8. 初步swift语言学习笔记9(OC与Swift杂)

    笔者:fengsh998 原文地址:http://blog.csdn.net/fengsh998/article/details/34440159 转载请注明出处 假设认为文章对你有所帮助,请通过留言 ...

  9. SQL Server无法打开用户默认数据库,登录失败,用户‘sa’登录失败,错误:4064的解决方法

    用windows验证方式进入Management Studio, 安全性 > 用户名 > 右击sa > 属性 > 把默认数据库选“master”

  10. T4运行时模板

    可以通过Visual Studio运行时文本模板在您的应用程序在运行时生成文本字符串. 执行应用程序的计算机不必具有 Visual Studio. 运行库模板有时称为"预处理文本模板&quo ...