Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 7186 invoked from network); 9 Nov 2010 17:35:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 17:35:21 -0000 Received: (qmail 47965 invoked by uid 500); 9 Nov 2010 17:35:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 47944 invoked by uid 500); 9 Nov 2010 17:35:51 -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 47936 invoked by uid 99); 9 Nov 2010 17:35:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 17:35:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.207.44.49] (HELO postrelay-2.pdf.com) (216.207.44.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 17:35:44 +0000 Received: from domo-sjc-001.pdf.com (domo-sjc-001.pdf.com [10.10.9.180]) by postrelay-2.pdf.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id oA9HcX19030072 for ; Tue, 9 Nov 2010 09:38:33 -0800 Received: from [127.0.0.1] ([10.2.10.116]) by domo-sjc-001.pdf.com (8.13.8/8.13.8) with ESMTP id oA9HZLsu018261 for ; Tue, 9 Nov 2010 09:35:22 -0800 Message-ID: <4CD98655.8080105@pdf.com> Date: Tue, 09 Nov 2010 09:35:17 -0800 From: Alaa Zubaidi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: Could Not connect to cassandra-cli on windows References: <4CD8A45D.10803@pdf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Jim, It works when using it as arguments to cassandra-cli and using -port... is this a bug?? E:\Cassandra\Cass07b3\apache-cassandra-0.7.0-beta3>bin\cassandra-cli.bat -host 192.168.1.11 -port 9160 Starting Cassandra Client Connected to: "Test Cluster" on 192.168.1.11/9160 Welcome to cassandra CLI. Type 'help' or '?' for help. Type 'quit' or 'exit' to quit. Alaa On 11/9/2010 8:30 AM, Jim Ancona wrote: > On Mon, Nov 8, 2010 at 8:31 PM, Alaa Zubaidi wrote: >> Hi, >> Failing to connect to cassandra client: on windows >> >> [default@unknown] connect localhost/9160 >> Exception connecting to localhost/9160. Reason: Connection refused: connect. >> >> [default@unknown] connect xxx.xxx.x.xx/9160 >> Syntax error at position 0: no viable alternative at input 'connect' >> >> [default@unknown] connect xxx.xxx.x.xx\9160 >> Syntax error at position 20: no viable alternative at character '\' >> >> Any idea how to connect? > In the first example, are you sure Cassandra was running on port 9160 > on your local machine? > > You could also try > cassandra-cli -host hostname -port port > e.g. > cassandra-cli -host localhost -port 9160 > > Jim > > -- Alaa Zubaidi PDF Solutions, Inc. 333 West San Carlos Street, Suite 700 San Jose, CA 95110 USA Tel: 408-283-5639 (or 408-280-7900 x5639) fax: 408-938-6479 email: alaa.zubaidi@pdf.com