Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 117C710F6C for ; Tue, 3 Mar 2015 21:48:10 +0000 (UTC) Received: (qmail 28342 invoked by uid 500); 3 Mar 2015 21:47:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 28300 invoked by uid 500); 3 Mar 2015 21:47:49 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 28290 invoked by uid 99); 3 Mar 2015 21:47:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 21:47:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tobias.hauth@gmail.com designates 209.85.160.169 as permitted sender) Received: from [209.85.160.169] (HELO mail-yk0-f169.google.com) (209.85.160.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 21:47:25 +0000 Received: by ykbq9 with SMTP id q9so2825638ykb.13 for ; Tue, 03 Mar 2015 13:45:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=6wFuqYKd41eIQItsnR2xUEXSE5vwTNyt83+7B7zmg2A=; b=r/k8XZmJW4OF1d6Cw7N01bpeUBIjx7CTBGWDP1eTsJOxPn+fBOy0NIkB0HL+qn+uYt nYFD3wwAnj98wsW9aSTfV5mDR3rd9SCI7bXDO3q04ppenAre3UYpW3qZE1So9IYiboVN zhmPcVkOOzN4dlv89zKSa9+LpuYNw/yqOcxWjxA1WWIn9OVPl5tTTcR2fkpnRBBzEVMK DQkEoGNdU7atGZpLW6PcCUSnR6Y5aTtFqUZCGYZVYTy843Y8/T7FK1uQJDRd6sO21Z7C djr4KVABVm685mHPvl/p3KPdV2KpqyPGklZOlB0VxBU1Hxv8DpaNRN3LeB1BujuhwL3F uNgg== X-Received: by 10.236.231.11 with SMTP id k11mr696471yhq.86.1425419153352; Tue, 03 Mar 2015 13:45:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.71.134 with HTTP; Tue, 3 Mar 2015 13:45:13 -0800 (PST) In-Reply-To: References: From: Tobias Hauth Date: Tue, 3 Mar 2015 13:45:13 -0800 Message-ID: Subject: Re: Issue restarting cassandra with a cluster running Cassandra 1.2.x and Cassandra 2.0.x To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a11c1a4a24aad340510694257 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1a4a24aad340510694257 Content-Type: text/plain; charset=UTF-8 I would recommend against 2.0.12 as long as nodetool cleanup is broken and wait for 2.0.13. On Tue, Mar 3, 2015 at 11:43 AM, Nate McCall wrote: > Did you run 'upgrade sstables'? See these two sections in 2.0's NEWS.txt: > https://github.com/apache/cassandra/blob/cassandra-2.0/NEWS.txt#L132-L141 > https://github.com/apache/cassandra/blob/cassandra-2.0/NEWS.txt#L195-L198 > > It's a good idea to move up to 2.0.12 while your at it. There have been a > number of bugfixes. > > On Tue, Mar 3, 2015 at 12:37 PM, Fabrice Facorat < > fabrice.facorat@gmail.com> wrote: > >> Hi, >> >> we have a 52 Cassandra nodes cluster running Apache Cassandra 1.2.13. >> As we are planning to migrate to Cassandra 2.0.10, we decide to do >> some tests and we noticed that once a node in the cluster have been >> upgraded to Cassandra 2.0.x, restarting a Cassandra 1.2.x will fail. >> >> The tests were done on a 6 nodes cluster running Apache Cassandra >> 1.2.13 (x5) + Apache Cassandra 2.0.10 (x1) and using java 1.7.0_07. >> The cassandra 1.2.x is failing with the following error in output.log : >> >> INFO 15:18:41,233 Initializing system_traces.events >> org.apache.cassandra.db.marshal.MarshalException: unable to coerce >> 'credval' to a formatted date (long) >> at >> org.apache.cassandra.db.marshal.DateType.dateStringToTimestamp(DateType.java:115) >> at >> org.apache.cassandra.db.marshal.DateType.fromString(DateType.java:83) >> at >> org.apache.cassandra.db.marshal.ReversedType.fromString(ReversedType.java:82) >> at >> org.apache.cassandra.config.ColumnDefinition.fromSchema(ColumnDefinition.java:231) >> at >> org.apache.cassandra.config.CFMetaData.addColumnDefinitionSchema(CFMetaData.java:1524) >> at >> org.apache.cassandra.config.CFMetaData.fromSchema(CFMetaData.java:1456) >> at >> org.apache.cassandra.config.KSMetaData.deserializeColumnFamilies(KSMetaData.java:306) >> at >> org.apache.cassandra.config.KSMetaData.fromSchema(KSMetaData.java:287) >> at >> org.apache.cassandra.db.DefsTable.loadFromTable(DefsTable.java:154) >> at >> org.apache.cassandra.config.DatabaseDescriptor.loadSchemas(DatabaseDescriptor.java:583) >> at >> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:253) >> at >> org.apache.cassandra.service.CassandraDaemon.init(CassandraDaemon.java:381) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:601) >> at >> org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:212) >> Caused by: java.text.ParseException: Unable to parse the date: credval >> at >> org.apache.commons.lang.time.DateUtils.parseDateWithLeniency(DateUtils.java:359) >> at >> org.apache.commons.lang.time.DateUtils.parseDateStrictly(DateUtils.java:305) >> at >> org.apache.cassandra.db.marshal.DateType.dateStringToTimestamp(DateType.java:111) >> ... 16 more >> Cannot load daemon >> Service exit with a return value of 3 >> >> We did some tests with a very simple schema without ReversedType, but >> they failed too. >> >> We did look at CASSANDRA-6695 and CASSANDRA-8462, and we had applied >> the corresponding patch, but without success. >> >> Does someone know a way to avoid this issue ? >> >> >> -- >> Close the World, Open the Net >> http://www.linux-wizard.net >> > > > > -- > ----------------- > Nate McCall > Austin, TX > @zznate > > Co-Founder & Sr. Technical Consultant > Apache Cassandra Consulting > http://www.thelastpickle.com > --001a11c1a4a24aad340510694257 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I would recommend against 2.0.12 as long as nodetool clean= up is broken and wait for 2.0.13.

On Tue, Mar 3, 2015 at 11:43 AM, Nate McCall <n= ate@thelastpickle.com> wrote:
Did you run 'upgrade sstables'? See these two s= ections in 2.0's NEWS.txt:
https://git= hub.com/apache/cassandra/blob/cassandra-2.0/NEWS.txt#L132-L141

It's= a good idea to move up to 2.0.12 while your at it. There have been a numbe= r of bugfixes.=C2=A0

On Tue, Mar 3, 2015 at 12:37 PM, Fab= rice Facorat <fabrice.facorat@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">Hi,

we have a 52 Cassandra nodes cluster running Apache Cassandra 1.2.13.
As we are planning to migrate to Cassandra 2.0.10, we decide to do
some tests and we noticed that once a node in the cluster have been
upgraded to Cassandra 2.0.x, restarting a Cassandra 1.2.x will fail.

The tests were done on a 6 nodes cluster running Apache Cassandra
1.2.13 (x5) + Apache Cassandra 2.0.10 (x1) and using java 1.7.0_07.
The cassandra 1.2.x is failing with the following error in output.log :

INFO 15:18:41,233 Initializing system_traces.events
org.apache.cassandra.db.marshal.MarshalException: unable to coerce
'credval' to a=C2=A0 formatted date (long)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.db.marshal.DateType.dat= eStringToTimestamp(DateType.java:115)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.db.marshal.DateType.fro= mString(DateType.java:83)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.db.marshal.ReversedType= .fromString(ReversedType.java:82)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.config.ColumnDefinition= .fromSchema(ColumnDefinition.java:231)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.config.CFMetaData.addCo= lumnDefinitionSchema(CFMetaData.java:1524)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.config.CFMetaData.fromS= chema(CFMetaData.java:1456)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.config.KSMetaData.deser= ializeColumnFamilies(KSMetaData.java:306)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.config.KSMetaData.fromS= chema(KSMetaData.java:287)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.db.DefsTable.loadFromTa= ble(DefsTable.java:154)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.config.DatabaseDescript= or.loadSchemas(DatabaseDescriptor.java:583)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.service.CassandraDaemon= .setup(CassandraDaemon.java:253)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.service.CassandraDaemon= .init(CassandraDaemon.java:381)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at sun.reflect.NativeMethodAccessorImpl.invoke0= (Native Method)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at sun.reflect.NativeMethodAccessorImpl.invoke(= NativeMethodAccessorImpl.java:57)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at sun.reflect.DelegatingMethodAccessorImpl.inv= oke(DelegatingMethodAccessorImpl.java:43)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.lang.reflect.Method.invoke(Method.java:= 601)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.commons.daemon.support.DaemonLoad= er.load(DaemonLoader.java:212)
Caused by: java.text.ParseException: Unable to parse the date: credval
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.commons.lang.time.DateUtils.parse= DateWithLeniency(DateUtils.java:359)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.commons.lang.time.DateUtils.parse= DateStrictly(DateUtils.java:305)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.cassandra.db.marshal.DateType.dat= eStringToTimestamp(DateType.java:111)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 16 more
Cannot load daemon
Service exit with a return value of 3

We did some tests with a very simple schema without ReversedType, but
they failed too.

We did look at CASSANDRA-6695 and CASSANDRA-8462, and we had applied
the corresponding patch, but without success.

Does someone know a way to avoid this issue ?


--
Close the World, Open the Net
http://www.linux-= wizard.net



--
-----------------
Nate McCall
Austin, TX
@zznate

C= o-Founder & Sr. Technical Consultant
Apache Cassandra Consulting
= http://www.thela= stpickle.com

--001a11c1a4a24aad340510694257--