accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Blaine <>
Subject Re: Automation of 'init'
Date Tue, 26 Feb 2013 18:29:37 GMT
Vincent, thanks. Can you share your sanitized expect script?

The following expect script fails (silently) at the last

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 
2013-02-26 18:13:43,499 [util.Initialize] INFO : Accumulo data dir is 
2013-02-26 18:13:43,500 [util.Initialize] INFO : Zookeeper server is 
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.

View raw message