Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 893D010A43 for ; Wed, 9 Jul 2014 16:03:18 +0000 (UTC) Received: (qmail 3478 invoked by uid 500); 9 Jul 2014 16:03:18 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 3438 invoked by uid 500); 9 Jul 2014 16:03:18 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 3426 invoked by uid 99); 9 Jul 2014 16:03:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 16:03:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of david.medinets@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 16:03:16 +0000 Received: by mail-we0-f169.google.com with SMTP id t60so7752254wes.14 for ; Wed, 09 Jul 2014 09:02:51 -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=rgDfhN4wL/GL5QcpRiWt46vf5hPx7sychCDUKPI66kM=; b=t++B9nR+toYNqzho6R+hoAyCyZqZLLXlHrLfYSZDxZV2jhNB9G9blPNpkCevXFlQ4j W93hQAtwYCBRf+YOp8wgiyTaGETtGfKn9EmYVbL5oG+l7NtAjMp3J/pVwPp3Z1ekJqjI 5ObBNa2fAOivJ5M5GRz8c+5CU3pTdijhdXnNXhrYJCt4VS6KwGyRAeMePT4VQyKOQm+Z oP2ou6pkIgSeIaDOSUOPJ/5v++pxB2w24GWUu9YTu9sgNxuDWUB0bA56Fs1APVu/zBCR fEJh9+wmRKy4zkZ1FLOE0eoCEs8gGyCMgOkfRkCE1eKvu1Y1BLN3wvMOtNVq4dQp6T9R KFmQ== MIME-Version: 1.0 X-Received: by 10.180.198.173 with SMTP id jd13mr12861021wic.9.1404921771583; Wed, 09 Jul 2014 09:02:51 -0700 (PDT) Received: by 10.194.2.132 with HTTP; Wed, 9 Jul 2014 09:02:51 -0700 (PDT) In-Reply-To: References: <53BD5BA7.50403@gmail.com> <53BD5DFD.6070503@gmail.com> Date: Wed, 9 Jul 2014 12:02:51 -0400 Message-ID: Subject: Re: Monitor finding wrong hostname From: David Medinets To: accumulo-dev Content-Type: multipart/alternative; boundary=047d7b62498a22e8d104fdc4d70f X-Virus-Checked: Checked by ClamAV on apache.org --047d7b62498a22e8d104fdc4d70f Content-Type: text/plain; charset=UTF-8 It's working! I have four single-node accumulo instances running on my laptop. I can visit the monitor page for each one. Changes in one instance are isolated from the others. It takes less than 250 milliseconds to start a new instance. david@zareason-verix545:~/projects/docker-builds/accumulo$ time ./make_container.sh paul paul d317a83cb91abc1e908d70ef05b54934b7ff89fb6920b53b62f5432305715fef real 0m0.249s user 0m0.022s sys 0m0.019s On Wed, Jul 9, 2014 at 11:49 AM, David Medinets wrote: > Doh! Perhaps the problem is my supervisor configuration: > > command=/usr/lib/accumulo/bin/accumulo master --address namenode > > > > On Wed, Jul 9, 2014 at 11:46 AM, David Medinets > wrote: > >> Thanks. After updating the accumulo-env.sh the process is pulling from >> IPV4. But I have no idea why the hostname is being reported as 'namenode' >> instead of 'grail'. >> >> >> java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:606) >> at org.apache.accumulo.start.Main$1.run(Main.java:103) >> at java.lang.Thread.run(Thread.java:744) >> Caused by: java.net.UnknownHostException: namenode >> at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) >> >> at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901) >> at >> java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293) >> at java.net.InetAddress.getAllByName0(InetAddress.java:1246) >> at java.net.InetAddress.getAllByName(InetAddress.java:1162) >> >> I've updated the github project with my latest attempt. >> >> >> On Wed, Jul 9, 2014 at 11:21 AM, Josh Elser wrote: >> >>> Actually, we do, and he isn't :) >>> >>> https://github.com/medined/docker-builds/blob/master/ >>> accumulo/accumulo.conf/accumulo-env.sh >>> >>> David, update your accumulo-env.sh. You also have cruft in there that is >>> no longer necessary (e.g. ACCUMULO_LOG_HOST) >>> >>> >>> On 7/9/14, 11:18 AM, Sean Busbey wrote: >>> >>>> Josh and I are talking about this config at the end of hte >>>> ACCUMULO_GENERAL_OPTS in the example accumulo-env.sh[1]: >>>> >>>> -Djava.net.preferIPv4Stack=true >>>> >>>> >>>> [1]: >>>> https://github.com/apache/accumulo/blob/1.5.1/conf/ >>>> examples/512MB/native-standalone/accumulo-env.sh#L52 >>>> >>>> >>>> On Wed, Jul 9, 2014 at 10:16 AM, Sean Busbey >>>> wrote: >>>> >>>> Sure, but we don't know if David's current configs include everything >>>>> from >>>>> the examples. >>>>> >>>>> >>>>> On Wed, Jul 9, 2014 at 10:11 AM, Josh Elser >>>>> wrote: >>>>> >>>>> I think I had made the change before 1.5.1 came out which updates the >>>>>> example configs to set the JVM preferIpv4Stack (or w/e that option >>>>>> is), too. >>>>>> >>>>>> >>>>>> On 7/9/14, 10:37 AM, Sean Busbey wrote: >>>>>> >>>>>> The stacktrace shows it's trying to use IPv6. >>>>>>> >>>>>>> Have you disabled ipv6 on the host? Do your Accumulo role options >>>>>>> include >>>>>>> the flag that says to use the ipv4 network stack? >>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> -- >>>>> Sean >>>>> >>>>> >>>> >>>> >>>> >> > --047d7b62498a22e8d104fdc4d70f--