Displaying 6 results from an estimated 6 matches for "es_list".
Did you mean:
s_list
2015 Oct 31
4
use pssh to restart a service
Hi all,
I need to restart a service on a few elasticsearch nodes. I'm trying to do
it with pssh.
I'm getting this error when I try to do that:
pssh -h es_list "/bin/sudo -S /bin/systemctl restart elasticsearch"
[1] 17:01:50 [FAILURE] bluethundr at es2.example.com Exited with error code 1
[2] 17:01:51 [FAILURE] bluethundr at es3.example.com Exited with error code 1
[3] 17:01:51 [FAILURE] bluethundr at es1.example.com Exited with error code 1...
2015 Oct 31
1
use pssh to restart a service
...im Dunphy <bluethundr at gmail.com> wrote:
>
> > Hi all,
> >
> > I need to restart a service on a few elasticsearch nodes. I'm trying to
> do
> > it with pssh.
> >
> > I'm getting this error when I try to do that:
> >
> > pssh -h es_list "/bin/sudo -S /bin/systemctl restart elasticsearch"
> > [1] 17:01:50 [FAILURE] bluethundr at es2.example.com Exited with error
> code 1
> > [2] 17:01:51 [FAILURE] bluethundr at es3.example.com Exited with error
> code 1
> > [3] 17:01:51 [FAILURE] bluethundr at es...
2015 Oct 31
3
use pssh to restart a service
...] #cat /etc/sudoers.d/bluethundr
Defaults:myuser !requiretty, visiblepw
Got the same exact message!
Anything else I can try?
Thanks
On Sat, Oct 31, 2015 at 5:34 PM, Gordon Messmer <gordon.messmer at gmail.com>
wrote:
> On 10/31/2015 02:04 PM, Tim Dunphy wrote:
>
>> pssh -h es_list "/bin/sudo -S /bin/systemctl restart elasticsearch"
>>
>
> The default configuration prohibits use if input echo can't be disabled.
> That means no "-S".
>
> I modify that for users where necessary:
>
> /etc/sudoers.d/myuser:
> Defaults:my...
2015 Oct 31
0
use pssh to restart a service
On Sat, Oct 31, 2015 at 5:04 PM, Tim Dunphy <bluethundr at gmail.com> wrote:
> Hi all,
>
> I need to restart a service on a few elasticsearch nodes. I'm trying to do
> it with pssh.
>
> I'm getting this error when I try to do that:
>
> pssh -h es_list "/bin/sudo -S /bin/systemctl restart elasticsearch"
> [1] 17:01:50 [FAILURE] bluethundr at es2.example.com Exited with error code 1
> [2] 17:01:51 [FAILURE] bluethundr at es3.example.com Exited with error code 1
> [3] 17:01:51 [FAILURE] bluethundr at es1.example.com Exited with...
2015 Oct 31
0
use pssh to restart a service
On 10/31/2015 02:04 PM, Tim Dunphy wrote:
> pssh -h es_list "/bin/sudo -S /bin/systemctl restart elasticsearch"
The default configuration prohibits use if input echo can't be
disabled. That means no "-S".
I modify that for users where necessary:
/etc/sudoers.d/myuser:
Defaults:myuser !requiretty, visiblepw
2015 Nov 02
2
use pssh to restart a service
Hey Gordon,
Sorry, man my bad! Disabling the tty requirement for my sudo user does
indeed work. I had a type-o in the sudoers file, and when I corrected it,
my sudo command via pssh started working!
#pssh -i -h es_list "/bin/sudo /bin/systemctl restart elasticsearch; sleep
10"
[1] 20:31:32 [SUCCESS] bluethundr at es3.jokefire.com
Stderr: sudo: sorry, you must have a tty to run sudo
[2] 20:31:32 [SUCCESS] bluethundr at es2.jokefire.com
[3] 20:31:32 [SUCCESS] bluethundr at es1.jokefire.com
I'm still...