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 A61AFEC75 for ; Tue, 26 Feb 2013 18:30:08 +0000 (UTC) Received: (qmail 62757 invoked by uid 500); 26 Feb 2013 18:30:08 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 62711 invoked by uid 500); 26 Feb 2013 18:30:07 -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 62698 invoked by uid 99); 26 Feb 2013 18:30:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 18:30:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.97.132.5] (HELO homiemail-a20.g.dreamhost.com) (208.97.132.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 18:30:01 +0000 Received: from homiemail-a20.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a20.g.dreamhost.com (Postfix) with ESMTP id 45FFD7EC064 for ; Tue, 26 Feb 2013 10:29:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=kickflop.net; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=kickflop.net; bh=tCLm h9sVRnNeqdoLOXPG/L9m4fw=; b=IhsAUqQ+6gCRdjqjTfWTCqW5BilOXo4adMEm xgtjTf6cpH1M6oQVPhEX78ddFBKgBJDTRXgfWSFqR3kRJpQhHBhj8lD//ac6Cegz BOtsoBB+4g+q9NIbcmlzq9F2rpFI9v4EnkZAEpCOzh3lilDaDXnnxf+T4N3P0ph9 bKFmjRE= Received: from [192.168.1.6] (pool-173-65-191-45.tampfl.fios.verizon.net [173.65.191.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jblaine@kickflop.net) by homiemail-a20.g.dreamhost.com (Postfix) with ESMTPSA id 151177EC061 for ; Tue, 26 Feb 2013 10:29:40 -0800 (PST) Message-ID: <512CFF11.9030108@kickflop.net> Date: Tue, 26 Feb 2013 13:29:37 -0500 From: Jeff Blaine User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: user@accumulo.apache.org Subject: Re: Automation of 'init' References: <51278B3B.3050607@kickflop.net> In-Reply-To: <51278B3B.3050607@kickflop.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Vincent, thanks. Can you share your sanitized expect script? The following expect script fails (silently) at the last prompt/response: hadoop@ip-10-151-84-108:~$ cat /tmp/initfile spawn /accumulo-1.4.2/bin/accumulo init expect "Instance name :" send "foo\r" expect "Enter initial password*" send "foo\r" expect "Confirm initial password*" send "foo\r" hadoop@ip-10-151-84-108:~$ expect -f /tmp/initfile spawn /accumulo-1.4.2/bin/accumulo init 2013-02-26 18:13:43,495 [util.Initialize] INFO : Hadoop Filesystem is hdfs://ip-10-151-84-108.ec2.internal:8020 2013-02-26 18:13:43,499 [util.Initialize] INFO : Accumulo data dir is /accumulo 2013-02-26 18:13:43,500 [util.Initialize] INFO : Zookeeper server is ip-10-151-84-108.ec2.internal:2181 2013-02-26 18:13:43,500 [util.Initialize] INFO : Checking if Zookeeper is available. If this hangs, then you need to make sure zookeeper is running Instance name : foo Enter initial password for root: *** Confirm initial password for root: hadoop@ip-10-151-84-108:~$ Note how it did not echo asterisks for the final prompt/response and then left the shell prompt dangling there. On 2/22/2013 10:14 AM, Jeff Blaine wrote: > Is there any way to automate 'accumulo init'? > > As it is now, we have fully automated standing up Hadoop > and HBase. > > Requiring a human to interactively type a command in order > to get finished Accumulo installation is a major roadblock > to automation via configuration management tools such as > Chef, CFEngine, or Puppet.