hbase上的ycsb错误

clj7thdc  于 2021-06-09  发布在  Hbase
关注(0)|答案(1)|浏览(425)

我正在尝试让ycsb-0.1.4在cdh5.1.2上测试hbase 0.98.1。我按照这里的指示做了https://github.com/brianfrankcooper/ycsb/wiki/getting-started. 当我运行ycsb测试时,它可以工作,但不会将数据加载到usertable中。在日志文件中看不到任何错误。请参阅下面的命令,操作为零。如何修复?

$  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;
mfuanj7w

mfuanj7w1#

当我面对这个错误时,我正在努力 MultiNode 集群(大约12-16),这是我必须改变的:-
1) 检查您的hbase版本是否正确 YCSB\pom.xml 低于 hbase10\hbase098\hbase094 与单节点或多节点群集中的hbase版本兼容(寻找 hbase10.version )
2) 还提供带有ycsb命令的hbase配置文件路径。这是你的命令: bin/ycsb load hbase -P workloads/workloada -p columnfamily=f1 -s 应该是这样的: bin/ycsb load hbase -P workloads/workloada -cp $HBase_HOME/conf/-p columnfamily=f1 -s 仅供参考:-我没有提供配置文件路径时,我尝试与单节点群集,它的工作。但对于多节点集群,我必须给出配置文件路径。
还有一件事要找, usertable 应具有名为的列族 f1 (默认为 familyworkload 配置文件)
希望有帮助。:)

相关问题