You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Erick Ramirez (Jira)" <ji...@apache.org> on 2022/05/30 06:45:00 UTC
[jira] [Updated] (CASSANDRA-17669) CentOS/RHEL installation requires JRE not available in Java 11
[ https://issues.apache.org/jira/browse/CASSANDRA-17669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erick Ramirez updated CASSANDRA-17669:
--------------------------------------
Description:
h2. Symptoms
Attempts to install Cassandra using YUM requires Java 8:
{noformat}
$ sudo yum install cassandra
Dependencies resolved.
================================================================================================================================================================
Package Architecture Version Repository Size
================================================================================================================================================================
Installing:
cassandra noarch 4.0.4-1 cassandra 45 M
Installing dependencies:
java-1.8.0-openjdk x86_64 1:1.8.0.312.b07-2.el8_5 appstream 341 k
java-1.8.0-openjdk-headless x86_64 1:1.8.0.312.b07-2.el8_5 appstream 34 M
Installing weak dependencies:
gtk2 x86_64 2.24.32-5.el8 appstream 3.4 M
Transaction Summary
================================================================================================================================================================
Install 4 Packages
{noformat}
Similarly, attempts to install the RPM results in:
{noformat}
$ sudo rpm -i cassandra-4.0.4-1.noarch.rpm
warning: cassandra-4.0.4-1.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 7e3e87cb: NOKEY
error: Failed dependencies:
jre >= 1.8.0 is needed by cassandra-4.0.4-1.noarch{noformat}
h2. Root cause
Package installs on CentOS and RHEL platforms has [a dependency on JRE 1.8+|https://github.com/apache/cassandra/blob/trunk/redhat/cassandra.spec#L49]:
{noformat}
Requires: jre >= 1.8.0{noformat}
However, JRE is no longer available in Java 11. From the [JDK 11 release notes|https://www.oracle.com/java/technologies/javase/11-relnote-issues.html]:
{quote}In this release, the JRE or Server JRE is no longer offered. Only the JDK is offered.
{quote}
h2. Workaround
Override the dependency check when installing the RPM with the {{--nodeps}} option:
{noformat}
$ sudo rpm --nodeps -i cassandra-4.0.4-1.noarch.rpm {noformat}
was:
h2. Symptoms
Attempts to install Cassandra using YUM requires Java 8:
{quote}
$ sudo yum install cassandra
Dependencies resolved.
================================================================================================================================================================
Package Architecture Version Repository Size
================================================================================================================================================================
Installing:
cassandra noarch 4.0.4-1 cassandra 45 M
Installing dependencies:
java-1.8.0-openjdk x86_64 1:1.8.0.312.b07-2.el8_5 appstream 341 k
java-1.8.0-openjdk-headless x86_64 1:1.8.0.312.b07-2.el8_5 appstream 34 M
Installing weak dependencies:
gtk2 x86_64 2.24.32-5.el8 appstream 3.4 M
Transaction Summary
================================================================================================================================================================
Install 4 Packages
{quote}
Similarly, attempts to install the RPM results in:
{quote}
$ sudo rpm -i cassandra-4.0.4-1.noarch.rpm
warning: cassandra-4.0.4-1.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 7e3e87cb: NOKEY
error: Failed dependencies:
jre >= 1.8.0 is needed by cassandra-4.0.4-1.noarch{quote}
h2. Root cause
Package installs on CentOS and RHEL platforms has [a dependency on JRE 1.8+|https://github.com/apache/cassandra/blob/trunk/redhat/cassandra.spec#L49]:
{noformat}Requires: jre >= 1.8.0{noformat}
However, JRE is no longer available in Java 11. From the [JDK 11 release notes|https://www.oracle.com/java/technologies/javase/11-relnote-issues.html]:
{quote}In this release, the JRE or Server JRE is no longer offered. Only the JDK is offered.{quote}
h2. Workaround
Override the dependency check when installing the RPM:
{noformat}$ sudo rpm --nodeps -i cassandra-4.0.4-1.noarch.rpm {noformat}
> CentOS/RHEL installation requires JRE not available in Java 11
> --------------------------------------------------------------
>
> Key: CASSANDRA-17669
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17669
> Project: Cassandra
> Issue Type: Bug
> Components: Dependencies
> Reporter: Erick Ramirez
> Priority: Normal
>
> h2. Symptoms
> Attempts to install Cassandra using YUM requires Java 8:
> {noformat}
> $ sudo yum install cassandra
> Dependencies resolved.
> ================================================================================================================================================================
> Package Architecture Version Repository Size
> ================================================================================================================================================================
> Installing:
> cassandra noarch 4.0.4-1 cassandra 45 M
> Installing dependencies:
> java-1.8.0-openjdk x86_64 1:1.8.0.312.b07-2.el8_5 appstream 341 k
> java-1.8.0-openjdk-headless x86_64 1:1.8.0.312.b07-2.el8_5 appstream 34 M
> Installing weak dependencies:
> gtk2 x86_64 2.24.32-5.el8 appstream 3.4 M
> Transaction Summary
> ================================================================================================================================================================
> Install 4 Packages
> {noformat}
> Similarly, attempts to install the RPM results in:
> {noformat}
> $ sudo rpm -i cassandra-4.0.4-1.noarch.rpm
> warning: cassandra-4.0.4-1.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 7e3e87cb: NOKEY
> error: Failed dependencies:
> jre >= 1.8.0 is needed by cassandra-4.0.4-1.noarch{noformat}
> h2. Root cause
> Package installs on CentOS and RHEL platforms has [a dependency on JRE 1.8+|https://github.com/apache/cassandra/blob/trunk/redhat/cassandra.spec#L49]:
> {noformat}
> Requires: jre >= 1.8.0{noformat}
> However, JRE is no longer available in Java 11. From the [JDK 11 release notes|https://www.oracle.com/java/technologies/javase/11-relnote-issues.html]:
> {quote}In this release, the JRE or Server JRE is no longer offered. Only the JDK is offered.
> {quote}
> h2. Workaround
> Override the dependency check when installing the RPM with the {{--nodeps}} option:
> {noformat}
> $ sudo rpm --nodeps -i cassandra-4.0.4-1.noarch.rpm {noformat}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org