简体   繁体   English

Hive JDBC 连接未通过 JMeter 发生

[英]Hive JDBC connection is not happening through JMeter

Looking into Hive JDBC driver source :查看Hive JDBC 驱动程序源

  Utils.verifySuccess(openResp.getStatus());
  if (!supportedProtocols.contains(openResp.getServerProtocolVersion())) {
    throw new TException("Unsupported Hive2 protocol");
  }

it seems that your JDBC driver version doesn't match the server-side version, you need to download exactly the same version of the JDBC driver which matches your server installation.看来您的 JDBC 驱动程序版本与服务器端版本不匹配,您需要下载与您的服务器安装匹配的完全相同版本的 JDBC 驱动程序。

If you cannot figure out the correct version of server you canenable debug logging for Hive JDBC driver and inspect jmeter.log file for any clues.如果您无法找出正确的服务器版本,您可以为 Hive JDBC 驱动程序启用调试日志记录,并检查jmeter.log 文件以获取任何线索。

In the meantime you can try use hive instead of hive2 in the JDBC URL, however it might have negative impact to the results as they won't be that realistic与此同时,您可以尝试在 JDBC URL 中使用hive而不是hive2 ,但是它可能会对结果产生负面影响,因为它们不会那么现实

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

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