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 D457711ABC for ; Thu, 24 Apr 2014 19:23:26 +0000 (UTC) Received: (qmail 81763 invoked by uid 500); 24 Apr 2014 19:23:23 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 81731 invoked by uid 500); 24 Apr 2014 19:23:23 -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 81723 invoked by uid 99); 24 Apr 2014 19:23:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 19:23:23 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of clohfink@blackbirdit.com designates 209.85.213.182 as permitted sender) Received: from [209.85.213.182] (HELO mail-ig0-f182.google.com) (209.85.213.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 19:23:19 +0000 Received: by mail-ig0-f182.google.com with SMTP id uy17so1315650igb.9 for ; Thu, 24 Apr 2014 12:22:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=q6k5fC8AmbCKlBUUTo1PL9thlYYX0BvAyjNotWNiPjA=; b=UjyYxJTtzmhQa3DXqymW1Ck/T5IVNCyMSuI1Q2Kt9Xn6v2bsGEQz+TwYdErwe4eknk cVxA8172gCOKu/HXnLd3deNwmCa3wOaJqz9Y922fF7ZkhZMU8dzj9aqqAGrU4shKHvi9 obM7ld8vfIFIObPl/SI+tn5lfIm1DYFFK5aF1O1YOmcH4EKaEYic0AGoAz8hjNWbExnU Od509m1qOzI64nhzYe3MlvJQbCuSPm5W8o87QSuDvRnyIXz7Grp0sgrCNGegHJy7ZG/z fRi2xFIeG43Ey1Q/XAmCvJxmpLYLMV28lomqpGI7M3i8/qASCIi07b1VM0JMtOrRebgL vkUw== X-Gm-Message-State: ALoCoQlV/XAT9ldZQhxb6qHtOmCR+pTvEf+e+hcBkp/I25md7cEKaj0w6aSoAX2JsV36OYetIX+y X-Received: by 10.50.25.201 with SMTP id e9mr625973igg.28.1398367378531; Thu, 24 Apr 2014 12:22:58 -0700 (PDT) Received: from [10.10.10.100] (97-86-246-164.dhcp.roch.mn.charter.com. [97.86.246.164]) by mx.google.com with ESMTPSA id b6sm1312812igm.2.2014.04.24.12.22.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Apr 2014 12:22:57 -0700 (PDT) From: Chris Lohfink Content-Type: multipart/alternative; boundary="Apple-Mail=_BC4B3C3D-4D10-44AC-B46A-FD20408F4A10" Message-Id: <51A75B87-DBA2-4786-B451-321CC51C95D1@blackbirdit.com> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: nodetool hangs Date: Thu, 24 Apr 2014 14:22:57 -0500 References: <207E779E-110D-4CEB-9E63-FF0260274D59@me.com> <91E855B9-448B-42E8-AD42-EB16B6BD3B2D@blackbirdit.com> To: user@cassandra.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1874) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_BC4B3C3D-4D10-44AC-B46A-FD20408F4A10 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Wow=85 wheres this been all my life. I don=92t see why this can=92t be = set by default? https://issues.apache.org/jira/browse/CASSANDRA-7087 --- Chris Lohfink On Apr 24, 2014, at 11:48 AM, Steven A Robenalt = wrote: > There's a little-known change in the way JMX uses ports that was add = to JDK7u4 which simplifies the use of JMX in a firewalled environment. >=20 > The standard RMI registry port for JMX is controlled by the = com.sun.management.jmxremote.port property. The change to Java 7 was to = introduce the related com.sun.management.jmxremote.rmi.port property, = Setting this second property means that JMX will use that second port, = rather than a randomly assigned port, for making the actual connection. = This solution works well in the AWS VPC environment that I'm running in, = and I've heard of others using it successfully as well. >=20 > Steve >=20 >=20 >=20 > On Thu, Apr 24, 2014 at 8:38 AM, Chris Lohfink = wrote: > The way RMI (which JMX uses, which is what nodetool uses) works is it = will first connect, then send a address/port back over the wire for it = to make a new 2nd connection too. This will be potentially to a = different address then 127.0.0.1 (can override with = -Djava.rmi.server.hostname=3D in = /etc/cassandra/cassandra-env.sh) and a random port. Likely the 2nd = connection is whats timing out. JMX makes firewalls and sysadmins very = frustrated :) >=20 > --- > Chris Lohfink >=20 >=20 > On Apr 24, 2014, at 7:05 AM, Jacob Rhoden wrote: >=20 >> I=92ve done an install on an amazon instance, and for some strange = reason I can telnet to the JMX port, but node tool just hangs and = doesn=92t do anything. I am hoping I=92m overlooking something simple = that someone could help me point out? Thanks (: >>=20 >> cassandra@t1:/cassandra/db$ telnet 127.0.0.1 7199 >> Trying 127.0.0.1... >> Connected to 127.0.0.1. >> Escape character is '^]'. >> ^]quit >>=20 >> telnet> quit >> Connection closed. >> cassandra@t1:/cassandra/db$ nodetool -h 127.0.0.1 status >> Failed to connect to '127.0.0.1:7199': Connection timed out >>=20 >> Any pointers would be appreciated. (cqlsh works fine, its just = nodetool thats giving me the headache) >>=20 >> Thanks, >> Jacob >=20 >=20 >=20 >=20 > --=20 > Steve Robenalt > Software Architect > HighWire | Stanford University=20 > 425 Broadway St, Redwood City, CA 94063=20 >=20 > srobenal@stanford.edu=20 > http://highwire.stanford.edu=20 >=20 >=20 >=20 >=20 >=20 --Apple-Mail=_BC4B3C3D-4D10-44AC-B46A-FD20408F4A10 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Wow=85 = wheres this been all my life.  I don=92t see why this can=92t be = set by default?  https://issu= es.apache.org/jira/browse/CASSANDRA-7087

---
<= div>Chris Lohfink

On Apr 24, 2014, at 11:48 AM, = Steven A Robenalt <srobenal@stanford.edu> = wrote:

There's a little-known change in the way = JMX uses ports that was add to JDK7u4 which simplifies the use of JMX in = a firewalled environment.

The standard RMI registry = port for JMX is controlled by the com.sun.management.jmxremote.port = property. The change to Java 7 was to introduce the related = com.sun.management.jmxremote.rmi.port property, Setting this second = property means that JMX will use that second port, rather than a = randomly assigned port, for making the actual connection. This solution = works well in the AWS VPC environment that I'm running in, and I've = heard of others using it successfully as well.

Steve



On Thu, Apr 24, = 2014 at 8:38 AM, Chris Lohfink <clohfink@blackbirdit.com> wrote:
The way RMI (which JMX uses, which is = what nodetool uses) works is it will first connect, then send a = address/port back over the wire for it to make a new 2nd connection too. =  This will be potentially to a different address then 127.0.0.1 = (can override with -Djava.rmi.server.hostname=3D<public name> = in /etc/cassandra/cassandra-env.sh) and a random port.  Likely the = 2nd connection is whats timing out.  JMX makes firewalls and = sysadmins very frustrated :)

---
Chris Lohfink


On Apr 24, 2014, at 7:05 AM, Jacob = Rhoden <jacob.rhoden@me.com> wrote:

I=92ve = done an install on an amazon instance, and for some strange reason I can = telnet to the JMX port, but node tool just hangs and doesn=92t do = anything. I am hoping I=92m overlooking something simple that someone = could help me point out? Thanks (:

cassandra@t1:/cassan= dra/db$ telnet 127.0.0.1 7199
Trying = 127.0.0.1...
Connected to 127.0.0.1.
Escape character = is '^]'.
^]quit

telnet> = quit
Connection = closed.
cassandra@t1:/cassandra/db$ nodetool -h 127.0.0.1 = status
Failed to connect = to '127.0.0.1:7199': Connection timed out

Any pointers would be appreciated. (cqlsh = works fine, its just nodetool thats giving me the = headache)

Thanks,
Jacob




--
Steve Robenalt
Software Architect
HighWire | Stanford = University 
425 Broadway St, = Redwood City, CA 94063 

srobenal@stanford.edu





<= /div>

= --Apple-Mail=_BC4B3C3D-4D10-44AC-B46A-FD20408F4A10--