Bug 1684349
| Summary: | mysql-connector-java error in RHEL 7.6 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | SHAURYA <sshaurya> |
| Component: | mysql-connector-java | Assignee: | Ondrej Dubaj <odubaj> |
| Status: | CLOSED ERRATA | QA Contact: | RHEL CS Apps Subsystem QE <rhel-cs-apps-subsystem-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.6 | CC: | databases-maint, hhorak, laurent.hoss, mschorm |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-03-24 07:05:32 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
SHAURYA
2019-03-01 03:23:35 UTC
Hello, unfortunately rebase is problematic, see https://bugzilla.redhat.com/show_bug.cgi?id=1647175#c1 Connector 8.0.15 requires a lot of dependencies not available in RHEL7. We are preparing mariadb connector as a replacement in collections. https://bugzilla.redhat.com/show_bug.cgi?id=1625989 https://brewweb.engineering.redhat.com/brew/packageinfo?packageID=71176 Is it usable for you? The package mariadb Java client is now available in the RHSCL repository, it can be installed this way: # yum-config-manager --enable rhel-server-rhscl-7-rpms # yum install rh-mariadb103-mariadb-java-client This JDBC driver works fine with both, MariaDB and MySQL servers. As written in comment #2, this is the best we could do for the customers who need a recent version of the JDBC driver for MySQL/MariaDB. Is it ok to close the ticket now? 1) (Why) Couldn't we have had at least at more recent v5.1.x (like 5.1.47) in centos7 ?! I did some proper research for the Cloudera community, which needed at least v5.1.26, more infos here (and links below): https://community.cloudera.com/t5/Batch-SQL-Apache-Hive/CDH6-installation-Failed-to-Validate-Hive-Metastore-schema/m-p/92091#M3238 2) >Connector 8.0.15 requires a lot of dependencies not available in RHEL7. The 8.0.16 (or 8.0.15) that I found (link below) only required openjdk-8 (which can be easily deployed, fortunatelly, without the need for any extra yum repo). And even for people that somehow need to stay with an (open)jdk-7, I found a working rpm , which is from Fedora however (but it flawlessly installed on centos7 and it worked). Finally here the many working RPMs, even if not officially proposed by RH, they just work :) * With Java >=v8, I recommend following: Ref: https://centos.pkgs.org/7/mysql-connectors-i386/mysql-connector-java-8.0.16-1.el7.noarch.rpm.html RPM: yum install http://repo.mysql.com/yum/mysql-connectors-community/el/7/i386//mysql-connector-java-8.0.16-1.el7.noarch.rpm * With Java v7 you can try the latest 5.1.x from Fedora: Ref: https://fedora.pkgs.org/29/fedora-x86_64/mysql-connector-java-5.1.38-7.fc29.noarch.rpm.html RPM: http://download-ib01.fedoraproject.org/pub/fedora/linux/releases/29/Everything/x86_64/os/Packages/m/mysql-connector-java-5.1.38-7.fc29.noarch.rpm * Find RPMs for other distros: https://pkgs.org/download/mysql-connector-java In official repositories all Java libraries should run with JRE 7 and should not use bundled libraries. MySQL JDBC 8.x does not support JDK 7 neither JRE 7, so I cant build it with JDK 8 for JRE 7 to meet expectations. MySQL JDBC 5.x added build dependencies that are not in repositories, this is why we cant update even 5.x version. The dependencies are build dependencies instead of runtime ones. This is why you can download and use built driver from internet and they bundle them into source code so you cannot see it in maven central package details. |