简体   繁体   English

Hbase上的YCSB错误

[英]YCSB error on Hbase

I am trying to get YCSB-0.1.4 to test Hbase 0.98.1 on CDH 5.1.2. 我正在尝试让YCSB-0.1.4在CDH 5.1.2上测试Hbase 0.98.1。 I followed instructions here https://github.com/brianfrankcooper/YCSB/wiki/Getting-Started . 我在这里遵循了https://github.com/brianfrankcooper/YCSB/wiki/Getting-Started的指示。 When I run the YCSB test, it works but its not loading data into the usertable. 当我运行YCSB测试时,它可以工作,但不会将数据加载到用户表中。 Do not see any errors in log files.see command below and the operations are zero. 在日志文件中看不到任何错误。请参阅下面的命令,操作为零。 How to fix ? 怎么修 ?

$  bin/ycsb load hbase -P workloads/workloada -p columnfamily=f1 -s | tee -a workloada.dat
YCSB Client 0.1
Command line: -db com.yahoo.ycsb.db.HBaseClient -P workloads/workloada -p columnfamily=f1 -s -load
Loading workload...
Starting test.
 0 sec: 0 operations;
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.3.2-1031432, built on 11/05/2010 05:32 GMT

14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:host.name=sapphire
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:java.version=1.7.0_65
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:java.home=/usr/java/jdk1.7.0_65/jre
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:java.class.path=/home/YCSB/ycsb-0.1.4/voldemort-binding/conf:/home/YCSB/ycsb-0.1.4/core/lib/core-0.1.4.jar:/home/YCSB/ycsb-0.1.4/gemfire-binding/conf:/home/ /YCSB/ycsb-0.1.4/nosqldb-binding/conf:/home/ /YCSB/ycsb-0.1.4/jdbc-binding/conf:/home/ /YCSB/ycsb-0.1.4/hbase-binding/lib/hbase-binding-0.1.4.jar:/home/ /YCSB/ycsb-0.1.4/hbase-binding/conf:/home/ /YCSB/ycsb-0.1.4/infinispan-binding/conf
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:java.library.path=/opt/oracle/bd_cell12.1.2.0.99_LINUX.X64_140907.2307/cellsrv/lib:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:os.version=2.6.39-400.215.9.el6uek.x86_64
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:user.name=dodo
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:user.home=/home/hbase
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Client environment:user.dir=/home/ /YCSB/ycsb-0.1.4
14/09/23 10:11:12 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=zk:2181,zk1:2181,zk2:2181 sessionTimeout=60000 watcher=hconnection
14/09/23 10:11:12 INFO zookeeper.ClientCnxn: Opening socket connection to server zk1/192.168.27.63:2181
14/09/23 10:11:12 INFO zookeeper.ClientCnxn: Socket connection established to zk1/192.168.27.63:2181, initiating session
14/09/23 10:11:12 INFO zookeeper.ClientCnxn: Session establishment complete on server zk1/192.168.27.63:2181, sessionid = 0x2488ae01865289b, negotiated timeout = 60000
 10 sec: 0 operations;
 20 sec: 0 operations;
 30 sec: 0 operations;
 40 sec: 0 operations;
 50 sec: 0 operations;
 60 sec: 0 operations;
 70 sec: 0 operations;

When I faced this error, i was working on MultiNode cluster (roughly 12-16) and this is what i had to change :- 当我遇到此错误时,我正在使用MultiNode集群(大约12-16),这是我必须更改的:-

1) Check if your HBase version in YCSB\\pom.xml under hbase10\\hbase098\\hbase094 is compatible with HBase version in your Single Node or Multi Node cluster. 1)检查您在hbase10\\hbase098\\hbase094下的YCSB\\pom.xml HBase版本是否与单节点或多节点群集中的HBase版本兼容。 (look for hbase10.version ) (寻找hbase10.version

2) Also provide HBase Configuration file path with ycsb command . 2)还使用ycsb命令提供HBase配置文件路径。 ex. 例如 This is your command :- bin/ycsb load hbase -P workloads/workloada -p columnfamily=f1 -s 这是您的命令: bin/ycsb load hbase -P workloads/workloada -p columnfamily=f1 -s

It should be like this :- bin/ycsb load hbase -P workloads/workloada -cp $HBase_HOME/conf/-p columnfamily=f1 -s 它应该像这样: bin/ycsb load hbase -P workloads/workloada -cp $HBase_HOME/conf/-p columnfamily=f1 -s

FYI :- I have not provided configuration file path when i tried with single node cluster and it worked. 仅供参考 :-当我尝试使用单节点群集并且它起作用时,我没有提供配置文件路径。 But with Multi Node cluster i had to give configuration file path. 但是对于多节点群集,我必须提供配置文件路径。

There is one more thing to look for , usertable should have column family with name f1 (Default is family in workload configuration file) 还有另一件事要寻找, usertable应该具有名称为f1列族(默认为workload配置文件中的family

Hope It helps. 希望能帮助到你。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM