|
|
-
Command-Line Options to 'accumulo init'?
David Medinets 2012-08-28, 00:29
I am scripting the installation of accumulo for no particular reason. I've reached the stage when I need to run "accumulo init". I've looked at the source and do not see any way to pass the instance name and password on the command line. Did I overlook something?
+
David Medinets 2012-08-28, 00:29
-
Re: Command-Line Options to 'accumulo init'?
Josh Elser 2012-08-28, 01:55
AFAIK, there are no CLI options for this currently. You might be able to pipe in your instance name and passwd (two times) to get around it.
e.g. `echo accumulo secret secret | accumulo init`
Alternatively it should be straightforward to add -i and -p options to `init`.
On 08/27/2012 07:29 PM, David Medinets wrote: > I am scripting the installation of accumulo for no particular reason. > I've reached the stage when I need to run "accumulo init". I've looked > at the source and do not see any way to pass the instance name and > password on the command line. Did I overlook something?
+
Josh Elser 2012-08-28, 01:55
-
Re: Command-Line Options to 'accumulo init'?
Eric Newton 2012-08-28, 01:33
Here's the magic incantation, which you might find in some of the tests, too:
#!/bin/sh ./bin/accumulo init --clear-instance-name <<EOF instance secret secret EOF
The flag for overwriting the instance name already exists. Might as well add the others.
On Mon, Aug 27, 2012 at 9:55 PM, Josh Elser <[EMAIL PROTECTED]> wrote:
> AFAIK, there are no CLI options for this currently. You might be able to > pipe in your instance name and passwd (two times) to get around it. > > e.g. `echo accumulo secret secret | accumulo init` > > Alternatively it should be straightforward to add -i and -p options to > `init`. > > > On 08/27/2012 07:29 PM, David Medinets wrote: > >> I am scripting the installation of accumulo for no particular reason. >> I've reached the stage when I need to run "accumulo init". I've looked >> at the source and do not see any way to pass the instance name and >> password on the command line. Did I overlook something? >> >
+
Eric Newton 2012-08-28, 01:33
-
Re: Command-Line Options to 'accumulo init'?
David Medinets 2012-08-28, 01:49
Thanks Eric. That resolves my issue.
+
David Medinets 2012-08-28, 01:49
-
Re: Command-Line Options to 'accumulo init'?
John Vines 2012-08-28, 00:58
If we add those, we also need s force flag for overwriting zookeeper info when you're reusing an instance name.
Sent from my phone, so pardon the typos and brevity. On Aug 27, 2012 8:56 PM, "Josh Elser" <[EMAIL PROTECTED]> wrote:
> AFAIK, there are no CLI options for this currently. You might be able to > pipe in your instance name and passwd (two times) to get around it. > > e.g. `echo accumulo secret secret | accumulo init` > > Alternatively it should be straightforward to add -i and -p options to > `init`. > > On 08/27/2012 07:29 PM, David Medinets wrote: > >> I am scripting the installation of accumulo for no particular reason. >> I've reached the stage when I need to run "accumulo init". I've looked >> at the source and do not see any way to pass the instance name and >> password on the command line. Did I overlook something? >> >
+
John Vines 2012-08-28, 00:58
-
Re: Command-Line Options to 'accumulo init'?
Vincent Russell 2012-08-28, 01:09
You can also write an expect script to achieve this.
On Mon, Aug 27, 2012 at 9:55 PM, Josh Elser <[EMAIL PROTECTED]> wrote:
> AFAIK, there are no CLI options for this currently. You might be able to > pipe in your instance name and passwd (two times) to get around it. > > e.g. `echo accumulo secret secret | accumulo init` > > Alternatively it should be straightforward to add -i and -p options to > `init`. > > > On 08/27/2012 07:29 PM, David Medinets wrote: > >> I am scripting the installation of accumulo for no particular reason. >> I've reached the stage when I need to run "accumulo init". I've looked >> at the source and do not see any way to pass the instance name and >> password on the command line. Did I overlook something? >> >
+
Vincent Russell 2012-08-28, 01:09
|
|