brianfrankcooper / YCSB

Yahoo! Cloud Serving Benchmark
Apache License 2.0
4.91k stars 2.22k forks source link

java.lang.NoSuchMethodError: org.apache.hadoop.hbase.AuthUtil.loginClient #1603

Open xshow-xs opened 2 years ago

xshow-xs commented 2 years ago

hadoop-3.3.7 hbase-2.2.7 when run the test

Loading workload... Starting test. Exception in thread "Thread-32" Exception in thread "Thread-37" Exception in thread "Thread-29" Exception in thread "Thread-24" Exception in thread "Thread-38" Exception in thread "Thread-15" Exception in thread "Thread-10" Exception in thread "Thread-60" Exception in thread "Thread-3" Exception in thread "Thread-35" java.lang.NoSuchMethodError: org.apache.hadoop.hbase.AuthUtil.loginClient(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/hbase/security/User; at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:128) at site.ycsb.db.HBaseClient10.init(HBaseClient10.java:150) at site.ycsb.DBWrapper.init(DBWrapper.java:86) at site.ycsb.ClientThread.run(ClientThread.java:91) at java.lang.Thread.run(Thread.java:748) Exception in thread "Thread-4" Exception in thread "Thread-36" Exception in thread "Thread-16" Exception in thread "Thread-41" Exception in thread "Thread-23" Exception in thread "Thread-40" Exception in thread "Thread-58" Exception in thread "Thread-51" Exception in thread "Thread-11" Exception in thread "Thread-55" Exception in thread "Thread-8" Exception in thread "Thread-21" Exception in thread "Thread-5" java.lang.NoSuchMethodError: org.apache.hadoop.hbase.AuthUtil.loginClient(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/hbase/security/User; at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:128) at site.ycsb.db.HBaseClient10.init(HBaseClient10.java:150) at site.ycsb.DBWrapper.init(DBWrapper.java:86) at site.ycsb.ClientThread.run(ClientThread.java:91) at java.lang.Thread.run(Thread.java:748) Exception in thread "Thread-54" java.lang.NoSuchMethodError: org.apache.hadoop.hbase.AuthUtil.loginClient(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/hbase/security/User; at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:128) at site.ycsb.db.HBaseClient10.init(HBaseClient10.java:150) at site.ycsb.DBWrapper.init(DBWrapper.java:86) at site.ycsb.ClientThread.run(ClientThread.java:91) at java.lang.Thread.run(Thread.java:748) Exception in thread "Thread-44" java.lang.NoSuchMethodError: org.apache.hadoop.hbase.AuthUtil.loginClient(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/hbase/security/User; at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:128) at site.ycsb.db.HBaseClient10.init(HBaseClient10.java:150) at site.ycsb.DBWrapper.init(DBWrapper.java:86) at site.ycsb.ClientThread.run(ClientThread.java:91) at java.lang.Thread.run(Thread.java:748) java.lang.NoSuchMethodError: org.apache.hadoop.hbase.AuthUtil.loginClient(Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/hbase/security/User; at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:128) at site.ycsb.db.HBaseClient10.init(HBaseClient10.java:150) at site.ycsb.DBWrapper.init(DBWrapper.java:86) at site.ycsb.ClientThread.run(ClientThread.java:91) at java.lang.Thread.run(Thread.java:748)

bugmenoway commented 1 year ago

试试只保留ycsb自带的jar,不要添加hbase服务的lib下的包