简体   繁体   English

apache 的替代方案 hive-jdbc jar

[英]Alternative for apache hive-jdbc jar

I am using apache hive-jdbc ( https://mvnrepository.com/artifact/org.apache.hive/hive-jdbc ) jar in my application.我在我的应用程序中使用 apache hive-jdbc ( https://mvnrepository.com/artifact/org.apache.hive/hive-jdbc ) jar。

And I am seeing many vulnerabilities in this when run a Snyk tool scan.在运行 Snyk 工具扫描时,我看到了其中的许多漏洞。

I am already using the latest version of hive-jdbc (3.1.2) and so no option upgrade it to get rid of vulnerabilities.我已经在使用最新版本的 hive-jdbc (3.1.2),因此没有选择升级它来消除漏洞。

This version 3.1.2 was released in 2019 Aug so it has many internal dependencies which are quite old and have vulnerabilities.该版本 3.1.2 于 2019 年 8 月发布,因此它具有许多内部依赖项,这些依赖项相当陈旧且存在漏洞。

So I am looking for any alternative jar in maven repo so I can get rid of these vulnerabilities.所以我正在 maven 回购中寻找任何替代 jar,这样我就可以摆脱这些漏洞。

Any suggestion would be appreciated.任何建议将不胜感激。

Thanks Mahendra谢谢马亨德拉

Requests to find resources are off-topic, so I'm not addressing that.寻找资源的请求是题外话,所以我不会解决这个问题。

(Though I suspect that if your searches in Maven Central didn't find a better published version of the JAR then one won't exist... yet.) (虽然我怀疑如果您在 Maven Central 中的搜索没有找到 JAR 的更好的发布版本,那么一个将不存在......但是。)

Any suggestion would be appreciated.任何建议将不胜感激。

My suggestions are:我的建议是:

  1. Raise an issue in the Apache Hive project's issue tracker to release a new version with the insecure dependencies updated.在 Apache Hive 项目的问题跟踪器中提出问题,以发布更新了不安全依赖项的新版本。

  2. Download the relevant component(s) from the source repo, update the dependencies in the POM(s), and build locally.从源代码库下载相关组件,更新 POM 中的依赖项,并在本地构建。 Then use your build of the components in your project.然后在您的项目中使用您构建的组件。

  3. Add explicit dependencies to your POM for the secure versions of the transitive dependencies.将显式依赖项添加到您的 POM 以获取传递依赖项的安全版本。 If I understand things correctly, this will override the transitively discovered versions with the versions that you specified.如果我理解正确,这将使用您指定的版本覆盖传递发现的版本。

    You should be able to confirm that this has worked by checking which JAR file versions are packaged into your WAR file by the Maven build.您应该能够通过检查 Maven 构建将哪些 JAR 文件版本打包到您的 WAR 文件中来确认这是否有效。

#1 should result in a long term solution. #1 应该是一个长期的解决方案。 #2 and #3 are short-term workarounds... until the Apache Hive team publish the a version with updated dependencies. #2 和 #3 是短期解决方法...直到 Apache Hive 团队发布具有更新的依赖项的版本。

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

相关问题 Apache hive-jdbc jar 和 Cloudera hive-jdbc jar 的区别 - Difference between Apache hive-jdbc jar and Cloudera hive-jdbc jar Dropwizard和hive-jdbc之间不兼容 - Incompatibility between Dropwizard and hive-jdbc Maven可部署jar“ java.lang.ClassNotFoundException:org.apache.hadoop.hive.jdbc.HiveDriver”错误 - maven deployable jar “java.lang.ClassNotFoundException: org.apache.hadoop.hive.jdbc.HiveDriver” error ClassNotFoundException:org.apache.hive.jdbc.HiveDriver - ClassNotFoundException: org.apache.hive.jdbc.HiveDriver org.apache.hive.jdbc.HiveStatement / org.apache.hadoop.hive.jdbc.HiveStatement之间的区别 - Difference between org.apache.hive.jdbc.HiveStatement / org.apache.hadoop.hive.jdbc.HiveStatement hive-jdbc -__- standalone.jar的正确位置是什么? - What is the proper location for hive-jdbc-__-standalone.jar? 春季无法使用Hive加载JDBC驱动程序类[org.apache.hive.jdbc.HiveDriver] - Could not load JDBC driver class [org.apache.hive.jdbc.HiveDriver] in spring with hive INFO:传输用于JDBC连接:null + Apache Hive - INFO: Transport Used for JDBC connection: null + Apache Hive Apache HIVE JDBC:如何自定义ZEA52C36203C5F99C3CE2442D531B1证书验证? - Apache HIVE JDBC: How to customize SSL certificate validation? 在库文件中使用hive-jdbc-2.0.0-standalone.jar时,jsp文件失败 - Jsp file fail when using hive-jdbc-2.0.0-standalone.jar in library file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM