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 31F7710F0E for ; Tue, 3 Dec 2013 02:44:17 +0000 (UTC) Received: (qmail 3932 invoked by uid 500); 3 Dec 2013 02:44:14 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 3907 invoked by uid 500); 3 Dec 2013 02:44:14 -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 3899 invoked by uid 99); 3 Dec 2013 02:44:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 02:44:14 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.214.173] (HELO mail-ob0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 02:44:08 +0000 Received: by mail-ob0-f173.google.com with SMTP id gq1so13905983obb.32 for ; Mon, 02 Dec 2013 18:43:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:message-id:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=13OBpySAhyKPvNng6nfO99bAl4H0gumeChA1i8mXum4=; b=CR5qcx7nX8nGyLTg6Rhi4FHYwGz3HUV5lmuP5H4gdhfDIqc6EcFSi6zIIkBpdhXxmo lkHDXe4DbDIZRuLW5vdikDQiGbhlwCFFph/qbAUPOa+jayNdAxuR95pg3V3tBg3FqJMB VltX9D/45jWZMu5HJb/av6YuY4fF8XajM+OIrU3GZTnsiOqWkidbG2/hbsoCiTgL1+OH 5dZ+pjHarDRjJP88rXBccAMmNcc8hzGCL3o6Sbp4b1I3neRB0ozPuxMmF86oh9MUJT/D G3lGcv/RLmBoGnpr3SvrLB5hLOd9muLHyx+VL2ymi51bFl4ak15m1jssEBPtj2BOCj11 hp0A== X-Gm-Message-State: ALoCoQn9Zox7zkNe1Zpgy68X4V6m5HFf2weeUvtbBZIBRCbB00bs73P4gHEVAHdZb8UvH2ka0d9/ X-Received: by 10.182.153.226 with SMTP id vj2mr58532222obb.26.1386038626309; Mon, 02 Dec 2013 18:43:46 -0800 (PST) Received: from [192.168.14.21] ([192.173.33.32]) by mx.google.com with ESMTPSA id r3sm32363221oep.2.2013.12.02.18.43.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Dec 2013 18:43:45 -0800 (PST) Sender: Michael Shuler Message-ID: <529D455B.1060803@pbandjelly.org> Date: Mon, 02 Dec 2013 20:43:39 -0600 From: Michael Shuler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: =?GB2312?B?tPC4tDogSG93IHRvIGNvbmZpZ3VyZSBsaW51eCBzZXJ2aWNlIA==?= =?GB2312?B?Zm9yIENhc3NhbmRyYT8=?= References: <20131112051709.268CA816018@nike.apache.org> <009301cedf84$a2c3a150$e84ae3f0$@struq.com> <20131112091946.461873EC@athena.apache.org> In-Reply-To: Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 12/02/2013 03:43 PM, Kumar Ranjan wrote: > Hey Folks, > > I have been using ccm for some time and it's pretty awesome tool to test > out admin stuff. Now, I really want to test modeling data by trying to > access ccm running cassandra using Thrift based pycassaShell client from > remote hosts (not locally). My setup is like this: In your case, since the ccm cluster nodes are bound to localhost aliases, you would need to set up routing and port forwarding via iptables from your public IP (10.11.12.13) to the respective localhost aliases/ports. ccm is great for local testing, but gets to be a pain if you wish to do some real testing - not because of ccm, but because now you want to do something that involves actual multi-host networking with remote access. Even easier, in my opinion; if you really want to begin testing a real cluster with remote access, which will have a lot more horsepower than everything on localhost via ccm, then spend $15/month on 3x $5/mo. digitalocean nodes. > How to connect to any of the instance from non-local hosts? When I do: > > pycassaShell --host 10.11.12.13 --port 9160, it throws an exception, > > > thrift.transport.TTransport.TTransportException: Could not connect to > 10.11.12.13:9160 Yup. The nodes are not listening to anything but their localhost alias IP addresses. > Is there a way to make it work? `man iptables` ;) -- Kind regards, Michael