ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dai Xiang <xiang....@sky-data.cn>
Subject Re: how to exec shell script and output its log
Date Mon, 26 Mar 2018 01:31:50 GMT
On Fri, Mar 23, 2018 at 11:45:32AM -0400, Di Li wrote:
> and this is after you had tried the *logoutput *flag in Execute(... ?

Thanks very much!

Also, i want to call script in the install step, if the script run
failed, install still show success in the web, how does ambari judge
success or fail? How can i make ambari know the failure of script mean
install fail?

> 
> On Fri, Mar 23, 2018 at 6:49 AM, <xiang.dai@sky-data.cn> wrote:
> 
> > Hi!
> >
> > I have some shell scripts and want to call them in service python scripts.
> >
> > I saw an example which use Execute to call shell script like
> > Execute("/path/do_something").
> >
> > But i notice that if the log level is INFO, the shekllscript own log can
> > not be printed, only change log
> > level to DEBUG can show log.
> >
> > Is there a better way to call shell script and print its log?
> >

-- 
Best Regards
Dai Xiang

Mime
View raw message