Loading
2014. 10. 9. 01:14 - Phil lee

hbase zookeep ycsb

http://www.mkyong.com/maven/how-to-install-maven-in-ubuntu/


Zookeeper for HBase

mvn for YCSB

1)

https://github.com/brianfrankcooper/YCSB/wiki/Getting-Started

installing mvn for packaging YCSB

sudo mvn clean package

2) Zookeeper for HBase

blog.naver.com/ryuff88/220096563564


test HBase - start-hbase.sh

test Zookeeper- zkServer.sh start


3) Running Running-a-Workload

https://github.com/brianfrankcooper/YCSB/wiki/Running-a-Workload



The DB interface layer is a java class that execute read, insert, update, delete and scan calls generated by the YCSB Client into calls against your database's API



Environment>>

zookeper- zoo.cfg

dataDir 여기랑 hbase랑 일치
clientPort

Server.1  = master



hbase- hdfs-core.xml
hdfs://localhost:9000/hbase

->일치시켜줘야한다
클라이언트로 해줄꺼면 포트 설정해줘야한다.

<configuration>
    <property>
        <name>hbase.rootdir</name>
        <value>hdfs://localhost:9000/hbase</value>
    </property>
    <property>
        <name>hbase.cluster.distributed</name>
        <value>true</value>
    </property>
    <property>
        <name>hbase.zookeeper.quorum</name>
        <value>localhost</value>
    </property>
    <property>
        <name>dfs.replication</name>
        <value>1</value>
    </property>
    <property>
        <name>hbase.zookeeper.property.dataDir</name>
        <value>/tmp/zookeeper</value>
    </property>
</configuration>


env.sh
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
#export HBASE_CLASSPATH=/usr/lib/hbase/conf
#export HBASE_REGIONSERVERS=/usr/lib/hbase/conf/regionservers
export HBASE_MANAGES_ZK=true


Command for YCSB after creating Table on HBase
./bin/ycsb run hbase -P workloads/workloada -p columnfamily=cf -p recordcount=1000000 -p threadcount=4 >> load.log

HUG8-silberstein.pdf