Re: Review Request 59870: Part Two: Specify the script directly in alert target for script-based alert dispatchers

2017-06-07 Thread yao lei
iew177262 --- On 六月 7, 2017, 4:34 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Review Request 59870: Part Two: Specify the script directly in alert target for script-based alert dispatchers

2017-06-06 Thread yao lei
90a8-483b3cfd4d52__script_alert_notification_2.png Thanks, yao lei

Re: Review Request 59440: Part One: Specify the script directly in alert target for script-based alert dispatchers

2017-06-06 Thread yao lei
t; Maybe make this a little clearer: > > > > The directory for scripts which are used by the alert notification > > dispatcher. > > yao lei wrote: > Got it. > I will make this change. > > yao lei wrote: > Hi Jonathan Hurley, >

Re: Review Request 59485: Edit notifications options are always grey but can click and open a popup

2017-06-05 Thread yao lei
iew176949 --- On 六月 5, 2017, 10:28 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Re: Review Request 59440: Part One: Specify the script directly in alert target for script-based alert dispatchers

2017-06-05 Thread yao lei
iew176931 --- On 六月 2, 2017, 1:31 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Re: Review Request 59485: Edit notifications options are always grey but can click and open a popup

2017-06-05 Thread yao lei
aded/files/2017/06/05/5ddcf172-e529-40ec-abe0-6c0cee83208f__notification.png Thanks, yao lei

Re: Review Request 59440: Part One: Specify the script directly in alert target for script-based alert dispatchers

2017-06-01 Thread yao lei
://reviews.apache.org/r/59440/diff/7/ Changes: https://reviews.apache.org/r/59440/diff/6-7/ Testing --- Tested in a cluster Thanks, yao lei

Re: Review Request 59440: Part One: Specify the script directly in alert target for script-based alert dispatchers

2017-06-01 Thread yao lei
mail. To reply, visit: https://reviews.apache.org/r/59440/#review176608 ----------- On 六月 1, 2017, 1:37 a.m., yao lei wrote: > > --- > This is an automatically gener

Re: Review Request 59440: Part One: Specify the script directly in alert target for script-based alert dispatchers

2017-06-01 Thread yao lei
iew176601 --- On 六月 1, 2017, 1:37 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/59440/ > -

Re: Review Request 59440: Part One: Specify the script directly in alert target for script-based alert dispatchers

2017-05-30 Thread yao lei
/ Changes: https://reviews.apache.org/r/59440/diff/3-4/ Testing --- Tested in a cluster Thanks, yao lei

Re: Review Request 59440: Part One: Specify the script directly in alert target for script-based alert dispatchers

2017-05-30 Thread yao lei
ally generated e-mail. To reply, visit: https://reviews.apache.org/r/59440/#review176309 ----------- On May 25, 2017, 6:02 a.m., yao lei wrote: > > --- > This is an au

Re: Review Request 59485: Edit notifications options are always grey but can click and open a popup

2017-05-25 Thread yao lei
/diff/1/ Testing --- 1.cd ambari-web & mvn test 30383 passing (34s) 157 pending 2.Tested in a cluster Thanks, yao lei

Re: Review Request 59485: Edit notifications options are always grey but can click and open a popup

2017-05-25 Thread yao lei
> On 五月 23, 2017, 11:41 a.m., Alexandr Antonenko wrote: > > Ship It! > > yao lei wrote: > Thanks for your review > > yao lei wrote: > Hi Alexandr Antonenko, > Would you please commit this patch if you are free? > Thanks. > > A

Re: Review Request 59485: Edit notifications options are always grey but can click and open a popup

2017-05-25 Thread yao lei
> On May 23, 2017, 11:41 a.m., Alexandr Antonenko wrote: > > Ship It! > > yao lei wrote: > Thanks for your review > > yao lei wrote: > Hi Alexandr Antonenko, > Would you please commit this patch if you are free? > Thanks. > > A

Re: Review Request 59440: Part One: Specify the script directly in alert target for script-based alert dispatchers

2017-05-25 Thread yao lei
1/alert_targets/:id {"AlertTarget":{"name":"test","description":"","global":true,"notification_type":"ALERT_SCRIPT","alert_states":["OK","WARNING","CRITICAL","UNKNOWN"],"properties":{"ambari.dispatch-property.script":"com.mycompany.dispatch.shell.script"}}} b.Delete /var/ambari-server/log_script_filename.log c.Stop or start any service , wait for a moment, we should see log in /var/log/ambari-server/log_script_dispatch_property.log and /var/ambari-server/log_script_filename.log is not existed any more. Thanks, yao lei

Re: Review Request 59485: Edit notifications options are always grey but can click and open a popup

2017-05-24 Thread yao lei
> On 五月 23, 2017, 11:41 a.m., Alexandr Antonenko wrote: > > Ship It! > > yao lei wrote: > Thanks for your review Hi Alexandr Antonenko, Would you please commit this patch if you are free? Thanks. - yao --- This i

Re: Review Request 59485: Edit notifications options are always grey but can click and open a popup

2017-05-23 Thread yao lei
iew175785 --- On 五月 23, 2017, 8:10 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Review Request 59485: Edit notifications options are always grey but can click and open a popup

2017-05-23 Thread yao lei
test 30383 passing (34s) 157 pending 2.Tested in a cluster Thanks, yao lei

Review Request 59440: Specify the script directly in alert target for script-based alert dispatchers

2017-05-22 Thread yao lei
ript_dispatch_property.log and /var/ambari-server/log_script_filename.log is not exited any more. Thanks, yao lei

Review Request 59256: RBAC:Ambari should be sensitve to the change of login user's permissions.

2017-05-13 Thread yao lei
/59256/diff/1/ Testing --- 1.mvn test 20691 passing (30s) 128 pending 2.Tested in cluster Thanks, yao lei

Re: Review Request 59085: RBAC: Service Operator/Administrator Role don't have HOST.ADD_DELETE_COMPONENTS permission so we 'd better hide relevant buttons on Web UI

2017-05-09 Thread yao lei
iew174319 --- On 五月 9, 2017, 9:49 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Review Request 59085: RBAC: Service Operator/Administrator Role don't have HOST.ADD_DELETE_COMPONENTS permission so we 'd better hide relevant buttons on Web UI

2017-05-09 Thread yao lei
test4? Cluster Administrator to test5 3.Login with above users in sequence and find items of Service Actions shown as expected Thanks, yao lei

Re: Review Request 58256: Support creating/editing alert dispatch targets for script-based alert dispatchers by web wizard instead of command line

2017-04-11 Thread yao lei
er. > > > Diffs > ----- > > > ambari-web/app/controllers/main/alerts/manage_alert_notifications_controller.js > 73c19c6 > ambari-web/app/messages.js a2edf06 > ambari-web/app/templates/main/alerts/create_alert_notification.hbs 5b40bca > > ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js > 31da561 > > > Diff: https://reviews.apache.org/r/58256/diff/2/ > > > Testing > --- > > mvn test > 20676 passing (34s) > 128 pending > > > Thanks, > > yao lei > >

Re: Review Request 58256: Support creating/editing alert dispatch targets for script-based alert dispatchers by web wizard instead of command line

2017-04-07 Thread yao lei
iew171399 --- On 四月 7, 2017, 2:16 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Review Request 58256: Support creating/editing alert dispatch targets for script-based alert dispatchers by web wizard instead of command line

2017-04-06 Thread yao lei
s 73c19c6 ambari-web/app/messages.js a2edf06 ambari-web/app/templates/main/alerts/create_alert_notification.hbs 5b40bca ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js 31da561 Diff: https://reviews.apache.org/r/58256/diff/1/ Testing --- mvn test 20676 passing (34s) 128 pending Thanks, yao lei

Re: Review Request 57716: Ambari View examples phone-list-upgrade-view/phone-list-view cannot display normally

2017-03-27 Thread yao lei
--------- On 三月 17, 2017, 1:47 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/57716/ > ---

Re: Review Request 57721: Custom properties of Alert Target are not reset after last Alert Target being created

2017-03-22 Thread yao lei
it: https://reviews.apache.org/r/57721/#review169780 --- On 三月 22, 2017, 1:48 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https:/

Re: Review Request 57721: Custom properties of Alert Target are not reset after last Alert Target being created

2017-03-22 Thread yao lei
iew169754 --- On 三月 22, 2017, 1:48 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Review Request 57721: Custom properties of Alert Target are not reset after last Alert Target being created

2017-03-17 Thread yao lei
/manage_alert_notifications_controller.js f470f08 ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js 15b4da3 Diff: https://reviews.apache.org/r/57721/diff/1/ Testing --- mvn test 20580 passing (36s) 153 pending Thanks, yao lei

Re: Review Request 57716: Ambari View examples phone-list-upgrade-view/phone-list-view cannot display normally

2017-03-16 Thread yao lei
6ed87cd ambari-views/examples/phone-list-view/src/main/java/org/apache/ambari/view/phonelist/PhoneListServlet.java 146a8e3 Diff: https://reviews.apache.org/r/57716/diff/1/ Testing --- Tested in a cluster Thanks, yao lei

Review Request 57716: Ambari View examples phone-list-upgrade-view/phone-list-view cannot display normally

2017-03-16 Thread yao lei
honelist/PhoneListServlet.java 146a8e3 Diff: https://reviews.apache.org/r/57716/diff/1/ Testing --- Tested in a cluster Thanks, yao lei

Re: Review Request 57281: Script-Based Alert Dispathers support passing more parameters to script

2017-03-06 Thread yao lei
> On 三月 6, 2017, 2:21 p.m., Jonathan Hurley wrote: > > Ship It! > > yao lei wrote: > Hi Jonathan, > Thank you very much. > Would you please help me to commit the patch to trunk if you are free? > > Jonathan Hurley wrote: > Yes, I'm just r

Re: Review Request 57281: Script-Based Alert Dispathers support passing more parameters to script

2017-03-06 Thread yao lei
To reply, visit: https://reviews.apache.org/r/57281/#review167979 --- On 三月 3, 2017, 11:56 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To rep

Re: Review Request 57281: Script-Based Alert Dispathers support passing more parameters to script

2017-03-03 Thread yao lei
iew167857 --- On 三月 3, 2017, 11:56 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Review Request 57281: Script-Based Alert Dispathers support passing more parameters to script

2017-03-03 Thread yao lei
an see the expected result. Thanks, yao lei

Re: Review Request 55817: AMBARI-19618 Make cohosted components configurable in metainfo.xml instead of hardcoding in UI

2017-02-22 Thread yao lei
is patch. I also think your contribution is more flexible. - yao --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/55817/#review166433 --- On 二月 2

Re: Review Request 55817: AMBARI-19618 Make cohosted components configurable in metainfo.xml instead of hardcoding in UI

2017-02-22 Thread yao lei
iew166421 --- On 二月 22, 2017, 1:52 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Re: Review Request 55817: AMBARI-19618 Make cohosted components configurable in metainfo.xml instead of hardcoding in UI

2017-02-22 Thread yao lei
his JIRA can > leverage the new behavior for hive server/webhcat cohost logic as Jaimin > suggested. Thank you for reviewing this patch - yao --- This is an automatically generated e-mail. To reply, visit

Re: Review Request 55817: AMBARI-19618 Make cohosted components configurable in metainfo.xml instead of hardcoding in UI

2017-02-21 Thread yao lei
on:254->testReadViewArchives:466 expected: but was: Tests run: 4417, Failures: 3, Errors: 0, Skipped: 30 3.Installed a cluster using RPM based on latest trunk codes and screenshots attached in https://issues.apache.org/jira/browse/AMBARI-19618 show the expected result. Thanks, yao lei

Re: Review Request 55817: AMBARI-19618 Make cohosted components configurable in metainfo.xml instead of hardcoding in UI

2017-02-21 Thread yao lei
d the test case to the updated patch. But I will handle the duplicate configuration in fronted code,this is because i think the backend code will only extact configurartion from tag which will be displayed by API How about your opinion? - yao ------------

Re: Review Request 55817: AMBARI-19618 Make cohosted components configurable in metainfo.xml instead of hardcoding in UI

2017-02-14 Thread yao lei
---------- On 二月 14, 2017, 1:20 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55817/ >

Re: Review Request 55817: AMBARI-19618 Make cohosted components configurable in metainfo.xml instead of hardcoding in UI

2017-02-13 Thread yao lei
expected: but was: Tests run: 4417, Failures: 3, Errors: 0, Skipped: 30 3.Installed a cluster using RPM based on latest trunk codes and screenshots attached in https://issues.apache.org/jira/browse/AMBARI-19618 show the expected result. Thanks, yao lei

Re: Review Request 55817: AMBARI-19618 Make cohosted components configurable in metainfo.xml instead of hardcoding in UI

2017-01-25 Thread yao lei
iew162992 --- On 一月 26, 2017, 12:22 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Review Request 55817: AMBARI-19618 Make cohosted components configurable in metainfo.xml instead of hardcoding in UI

2017-01-20 Thread yao lei
ipped: 30 3.Installed a cluster using RPM based on latest trunk codes and screenshots attached in https://issues.apache.org/jira/browse/AMBARI-19618 show the expected result. Thanks, yao lei

Re: Review Request 55173: Flume metrics can't show if hostname of flume agent is not lowercase

2017-01-09 Thread yao lei
played. > > > > Did you happen to investigate why Ambari server has lower hostcase name > > while the actual hostname is in mixed/upper case? > > yao lei wrote: > Thanks for your reply. > Firstly,the hostnames of flume metrics sent by flume si

Re: Review Request 55173: Flume metrics can't show if hostname of flume agent is not lowercase

2017-01-09 Thread yao lei
played. > > > > Did you happen to investigate why Ambari server has lower hostcase name > > while the actual hostname is in mixed/upper case? > > yao lei wrote: > Thanks for your reply. > Firstly,the hostnames of flume metrics sent by flume si

Re: Review Request 55173: Flume metrics can't show if hostname of flume agent is not lowercase

2017-01-08 Thread yao lei
> On 一月 9, 2017, 1:23 a.m., Matt wrote: > > Is this issue only for Flume? > > > > If the root cause is because of case mismatch, are other sinks (like > > StormTimelineMetricsSink, similar code to get hostname) prone to have the > > same issue? > > yao

Re: Review Request 55173: Flume metrics can't show if hostname of flume agent is not lowercase

2017-01-08 Thread yao lei
visit: https://reviews.apache.org/r/55173/#review160845 ----------- On 一月 5, 2017, 3:23 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To

Re: Review Request 55173: Flume metrics can't show if hostname of flume agent is not lowercase

2017-01-07 Thread yao lei
played. > > > > Did you happen to investigate why Ambari server has lower hostcase name > > while the actual hostname is in mixed/upper case? > > yao lei wrote: > Thanks for your reply. > Firstly,the hostnames of flume metrics sent by flume si

Re: Review Request 55173: Flume metrics can't show if hostname of flume agent is not lowercase

2017-01-07 Thread yao lei
eviews.apache.org/r/55173/#review160765 ----------- On 一月 5, 2017, 3:23 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55173/ > -

Review Request 55173: Flume metrics can't show if hostname of flume agent is not lowercase

2017-01-04 Thread yao lei
/FlumeTimelineMetricsSink.java c1b684b Diff: https://reviews.apache.org/r/55173/diff/ Testing --- Manually Tested Thanks, yao lei

Re: Review Request 52183: Support creating/editing alert target which notification_type is ALERT_SCRIPT in web client

2016-11-10 Thread yao lei
On 十月 13, 2016, 7:43 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/52183/ > ---

Re: Review Request 52183: Support creating/editing alert target which notification_type is ALERT_SCRIPT in web client

2016-10-12 Thread yao lei
ent jiras have existed - yao --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/52183/#review152389 --- On 九月 23,

Re: Review Request 52183: Support creating/editing alert target which notification_type is ALERT_SCRIPT in web client

2016-10-12 Thread yao lei
is may impact. Thanks for your comment. - yao --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/52183/#review152301 --- On 九月 23,

Review Request 52183: Support creating/editing alert target which notification_type is ALERT_SCRIPT in web client

2016-09-22 Thread yao lei
/create_alert_notification.hbs a248e57 ambari-web/test/controllers/main/alerts/manage_alert_notifications_controller_test.js a0a4ce4 Diff: https://reviews.apache.org/r/52183/diff/ Testing --- ambari-web/mvn test 30365 tests complete (43 seconds) 151 tests pending Thanks, yao lei

Re: Review Request 51599: AMBARI-18292 Support dispatching notifications of assigned alert states for script-based alert dispatcher

2016-09-20 Thread yao lei
"notification_type": "FOO", > > "groups": [1,2,3] > > } > > } > > ``` > > > > This is also accomplished through the Web Client when created/editing the > > target. > > yao lei wrote: > thanks for your explai

Re: Review Request 51599: AMBARI-18292 Support dispatching notifications of assigned alert states for script-based alert dispatcher

2016-09-07 Thread yao lei
"notification_type": "FOO", > > "groups": [1,2,3] > > } > > } > > ``` > > > > This is also accomplished through the Web Client when created/editing the > > target. > > yao lei wrote: >

Re: Review Request 51599: AMBARI-18292 Support dispatching notifications of assigned alert states for script-based alert dispatcher

2016-09-03 Thread yao lei
creating or editing the alert target on web ui? - yao ----------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/51599/#review147727 ---

Re: Review Request 51599: AMBARI-18292 Support dispatching notifications of assigned alert states for script-based alert dispatcher

2016-09-03 Thread yao lei
, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.096 sec - in Thanks, yao lei

Re: Review Request 51599: AMBARI-18292 Support dispatching notifications of assigned alert states for script-based alert dispatcher

2016-09-02 Thread yao lei
org.apache.ambari.server.notifications.dispatchers.AlertScriptDispatcherTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.096 sec - in Thanks, yao lei

Re: Review Request 51599: AMBARI-18292 Support dispatching notification of assigned alert states for script-based alert dispatcher

2016-09-02 Thread yao lei
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.096 sec - in Thanks, yao lei

Review Request 51599: Support dispatching notification of assigned alert states for script-based alert dispatcher

2016-09-02 Thread yao lei
/diff/ Testing --- Tested Running org.apache.ambari.server.notifications.dispatchers.AlertScriptDispatcherTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.096 sec - in Thanks, yao lei

Re: Review Request 42155: AMBARI-14605 '[RAM_DISK]' configured in dfs.datanode.data.dir fails to validate

2016-05-03 Thread yao lei
g/r/42155/#review131621 --- On 五月 3, 2016, 4:57 a.m., yao lei wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://revie

Re: Review Request 42155: AMBARI-14605 '[RAM_DISK]' configured in dfs.datanode.data.dir fails to validate

2016-05-02 Thread yao lei
ef90561 Diff: https://reviews.apache.org/r/42155/diff/ Testing --- Manually Tested. But Ambari Web Unit Test fails in trunk for other reasons described in https://builds.apache.org/job/Ambari-trunk-test-patch/4848//artifact/patch-work/testrun_ambari-web.txt Thanks, yao lei