Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 0CD7718D9A for ; Sun, 24 May 2015 02:03:14 +0000 (UTC) Received: (qmail 85260 invoked by uid 500); 24 May 2015 02:03:13 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 85210 invoked by uid 500); 24 May 2015 02:03:13 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 85198 invoked by uid 99); 24 May 2015 02:03:13 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 May 2015 02:03:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 931C5C0044 for ; Sun, 24 May 2015 02:03:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.902 X-Spam-Level: ** X-Spam-Status: No, score=2.902 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, NORMAL_HTTP_TO_IP=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id GJddvAGWVnOy for ; Sun, 24 May 2015 02:03:04 +0000 (UTC) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 2D3BA21112 for ; Sun, 24 May 2015 02:03:03 +0000 (UTC) Received: by lbbuc2 with SMTP id uc2so33807607lbb.2 for ; Sat, 23 May 2015 19:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mYUgXa9Xw3KIXoNCY6fsDY9GCVSGJ434uW7FEgXsfe4=; b=l14IQGHPbBE/unX3zox2NXbD5PVJ5kn1sbm1NY7KdzOIYFGNlZE8gviRSAv4mIFqMy iLadaOK5ZpP++wvRbqm3YkTRnsMKeeJJGhkj1WPnNjkBn7w0t7Qwv9JAV2nHVEYWTSNV RUgiYynrLwrMGfpSp9DMN0bK/EVZNEYwYiJPquOS5Wku9NDQiUyFZPlyUr0C0ykJ4ij1 ilyCEOBM1D4mIWTqESVW4Yiv6v54Ws4K8vMFfZH194wiZL5705MkWU+KQHxchQmMAnvp FqrwWaMQB5PlfhRd1OifpMBg/TazwEF0LzIobal0/NbmhjJsM6nxDrZC2/h5k6VgK5HY f/bg== MIME-Version: 1.0 X-Received: by 10.112.50.74 with SMTP id a10mr12396772lbo.4.1432432977191; Sat, 23 May 2015 19:02:57 -0700 (PDT) Received: by 10.152.107.34 with HTTP; Sat, 23 May 2015 19:02:57 -0700 (PDT) In-Reply-To: References: Date: Sun, 24 May 2015 10:02:57 +0800 Message-ID: Subject: Re: cant connect to zookeeper on ec2 From: David Montgomery To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a1133bb46c528530516ca4aae --001a1133bb46c528530516ca4aae Content-Type: text/plain; charset=UTF-8 I am connecting from the monitor SG. i even tried with a python client. Monitor SG has access top all ports on the zk SG. import zc.zk >>> zk = zc.zk.ZooKeeper('10.146.4.247:2181') No handlers could be found for logger "kazoo.client" Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/zc.zk-2.1.0-py2.7.egg/zc/zk/__init__.py", line 180, in __init__ raise FailedConnect(connection_string) zc.zk.FailedConnect: 10.146.4.247:2181 All TCP TCP 0 - 65535 sg-38391c52 (monitor) TCP 2181 sg-38391c52 (monitor) Custom TCP Rule TCP 2182 0.0.0.0/0 Custom TCP Rule TCP 2812 sg-38391c52 (monitor) Custom TCP Rule TCP 0 - 65000 sg-0fad2662 (zookeeper) SSH TCP 22 0.0.0.0/0 Thanks On Sun, May 24, 2015 at 4:57 AM, Michi Mutsuzaki wrote: > Hi David, > > Could you post your security group setting? The fact that telnet times > out seems to indicate that packets are being dropped. Does telnet work > with any other ports? > > On Sat, May 23, 2015 at 7:58 AM, David Montgomery > wrote: > > Hi, > > > > zookeeper is running on ec2 on a dedicated server. > > > > I am using private ip address > > > > I allowed access to port 2181 on the zk security group. Yet I cant > connect > > from servers that have access via security groups. This makes to sense > to > > me whatsoever. > > > > here is my server id > > head /var/lib/zookeeper/myid > > 1 > > > > > > Here is my zoo.cfg > > > > maxClientCnxns=50 > > tickTime=2000 > > initLimit=10 > > syncLimit=5 > > dataDir=/var/lib/zookeeper > > clientPort=2181 > > server.1=10.146.4.247:2888:3888 > > > > here is my hostname > > > > hostname -f > > ip-10-146-4-247.ec2.internal > > hostname > > ip-10-146-4-247 > > > > > > So.....I time out. Even telnet will not work when I open the telnet > port. > > telnet 10.146.4.247 2181 > > Trying 10.146.4.247... > > > > > > But if I run telnet on the zk server it works > > telnet 10.146.4.247 2181 > > Trying 10.146.4.247... > > Connected to 10.146.4.247. > > Escape character is '^]'. > > > > I even tried standalone by removing server.1=10.146.4.247:2888:3888 from > > zoo.cgf > > > > I installed on ubuntu 14.04 using cdh 5 apt-get install zookeeper-server > > > > I have no issues when I use digital ocean. Why is aws soooo difficult? > > How do I start unsing zookeeper on aws? > > > > Thanks > --001a1133bb46c528530516ca4aae--