Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 58177 invoked from network); 2 Mar 2011 16:57:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 16:57:49 -0000 Received: (qmail 57877 invoked by uid 500); 2 Mar 2011 16:57:47 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 57628 invoked by uid 500); 2 Mar 2011 16:57:43 -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 57611 invoked by uid 99); 2 Mar 2011 16:57:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 16:57:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.215.44] (HELO mail-ew0-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 16:57:37 +0000 Received: by ewy9 with SMTP id 9so68894ewy.31 for ; Wed, 02 Mar 2011 08:57:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.27.209 with SMTP id j17mr353883ebc.56.1299085035257; Wed, 02 Mar 2011 08:57:15 -0800 (PST) Received: by 10.213.2.130 with HTTP; Wed, 2 Mar 2011 08:57:15 -0800 (PST) In-Reply-To: References: Date: Wed, 2 Mar 2011 10:57:15 -0600 Message-ID: Subject: Re: Issues connecting from outside of localhost From: David McNelis To: user@cassandra.apache.org Cc: Sasha Dolgy Content-Type: multipart/alternative; boundary=0015174c3fc20f3f33049d82ce84 --0015174c3fc20f3f33049d82ce84 Content-Type: text/plain; charset=ISO-8859-1 In case anyone is interested. Our problem revolved around one machine having the phpcassa thrift patch, and the other did not. Its resolved now. On Wed, Mar 2, 2011 at 10:25 AM, David McNelis wrote: > It looks like we are having an issue with the Thrift installation on the > 'other' machine. We spun up a cassandra instance on that machine and were > unable to connect locally through php, but I was able to connect from the > original cassandra machine with PHP. That sounds convoluted...but in short, > it looks like our main problem is with the Thrift PHP module. > > > On Wed, Mar 2, 2011 at 9:04 AM, David McNelis wrote: > >> We are able to telnet to port 9160, and didn't have any issues resolving >> the target along those lines. So at this point, I don't think we're looking >> at a firewall / network topology issue. >> >> >> On Wed, Mar 2, 2011 at 8:54 AM, Sasha Dolgy wrote: >> >>> i had a similar issue on windows and it came down to php not being >>> able to resolve the target ... the solution was to add an entry to the >>> hosts file ... of course, if there is a firewall blocking ... that's >>> your problem. can you telnet from remote server to cassandra server >>> on port 9160? >>> >>> >>> On Wed, Mar 2, 2011 at 3:49 PM, David McNelis >>> wrote: >>> > Morning folks, >>> > I'm not sure if this is an issue with my setup of Cassandra, or with >>> > phpCassa....there is an open question on StackOverflow that is very >>> similar >>> > to what I am experiencing (1). In short, I can connect using PHP from >>> the >>> > same machine that Cassandra is running on. I can connect with >>> cassandra cli >>> > from both the "Cassandra" box and from externally. However, when I try >>> to >>> > connect using PHP (specifically phpcassa) from an external machine, I >>> get >>> > hit with a Timeout error. >>> > Both machines are running PHP 5.3 on CentOS 5. >>> > In my cassandra.yaml file I tried changing my listen_address to my >>> server's >>> > IP address instead of 127.0.0.1 and that caused me not to be able to >>> connect >>> > in general. My rpc_address is 0.0.0.0. >>> > Has anyone else experienced this or have an inclination where I'm going >>> > wrong? >>> > Thanks, >>> >> >> >> >> -- >> *David McNelis* >> Lead Software Engineer >> Agentis Energy >> www.agentisenergy.com >> o: 630.359.6395 >> c: 219.384.5143 >> >> *A Smart Grid technology company focused on helping consumers of energy >> control an often under-managed resource.* >> >> >> > > > -- > *David McNelis* > Lead Software Engineer > Agentis Energy > www.agentisenergy.com > o: 630.359.6395 > c: 219.384.5143 > > *A Smart Grid technology company focused on helping consumers of energy > control an often under-managed resource.* > > > -- *David McNelis* Lead Software Engineer Agentis Energy www.agentisenergy.com o: 630.359.6395 c: 219.384.5143 *A Smart Grid technology company focused on helping consumers of energy control an often under-managed resource.* --0015174c3fc20f3f33049d82ce84 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable In case anyone is interested. =A0Our problem revolved around one machine ha= ving the phpcassa thrift patch, and the other did not. =A0Its resolved now.=

On Wed, Mar 2, 2011 at 10:25 AM, David M= cNelis <= dmcnelis@agentisenergy.com> wrote:
It looks like we are having an issue with t= he Thrift installation on the 'other' machine. =A0We spun up a cass= andra instance on that machine and were unable to connect locally through p= hp, but I was able to connect from the original cassandra machine with PHP.= =A0That sounds convoluted...but in short, it looks like our main problem i= s with the Thrift PHP module.


On Wed, Mar 2, 2011 at 9:04 AM, David McNeli= s <dmcnelis@agentisenergy.com> wrote:
We are able to telnet to port 9160, and didn't have any issues resolvin= g the target along those lines. =A0So at this point, I don't think we&#= 39;re looking at a firewall / network topology issue. =A0


On Wed, Mar 2, 2011 at 8:54 AM, Sasha Dolgy <sdolgy@gmail.com> wrote:
i had a similar issue on windows and it came down to php not being
able to resolve the target ... the solution was to add an entry to the
hosts file ... of course, if there is a firewall blocking ... that's your problem. =A0can you telnet from remote server to cassandra server
on port 9160?


On Wed, Mar 2, 2011 at 3:49 PM, David McNelis
<dmcneli= s@agentisenergy.com> wrote:
> Morning folks,
> I'm not sure if this is an issue with my setup of Cassandra, or wi= th
> phpCassa....there is an open question on StackOverflow that is very si= milar
> to what I am experiencing (1). =A0 In short, I can connect using PHP f= rom the
> same machine that Cassandra is running on. =A0I can connect with cassa= ndra cli
> from both the "Cassandra" box and from externally. =A0Howeve= r, when I try to
> connect using PHP (specifically phpcassa) from an external machine, I = get
> hit with a Timeout error.
> Both machines are running PHP 5.3 on CentOS 5.
> In my cassandra.yaml file I tried changing my listen_address to my ser= ver's
> IP address instead of 127.0.0.1 and that caused me not to be able to c= onnect
> in general. =A0My rpc_address is 0.0.0.0.
> Has anyone else experienced this or have an inclination where I'm = going
> wrong?
> Thanks,



<= div>
--
David McNelis
Lead Software Engineer
Agentis Energy
o: 630.359.6395
c: 219.384= .5143

=
A= Smart Grid technology company focused on helping consumers of energy contr= ol an often under-managed resource.





--
David Mc= Nelis
Lead Software Engineer
Agentis Energy
o: 630.359.6395
c: 219.384= .5143

=
A= Smart Grid technology company focused on helping consumers of energy contr= ol an often under-managed resource.





--
David Mc= Nelis
Lead Software Engineer
Agentis Energy
o: 630.359.6395
c: 219.384= .5143

=
A= Smart Grid technology company focused on helping consumers of energy contr= ol an often under-managed resource.


--0015174c3fc20f3f33049d82ce84--