Re: question about service both has master and client

2018-04-13 Thread xiang . dai
By the way, i found that if install master and client on same node, the client 
would at "STARTED" status, and can not exec "restart all" successfully.

- Original Message -
From: "Di Li" <osji...@gmail.com>
To: dev@ambari.apache.org
Sent: Saturday, April 14, 2018 4:04:10 AM
Subject: Re: question about service both has master and client

Restart all = stop, re-install client, start non-client components
Stop then start is just what it indicates.

On Thu, Apr 12, 2018 at 10:30 PM, <xiang@sky-data.cn> wrote:

> Hi!
>
> I define a custom service which include master and client.
>
> In master script, it has install/status/configuare/start/stop function.
>
> In client script, it only has *install* function.
>
> For A node, i install master, and for B node, i install client.
>
> I install and stop as expected, but when exec "restart all" from web,
>
> A node restart as usual, but B node exec *install* function.
>
> In my thought, "restart all" should work like "stop" which only work for
> master/slave node.
>
> Is is a bug or someting import i had missed?
>
> Best Wishes
>
-- 
戴翔 
南京天数信息科技有限公司 
电话: +86 1 3382776490 
公司官网: www.sky-data.cn 
免费使用天数润科智能计算平台 SkyDiscovery


Re: question about service both has master and client

2018-04-13 Thread Di Li
Restart all = stop, re-install client, start non-client components
Stop then start is just what it indicates.

On Thu, Apr 12, 2018 at 10:30 PM,  wrote:

> Hi!
>
> I define a custom service which include master and client.
>
> In master script, it has install/status/configuare/start/stop function.
>
> In client script, it only has *install* function.
>
> For A node, i install master, and for B node, i install client.
>
> I install and stop as expected, but when exec "restart all" from web,
>
> A node restart as usual, but B node exec *install* function.
>
> In my thought, "restart all" should work like "stop" which only work for
> master/slave node.
>
> Is is a bug or someting import i had missed?
>
> Best Wishes
>


question about service both has master and client

2018-04-12 Thread xiang . dai
Hi! 

I define a custom service which include master and client. 

In master script, it has install/status/configuare/start/stop function. 

In client script, it only has *install* function. 

For A node, i install master, and for B node, i install client. 

I install and stop as expected, but when exec "restart all" from web, 

A node restart as usual, but B node exec *install* function. 

In my thought, "restart all" should work like "stop" which only work for 
master/slave node. 

Is is a bug or someting import i had missed? 

Best Wishes