Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-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 3F09B11B69 for ; Thu, 24 Jul 2014 17:41:42 +0000 (UTC) Received: (qmail 2311 invoked by uid 500); 24 Jul 2014 17:41:42 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 2256 invoked by uid 500); 24 Jul 2014 17:41:42 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 2244 invoked by uid 99); 24 Jul 2014 17:41:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 17:41:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of josh.elser@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qa0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 17:41:39 +0000 Received: by mail-qa0-f43.google.com with SMTP id w8so3309067qac.16 for ; Thu, 24 Jul 2014 10:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=/GesHzAImOpHJsm6LHCSv3R6LkEhRS69u8mCejYFZKc=; b=n7XSeNQts+NTTe8LsP5H/wLp9sipOe08pS4tqqfwByjeWjbzQQAluIA5VA/PCzv7o1 yB0t3NYNNhqwnauMDGghK1Y0x8mfX3uca1/9Xh/v/Fs14iMY1JOaRGMNmUSzOFE0A65H WWgSHxNi358sRGAsDL6G/qC6u0C+EMPKvxtO9kYZYxE9J2O5hfNyjH9sAQqL90oYdI/8 HXPY9T9mC/+pGCyXx7XIqgGQuh8VVg7NFZPSFaDePAQvgDjg7DnxKMNtR4j1cHdxvoyr QslCK2b/Y7KmVwOqyByLkfkzo2ZXfl4Ppfc+90xhJYTkgxOTO6XRe4nHxqJP2F3ShVLq rqVw== X-Received: by 10.140.17.81 with SMTP id 75mr16318374qgc.36.1406223674609; Thu, 24 Jul 2014 10:41:14 -0700 (PDT) Received: from HW10447.local (pool-71-166-48-47.bltmmd.fios.verizon.net. [71.166.48.47]) by mx.google.com with ESMTPSA id b9sm9792796qae.4.2014.07.24.10.41.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 10:41:14 -0700 (PDT) Message-ID: <53D14539.3030706@gmail.com> Date: Thu, 24 Jul 2014 13:41:13 -0400 From: Josh Elser User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: user@accumulo.apache.org Subject: Re: Fwd: wordCount example cannot find Zookeeper server References: <53D047F3.8090205@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Excellent! Glad to hear you got it working, and thanks for sharing the solution. On 7/24/14, 1:28 PM, David Snyder wrote: > Great. Thanks Josh. I was focusing on it being a zookeeper issue > before. I have gotten it to work successfully. The change made was > that my conf/masters file was specified as "localhost" and not the > explicit hostname. Once I made sure that all the processes were using > the DNS names everything went through. > > > On Wed, Jul 23, 2014 at 6:40 PM, Josh Elser > wrote: > > Hi David, > > Actually, you're speaking just fine to your ZooKeeper. The big hint > here is that ZooKeeper does not use Thrift for communication; Thrift > is what Accumulo is using for its RPCs. All of the ZooKeeper output > at the end of your message all appear normal. > > Since everything appears to be working correctly with the shell, I > would try to focus on running these examples: > > - Check the classpath, ACCUMULO_HOME and ACCUMULO_CONF_DIR that are > used/set when you invoke the WordCount program. > - Make sure accumulo-env.sh sets the correct environment variables > > > On 7/23/14, 7:14 PM, David Snyder wrote: > > Hello! > > > I've recently installed Accumulo 1.6 on a 3 node cluster and > have the > processes started and configured correctly to my knowledge, but I am > having difficulty running the wordCount example. > > Specifically, when I run: > > `./bin/accumulo > org.apache.accumulo.examples.__simple.mapreduce.WordCount > -i accumulo -z zookeeper0:2181 --input /user/jenkins/README -t > wordCount > -u root -p root --debug` > > I get the following Thrift error which appears to be from a > failure to > communicate with my Zookeeper server: > https://gist.github.com/__davidsnyder/__b33fad7b92bc6a906809 > > > Despite the fact that I can run ListInstances just fine with the > same > "-z" zookeeper arg: > > [user@hdp0 accumulo]$ ./bin/accumulo > org.apache.accumulo.server.__util.ListInstances -z zookeeper0:2181 > > INFO : Using ZooKeepers zookeeper0:2181 > > Instance Name | Instance ID | > Master > > ---------------------+--------__------------------------------__+-----------------------------__-- > > "accumulo" | 4505350e-1f07-48f0-902b-__509722e968f5 | > > > I also passed the public ip of the zookeeper instance instead of the > DNS, but I also verified that the DNS was resolving: > > [user@hdp0 accumulo]$ host zookeeper0 > > zookeeper0.XXX.XXX has address 10.0.1.18 > > [user@hdp0 accumulo]$ echo ruok | nc zookeeper0 2181 > > imok[user@hdp0 accumulo]$ > > > I can create tables in the shell, insert records, scan, > everything just > fine. The monitor GUI shows my two tablet servers and there are no > other errors to speak of. I also attempted to use the helloworld > "org.apache.accumulo.examples.__simple.helloworld.__InsertWithBatchWriter" > jar and received the same result as I did with WordCount. There's > nothing to speak of in the accumulo logs. The zookeeper logs > repeatedly > show the following when I run the wordCount command line > (10.0.0.1 is > the internal ip of hdp0): > > > 014-07-23 22:57:50,670 [myid:] - INFO > [Thread-3079:NIOServerCnxn@__1001] > - Closed socket connection for client /10.0.0.101:44342 > > (no session established for client) > > > 2014-07-23 22:57:55,671 [myid:] - INFO > [NIOServerCxn.Factory:0.0.0.0/__0.0.0.0:2181:__NIOServerCnxnFactory@197 > > >] - Accepted > socket connection from /10.0.0.101:44363 > > > > 2014-07-23 22:57:55,671 [myid:] - INFO > [NIOServerCxn.Factory:0.0.0.0/__0.0.0.0:2181:NIOServerCnxn@821 > > >] - Processing stat > command from /10.0.0.101:44363 > > > > 2014-07-23 22:57:55,672 [myid:] - INFO > [Thread-3081:NIOServerCnxn@__1001] > - Closed socket connection for client /10.0.0.101:44363 > > (no session established for client) > > > 2014-07-23 22:58:00,673 [myid:] - INFO > [NIOServerCxn.Factory:0.0.0.0/__0.0.0.0:2181:__NIOServerCnxnFactory@197 > > >] - Accepted > socket connection from /10.0.0.101:44380 > > > > 2014-07-23 22:58:00,677 [myid:] - INFO > [NIOServerCxn.Factory:0.0.0.0/__0.0.0.0:2181:NIOServerCnxn@821 > > >] - Processing stat > command from /10.0.0.101:44380 > > > > 2014-07-23 22:58:00,678 [myid:] - INFO > [Thread-3083:NIOServerCnxn@__1001] > - Closed socket connection for client /10.0.0.101:44380 > > (no session established for client) > > > > I'm really not sure what else to try at this point. Any ideas? > > > Thanks, > > > David Snyder > > >