Public Repository

Last pushed: 3 months ago
Short Description
Hbase Coprocessor Demo
Full Description

基于IBM Developer网站的HBase coprocessor例子,做了这个docker镜像。使用Ubuntu 16.04镜像。
Tag 01、02使用原来的例子代码,Tag03升级代码,支持Hbase 1.2.5

Tag 03、04 软件版本:
JDK: 1.8.0_121
ProtoBuf:2.6.1 (Ubuntu 1604自带版本)
Hbase: 1.2.5

Tag 01、02 软件版本:
JDK: 1.7.75
ProtoBuf:2.6.1 (Ubuntu 1604自带版本)
Hbase: 0.98-hadoop2

Tag 04: 使用 Hbase 单机 伪分布式模式(对接Hbase 1.2.5)

执行:
source /etc/profile

service ssh start
/root/hadoop-2.7.3/sbin/start-dfs.sh
测试:/root/hadoop-2.7.3/bin/hdfs dfs -ls /

stop-hbase.sh
start-hbase.sh

cd /root/coprocessor/rowCount1
export CLASSPATH=`hbase classpath`
java org.ibm.developerworks.hbaseCoprocessorDemo test1 1 500
java org.ibm.developerworks.hbaseCoprocessorDemo test1 1 600 rowkey

或执行
./test.sh test1 0 998

扩展regionserver进程(扩展成2个进程)

bin/local-regionservers.sh start 2

Tag 03: 使用 Hbase 单机 Standalone模式(对接Hbase 1.2.5)

执行:
source /etc/profile

stop-hbase.sh
start-hbase.sh

cd /root/coprocessor/rowCount1
export CLASSPATH=`hbase classpath`
java org.ibm.developerworks.hbaseCoprocessorDemo test1 1 500
java org.ibm.developerworks.hbaseCoprocessorDemo test1 1 600 rowkey

或执行
./test.sh test1 0 998

Tag 01: 使用 Hbase 单机 Standalone模式

执行:
source /etc/profile

stop-hbase.sh
start-hbase.sh

cd /root/coprocessor/sampleCode/rowCount
export CLASSPATH=`hbase classpath`
java org.ibm.developerworks.hbaseCoprocessorDemo test1 1 500
java org.ibm.developerworks.hbaseCoprocessorDemo test1 1 600 rowkey

Tag 02: 使用 Hbase Pseudo-Distrbuted模式

(有点问题)
执行:
source /etc/profile
service ssh start

stop-hbase.sh
start-hbase.sh

cd /root/coprocessor/sampleCode/rowCount
export CLASSPATH=`hbase classpath`
java org.ibm.developerworks.hbaseCoprocessorDemo test1 1 500
java org.ibm.developerworks.hbaseCoprocessorDemo test1 1 600 rowkey

参考:
https://www.ibm.com/developerworks/cn/opensource/os-cn-hbase-coprocessor1/index.html
https://www.ibm.com/developerworks/cn/opensource/os-cn-hbase-coprocessor2/index.html

Docker Pull Command
Owner
shenqian

Comments (0)