jmeter3.3一直声明找不到类

au9on6nz  于 2021-06-26  发布在  Impala
关注(0)|答案(0)|浏览(284)

我见过很多问题问一些类似于我所问的东西,但出于某种原因,它不适合我。我使用的是jmeter3.3应用程序(目前是最新的),所以这个建议在jmeter的最新版本上可能不起作用。
我试图用jmeter创建一个测试计划来测试我的db。

Database URL: jdbc:impala://server.domain.com:21050/default;auth=noSasl 
JDBC Driver class: com.cloudera.impala.core.ImpalaJDBCDriver

一个答案/建议是将jar(在我的例子中是impalajdbc4.jar)复制到lib dir,然后重新启动jmeter,我做到了。我也把它放在lib/ext目录中。不过,这对我来说还是不管用。我在jmeter.log中不断遇到同样的错误:

Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class com.cloudera.impala.core.ImpalaJDBCDriver. See log file for details.

不确定路径是否重要,但我从以下位置运行jmeter:

$ ~/tmp/apache-jmeter-3.3> bin/jmeter
   and from
$ ~/tmp/apache-jmeter-3.3/bin> jmeter

有什么我不知道的吗?我把它放错地方了吗?我知道驱动程序类在那里,因为我检查了jar文件的内容:

jar tvf ImpalaJDBC4.jar | less

2680 Thu Jan 04 08:11:12 PST 2018 com/cloudera/impala/core/ImpalaJDBCDriver.class

事先谢谢你的帮助。我厌倦了把头撞在墙上。
这是日志。我试图消毒,所以请忽略任何可能不正确的做我的消毒。
2018-02-05 17:14:05321 info o.a.j.u.jmeterutils:将locale设置为en琰u us 2018-02-05 17:14:05331 info o.a.j.jmeter:加载用户属性来自:/users/first.last/tmp/apache-jmeter-3.3/bin/user.properties 2018-02-05 17:14:05,332信息O.A.J.JMe:加载系统属性从:/LST/TMP/APCHACE-JMEDER 3.3/BIN/St.属性2018-02-05 17:14:05336信息O.A.J.JMe:版权所有(C)1998至2017 Apache软件基金会2018-02-05 17:14:05336信息O.A.J.JMe:版本3.3 R1808672018-02-05 17:14:05336 info o.a.j.jmeter:java.version=1.8.0\u 162 2018-02-05 17:14:05336 info o.a.j.jmeter:java.vm.name=java hotspot(tm)64位服务器vm 2018-02-05 17:14:05336 info o.a.j.jmeter:os.name=mac os x 2018-02-05 17:14:05336 info o.a.j.jmeter:os.arch=x86\u 64 2018-02-05 17:14:05337 info o.a.j.jmeter:os.version=10.12.6 2018-02-05 17:14:05,337 info o.a.j.jmeter:file.encoding=utf-8 2018-02-05 17:14:05337 info o.a.j.jmeter:max memory=536870912 2018-02-05 17:14:05337 info o.a.j.jmeter:available processors=8 2018-02-05 17:14:05340 info o.a.j.jmeter:default locale=english(美国)2018-02-05 17:14:05,340 info o.a.j.jmeter:jmeter locale=english(美国)2018-02-05 17:14:05340 info o.a.j.jmeter:jmeterhome=/users/first.last/tmp/apache-jmeter-3.3 2018-02-05 17:14:05340 info o.a.j.jmeter:user.dir=/users/first.last/tmp/apache-jmeter-3.3 2018-02-05 17:14:05,341 info o.a.j.jmeter:pwd=/users/first.last/tmp/apache-jmeter-3.3 2018-02-05 17:14:05342 info o.a.j.jmeter:ip:127.0.0.1 name:msjcit1050435全名:localhost 2018-02-05 17:14:06930 info o.a.j.g.a.lookandfeel命令:使用look and feel:com.apple.laf.aqualookandfeel[mac os x,system]2018-02-05 17:14:06,935 info o.a.j.jmeter:已从org/apache/jmeter/images/icon.properties 2018-02-05 17:14:07722 info o.a.j.e.u.compoundvariable加载图标属性:注意:函数类名称必须包含字符串:“.functions.”2018-02-05 17:14:07,722 info o.a.j.e.u.compoundvariable:注意:函数类名不能包含字符串:'.gui'。2018-02-05 17:14:08320警告o.j.r.pluginmanager:发现jar冲突:/users/first.last/tmp/apache-jmeter-3.3/lib/ext/impalajdbc4.jar和/users/first.last/tmp/apache-jmeter-3.3/lib/impalajdbc4.jar 2018-02-05 17:14:09,830 info o.j.r.pluginmanager:插件状态:[jpgc graphs basic=2.0,jpgc functions=2.0,jpgc casutg=2.5,jpgc dummy=0.2,jpgc ffw=2.0,jpgc fifo=0.2,jpgc perfmon=2.1,jpgc plugins manager=0.19,jpgc webdriver=2.3,jpgc tst=2.1,webs ocket sampler=1.2-snapshot,websocket samplers=1.1,jmeter core=3.3,jmeter ftp=3.3,jmeter http=3,jmeter jdbc=3.3,jmeter jms=3.3,jmeter junit=3.3,jmeter java=3.3,jmeter ldap=3.3,jmeter mail=3.3,jmeter mongodb=3.3,jmeter native=3.3,jmeter tcp=3.3,jmeter components=3.3,jpgc standard=2.0]2018-02-05 17:14:09863 info o.a.j.g.u.menufactory:skipping org.apache.jmeter.assertions.bsfassertion 2018-02-05 17:14:09,964 info o.a.j.g.u.menufactory:跳过org.apache.jmeter.extractor.bsfpostprocessor 2018-02-05 17:14:09987 info o.a.j.g.u.menufactory:跳过org.apache.jmeter.modifiers.bsfpreprocessor 2018-02-05 17:14:10,013 info o.a.j.p.h.s.httpsamplerbase:parser for text/html为org.apache.jmeter.protocol.http.parser.lagartobasedhtmlparser 2018-02-05 17:14:10013 info o.a.j.p.h.s.httpsamplerbase:parser for application/xhtml+xml为org.apache.jmeter.protocol.http.parser.lagartobasedhtmlparser 2018-02-05 17:14:10,013 info o.a.j.p.h.s.httpsamplerbase:parser for application/xml is org.apache.jmeter.protocol.http.parser.lagartobasedhtmlparser 2018-02-05 17:14:10013 info o.a.j.p.h.s.httpsamplerbase:parser for text/xml is org.apache.jmeter.protocol.http.parser.lagartobasedhtmlparser 2018-02-05 17:14:10,013 info o.a.j.p.h.s.httpsamplerbase:parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.regexphtmlparser 2018-02-05 17:14:10013 info o.a.j.p.h.s.httpsamplerbase:parser for text/css is org.apache.jmeter.protocol.http.parser.cssparser 2018-02-05 17:14:10,434 info o.a.j.e.keytoolutils:keytool可在'keytool'2018-02-05 17:14:10435 info o.a.j.p.h.p.proxycontrol:http(s)test script recorder ssl proxy将使用支持文件/users/first.last/tmp/apache-jmeter-3.3/bin/proxyserver.jks 2018-02-05 17:14:10中嵌入第三方资源的密钥,557 info o.a.j.g.u.menufactory:跳过org.apache.jmeter.protocol.java.sampler.bsfsampler 2018-02-05 17:14:10586 info o.a.j.s.fileserver:default base='/users/first.last/tmp/apache-jmeter-3.3'2018-02-05 17:14:10639 info o.a.j.g.u.menufactory:跳过org.apache.jmeter.protocol.mongodb.config.mongosourceelement 2018-02-05 17:14:10,639 info o.a.j.g.u.menufactory:跳过org.apache.jmeter.protocol.mongodb.sampler.mongoscriptsampler 2018-02-05 17:14:10727 info o.a.j.g.u.menufactory:跳过org.apache.jmeter.timers.bsftimer 2018-02-05 17:14:10743 info o.a.j.g.u.menufactory:跳过org.apache.jmeter.visualizers.bsflistener 2018-02-05 17:14:10,834 info o.a.j.s.sampleresult:注:样本时间戳为开始时间2018-02-05 17:14:10835 info o.a.j.s.sampleresult:sampleresult.default.encoding设置为iso-8859-1 2018-02-05 17:14:10835 info o.a.j.s.sampleresult:sampleresult.usenanotime=true 2018-02-05 17:14:10,835 info o.a.j.s.sampleresult:sampleresult.nanothreadsleep=5000 2018-02-05 17:14:40008 info o.a.j.g.a.load:加载文件:/users/first.last/tmp/impala.jmx 2018-02-05 17:14:40009 info o.a.j.s.fileserver:set new base='/users/first.last/tmp'2018-02-05 17:14:40125 info o.a.j.s.saveservice:testplan(jmx)版本:2.2。testlog(jtl)版本:2.2 2018-02-05 17:14:40129 info o.a.j.s.saveservice:使用saveservice属性文件编码utf-8 2018-02-05 17:14:40130 info o.a.j.s.saveservice:使用saveservice属性版本3.2 2018-02-05 17:14:40132 info o.a.j.s.saveservice:加载文件:/users/first.last/tmp/impala.jmx 2018-02-05 17:14:40,479 info o.a.j.s.fileserver:set new base='/users/first.last/tmp'2018-02-05 17:14:44337 info o.a.j.e.standardjmeterengine:运行测试!2018-02-05 17:14:44337 info o.a.j.s.sampleevent:样本变量列表:[]2018-02-05 17:14:44337 info o.a.j.s.sampleevent:样本变量列表:[]2018-02-05 17:14:44356 info o.a.j.g.u.jmetermenubar:setrunning(true,local)2018-02-05 17:14:44,516 info o.a.j.e.standardjmeterengine:开始线程组:1:线程组2018-02-05 17:14:44517 info o.a.j.e.standardjmeterengine:开始组线程组的3个线程。2018-02-05 17:14:44517信息o.a.j.e.standardjmeterengine:线程将继续出现错误2018-02-05 17:14:44517信息o.a.j.t.threadgroup:正在启动线程组。。。number=1 threads=3 ramp up=1 perthread=333.33334 delayedstart=false 2018-02-05 17:14:44521 info o.a.j.t.threadgroup:已启动线程组number 1 2018-02-05 17:14:44522 info o.a.j.e.standardjmeterengine:已启动所有线程组2018-02-05 17:14:44522 info o.a.j.t.jmeterthread:已启动线程组1-1 2018-02-05 17:14:44,525信息o.a.j.t.jmeterthread:线程完成:线程组1-1 2018-02-05 17:14:44,526错误o.a.j.jmeter:未捕获的异常:java.lang.noclassdeffounderror:org/apache/thrift/protocol/tprotocol位于com.cloudera.impala.core.impalajdbcdriver。(未知源)~[impalajdbc4。jar:impalajdbc_2.5.42.1062]在java.lang.class.forname0(本机方法)~[?:1.8.0\u 162]在java.lang.class.forname(类。java:264)~[?:1.8.0¢]在org.apache.commons.dbcp2.basicdatasource.createconnectionfactory(basicdatasource)。java:2124)~[commons-dbcp2-2.1.1。jar:2.1.1]位于org.apache.commons.dbcp2.basicdatasource.createdatasource(basicdatasource)。java:2033)~[commons-dbcp2-2.1.1。jar:2.1.1]位于org.apache.commons.dbcp2.basicdatasource.getconnection(basicdatasource)。java:1533) ~[commons-dbcp2-2.1.1。jar:2.1.1]在org.apache.jmeter.protocol.jdbc.config.datasourceelement$datasourcecomponentimpl.getconnection(datasourceelement。java:326)~[apachejmeter\u jdbc。jar:3.3 r1808647]在org.apache.jmeter.protocol.jdbc.config.datasourceelement.getconnection(datasourceelement。java:191)~[apachejmeter\u jdbc。jar:3.3 r1808647]在org.apache.jmeter.protocol.jdbc.sampler.jdbccsampler.sample(jdbccsampler。java:79)~[apachejmeter\u jdbc。jar:3.3 r1808647]在org.apache.jmeter.threads.jmeterthread.executesamplepackage(jmeterthread。java:498)~(apachejmeter)核心。jar:3.3 r1808647]在org.apache.jmeter.threads.jmeterthread.processsampler(jmeterthread。java:424)~(apachejmeter)核心。jar:3.3 r1808647]位于org.apache.jmeter.threads.jmeterthread.run(jmeterthread。java:255)~(apachejmeter)核心。jar:3.3 r1808647]在java.lang.thread.run(线程。java:748)[?:1.8.0¢]原因:java.lang.classnotfoundexception:org.apache.thrift.protocol.tprotocol at java.net.urlclassloader.findclass(urlclassloader)。java:381)~[?:1.8.0¢]在java.lang.classloader.loadclass(类加载器。java:424)~[?:1.8.0\u 162]位于java.lang.classloader.loadclass(classloader。java:357) ~[?:1.8.0_162] ... 13更多2018-02-05 17:14:44860信息o.a.j.t.jmeterthread:线程开始:线程组1-2 2018-02-05 17:14:44862信息o.a.j.t.jmeterthread:线程完成:线程组1-2 2018-02-05 17:14:44862错误o.a.j.jmeter:未捕获异常:java.lang.noclassdef

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题