Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 83E06200AF0 for ; Thu, 5 May 2016 08:57:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 828AB160A03; Thu, 5 May 2016 06:57:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F0A3D160A02 for ; Thu, 5 May 2016 08:57:18 +0200 (CEST) Received: (qmail 41224 invoked by uid 500); 5 May 2016 06:57:13 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 41201 invoked by uid 99); 5 May 2016 06:57:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2016 06:57:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C8A692C14F9 for ; Thu, 5 May 2016 06:57:12 +0000 (UTC) Date: Thu, 5 May 2016 06:57:12 +0000 (UTC) From: "Tiago Batista (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-11716) cassandra 2.2 fails to start on jdk7u101 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 05 May 2016 06:57:19 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tiago Batista updated CASSANDRA-11716: -------------------------------------- Status: Open (was: Patch Available) > cassandra 2.2 fails to start on jdk7u101 > ---------------------------------------- > > Key: CASSANDRA-11716 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11716 > Project: Cassandra > Issue Type: Bug > Environment: ubuntu 12.04 fully updated > Reporter: Tiago Batista > > Today I updated one of my clusters to 2.2.6, and was greeted with the message complaining about the jdk version: > {code} > $ nodetool status > Cassandra 2.0 and later require Java 7u25 or later. > {code} > After digging into it, on cassandra-env.sh, i found that you are comparing the patch levels as strings, meaning that "101" is before "25": > {code} > if [ "$JVM_VERSION" \< "1.8" ] && [ "$JVM_PATCH_VERSION" \< "25" ] ; then > echo "Cassandra 2.0 and later require Java 7u25 or later." > exit 1; > fi > {code} > I patched this on my system to > {code} > if [ "$JVM_VERSION" \< "1.8" ] && [ "$JVM_PATCH_VERSION" -lt "25" ] ; then > echo "Cassandra 2.0 and later require Java 7u25 or later." > exit 1; > fi > {code} > this seems to work on bash. I can now start cassandra successfully on that cluster. -- This message was sent by Atlassian JIRA (v6.3.4#6332)