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 665FD18985 for ; Tue, 29 Dec 2015 01:44:55 +0000 (UTC) Received: (qmail 15683 invoked by uid 500); 29 Dec 2015 01:44:52 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 15632 invoked by uid 500); 29 Dec 2015 01:44:52 -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 15621 invoked by uid 99); 29 Dec 2015 01:44:51 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2015 01:44:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 86DACC8F06 for ; Tue, 29 Dec 2015 01:44:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 3iNyzv_iwRl6 for ; Tue, 29 Dec 2015 01:44:50 +0000 (UTC) Received: from mail-ig0-f179.google.com (mail-ig0-f179.google.com [209.85.213.179]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id A232120F46 for ; Tue, 29 Dec 2015 01:44:50 +0000 (UTC) Received: by mail-ig0-f179.google.com with SMTP id to4so154294609igc.0 for ; Mon, 28 Dec 2015 17:44:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=sb7W1eAuYl0qlcYn+/UNWt/tbET8wK+aDktUwMcGdmw=; b=o2Vf2yjfQhJUna+J9SyAd6TwSct3bY6W6g5OmTpgBrD0dr0BcHU3Hy1ZmuetuchYR3 PwLQ+T5dIXtYNhJrfFSrZYqs8ylL5/IZWKydzabBeRgfch28Ejhp8htYV6A4ykJBNd/y NsFGkIH57P8ylbDc+cGfeTgJJqvbf68RI7d8PxRJJxon4rgz6Y24UsmUQ3OpvFIhT6Fm dKilLxq6yRKyrR2fxf5a3d3f7/6H6BqKjR6i25ZVt8xNhJUr6yo6FBLalzSHz5rhtlg5 bIBBA+HC+AkvaCDMvEfjNqT7if3tPJrZL7dRonx09YR5E62MUOW0gUV/B5Mi+dFlLgVk UWGw== MIME-Version: 1.0 X-Received: by 10.50.160.11 with SMTP id xg11mr45046685igb.83.1451353490103; Mon, 28 Dec 2015 17:44:50 -0800 (PST) Received: by 10.36.107.141 with HTTP; Mon, 28 Dec 2015 17:44:50 -0800 (PST) In-Reply-To: References: Date: Mon, 28 Dec 2015 19:44:50 -0600 Message-ID: Subject: Re: why I got error "Could not retrieve endpoint rangs" when I run sstableloader? From: Yuki Morishita To: "user@cassandra.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You only need patch for sstableloader. You don't have to upgrade your cassandra servers at all. So, 1. fetch the latest cassandra-2.1 source $ git clone https://git-wip-us.apache.org/repos/asf/cassandra.git $ cd cassandra $ git checkout origin/cassandra-2.1 2. build it $ ant 3. use sstableloader you just built $ bin/sstableloader .... On Mon, Dec 28, 2015 at 6:03 PM, =E5=9C=9F=E5=8D=9C=E7=9A=BF wrote: > hi, Yuki > Thank you very much! > The issue's description almost fits to my case! > 1. My Cassandra version is 2.1.11 > 2. my table has several colomn with collection type > 3. Before failed this time, I can use sstableloader to load the dat= a > into this table, but > I got this error after I drop one column with collection type an= d > insert a column with int type > Do you think I will resolve my question if I update the version into > 2.1.13? > > And, my table already had 560 millions of records. So, for resolving this= , > Whether I only need to update the new version C*.jar > and restart cassandra? > > Dillon > > 2015-12-29 7:36 GMT+08:00 Yuki Morishita : >> >> This is known issue. >> >> https://issues.apache.org/jira/browse/CASSANDRA-10700 >> >> It is fixed in not-yet-released version 2.1.13. >> So, you need to build from the latest cassandra-2.1 branch to try. >> >> >> On Mon, Dec 28, 2015 at 5:28 PM, =E5=9C=9F=E5=8D=9C=E7=9A=BF wrote: >> > hi, all >> > I used the sstableloader many times successfully, but I got the >> > following >> > error: >> > >> > [root@localhost pengcz]# /usr/local/cassandra/bin/sstableloader -u use= r >> > -pw >> > password -v -d 172.21.0.131 ./currentdata/keyspace/table >> > >> > Could not retrieve endpoint ranges: >> > java.lang.IllegalArgumentException >> > java.lang.RuntimeException: Could not retrieve endpoint ranges: >> > at >> > >> > org.apache.cassandra.tools.BulkLoader$ExternalClient.init(BulkLoader.j= ava:338) >> > at >> > >> > org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.jav= a:156) >> > at >> > org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:106) >> > Caused by: java.lang.IllegalArgumentException >> > at java.nio.Buffer.limit(Buffer.java:267) >> > at >> > >> > org.apache.cassandra.utils.ByteBufferUtil.readBytes(ByteBufferUtil.jav= a:543) >> > at >> > >> > org.apache.cassandra.serializers.CollectionSerializer.readValue(Collec= tionSerializer.java:124) >> > at >> > >> > org.apache.cassandra.serializers.MapSerializer.deserializeForNativePro= tocol(MapSerializer.java:101) >> > at >> > >> > org.apache.cassandra.serializers.MapSerializer.deserializeForNativePro= tocol(MapSerializer.java:30) >> > at >> > >> > org.apache.cassandra.serializers.CollectionSerializer.deserialize(Coll= ectionSerializer.java:50) >> > at >> > >> > org.apache.cassandra.db.marshal.AbstractType.compose(AbstractType.java= :68) >> > at >> > >> > org.apache.cassandra.cql3.UntypedResultSet$Row.getMap(UntypedResultSet= .java:287) >> > at >> > >> > org.apache.cassandra.config.CFMetaData.fromSchemaNoTriggers(CFMetaData= .java:1833) >> > at >> > >> > org.apache.cassandra.config.CFMetaData.fromThriftCqlRow(CFMetaData.jav= a:1126) >> > at >> > >> > org.apache.cassandra.tools.BulkLoader$ExternalClient.init(BulkLoader.j= ava:330) >> > ... 2 more >> > >> > I don't know whether this error is relative to one of cluster nodes' >> > linux >> > crash? >> > >> > Any advice will be appreciated! >> > >> > Dillon Peng >> >> >> >> -- >> Yuki Morishita >> t:yukim (http://twitter.com/yukim) > > --=20 Yuki Morishita t:yukim (http://twitter.com/yukim)