You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Roshan <co...@gmail.com> on 2012/02/06 02:35:03 UTC

nodetool hangs and didn't print anything with firewall

Hi 

I have 2 node Cassandra cluster and each linux box configured with a
firewall. The ports 7000, 7199 and 9160 are open in the firewall and I can
telnet to the ports from both ends without any issue. But if I try to do a
nodetool from one of the Cassandra node, it hangs and didn't print anything.

$ sh nodetool -h app1 info

Could someone please help me on this? Thanks.

--
View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/nodetool-hangs-and-didn-t-print-anything-with-firewall-tp7257286p7257286.html
Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.

Re: nodetool hangs and didn't print anything with firewall

Posted by Roshan <co...@gmail.com>.
Thanks Nick for the info. 

--
View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/nodetool-hangs-and-didn-t-print-anything-with-firewall-tp7257286p7259962.html
Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.

Re: nodetool hangs and didn't print anything with firewall

Posted by Maxim Potekhin <po...@bnl.gov>.
That's good to hear because it does present a problem for
a strictly manages and firewalled campus environment.

Maxim


On 2/6/2012 11:57 AM, Nick Bailey wrote:
> JMX is not very firewall friendly. The problem is that JMX is a two
> connection process. The first connection happens on port 7199 and the
> second connection happens on some random port>  1024. Work on changing
> this behavior was started in this ticket:
>
> https://issues.apache.org/jira/browse/CASSANDRA-2967
>
> On Mon, Feb 6, 2012 at 2:02 AM, R. Verlangen<ro...@us2.nl>  wrote:
>> Do you allow both outbound as inbound traffic? You might also try allowing
>> both TCP as UDP.
>>
>>
>> 2012/2/6 Roshan<co...@gmail.com>
>>> Yes, If the firewall is disable it works.
>>>
>>> --
>>> View this message in context:
>>> http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/nodetool-hangs-and-didn-t-print-anything-with-firewall-tp7257286p7257310.html
>>> Sent from the cassandra-user@incubator.apache.org mailing list archive at
>>> Nabble.com.
>>


Re: nodetool hangs and didn't print anything with firewall

Posted by Nick Bailey <ni...@datastax.com>.
JMX is not very firewall friendly. The problem is that JMX is a two
connection process. The first connection happens on port 7199 and the
second connection happens on some random port > 1024. Work on changing
this behavior was started in this ticket:

https://issues.apache.org/jira/browse/CASSANDRA-2967

On Mon, Feb 6, 2012 at 2:02 AM, R. Verlangen <ro...@us2.nl> wrote:
> Do you allow both outbound as inbound traffic? You might also try allowing
> both TCP as UDP.
>
>
> 2012/2/6 Roshan <co...@gmail.com>
>>
>> Yes, If the firewall is disable it works.
>>
>> --
>> View this message in context:
>> http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/nodetool-hangs-and-didn-t-print-anything-with-firewall-tp7257286p7257310.html
>> Sent from the cassandra-user@incubator.apache.org mailing list archive at
>> Nabble.com.
>
>

Re: nodetool hangs and didn't print anything with firewall

Posted by "R. Verlangen" <ro...@us2.nl>.
Do you allow both outbound as inbound traffic? You might also try allowing
both TCP as UDP.

2012/2/6 Roshan <co...@gmail.com>

> Yes, If the firewall is disable it works.
>
> --
> View this message in context:
> http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/nodetool-hangs-and-didn-t-print-anything-with-firewall-tp7257286p7257310.html
> Sent from the cassandra-user@incubator.apache.org mailing list archive at
> Nabble.com.
>

Re: nodetool hangs and didn't print anything with firewall

Posted by Roshan <co...@gmail.com>.
Yes, If the firewall is disable it works.

--
View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/nodetool-hangs-and-didn-t-print-anything-with-firewall-tp7257286p7257310.html
Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.

Re: nodetool hangs and didn't print anything with firewall

Posted by Mohit Anchlia <mo...@gmail.com>.
Does it work with iptables disabled?

You could add log to your firewall rules to see if firewall is
dropping the packets.

On Sun, Feb 5, 2012 at 5:35 PM, Roshan <co...@gmail.com> wrote:
> Hi
>
> I have 2 node Cassandra cluster and each linux box configured with a
> firewall. The ports 7000, 7199 and 9160 are open in the firewall and I can
> telnet to the ports from both ends without any issue. But if I try to do a
> nodetool from one of the Cassandra node, it hangs and didn't print anything.
>
> $ sh nodetool -h app1 info
>
> Could someone please help me on this? Thanks.
>
> --
> View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/nodetool-hangs-and-didn-t-print-anything-with-firewall-tp7257286p7257286.html
> Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.