Re: Review Request 45522: AMBARI-14472: Stack Featurize OozieService

2016-03-30 Thread Jayush Luniya

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45522/#review126277
---




ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
 (line 123)


Rename to oozie_create_hive_tez_configs instead?


- Jayush Luniya


On March 31, 2016, 2:50 a.m., Juanjo  Marron wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45522/
> ---
> 
> (Updated March 31, 2016, 2:50 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Jayush Luniya.
> 
> 
> Bugs: AMBARI-14472
> https://issues.apache.org/jira/browse/AMBARI-14472
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Stack Featurize Oozie Service
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/constants.py
>  54fbb8e 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
>  ac2dbd9 
>   
> ambari-common/src/main/python/resource_management/libraries/script/script.py 
> 4cbf2d7 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/alerts/alert_check_oozie_server.py
>  90851c8 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
>  3b01802 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_client.py
>  4fc50d2 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server.py
>  e9da71b 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py
>  2db3672 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/params_linux.py
>  ce44d5c 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/status_params.py
>  a08ae3a 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml
>  974ddd7 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
>  1c80663 
> 
> Diff: https://reviews.apache.org/r/45522/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test -DskipSurefireTests 
> 
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 3:58.802s
> [INFO] Finished at: Wed Mar 30 18:57:06 PDT 2016
> [INFO] Final Memory: 110M/796M
> [INFO] 
> 
> [root@localhost ambari]#
> 
> 
> Thanks,
> 
> Juanjo  Marron
> 
>



Re: Review Request 45522: AMBARI-14472: Stack Featurize OozieService

2016-03-30 Thread Jayush Luniya

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45522/#review126274
---




ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py
 


Let me check if this restriction for 2.2.1.0 is Oozie specific.



ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/params_linux.py
 (line 130)


Lets just use stack_name.upper() to set this for now and remove the HDP 
hardcoding.



ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml 
(line 194)


This path isnt valid. For Oozie the directory is /usr/share/HDP-oozie. Lets 
not set this to /usr/share/HDP as it does not exist. 

Also I dont think we should add a stack_share_dir in this case until we 
have a constructive plan on how the stack_shared_dir will be used.

Using for just /usr/share/HDP-oozie doesnt look correct.


- Jayush Luniya


On March 31, 2016, 2:50 a.m., Juanjo  Marron wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45522/
> ---
> 
> (Updated March 31, 2016, 2:50 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Jayush Luniya.
> 
> 
> Bugs: AMBARI-14472
> https://issues.apache.org/jira/browse/AMBARI-14472
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Stack Featurize Oozie Service
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/constants.py
>  54fbb8e 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
>  ac2dbd9 
>   
> ambari-common/src/main/python/resource_management/libraries/script/script.py 
> 4cbf2d7 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/alerts/alert_check_oozie_server.py
>  90851c8 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
>  3b01802 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_client.py
>  4fc50d2 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server.py
>  e9da71b 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py
>  2db3672 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/params_linux.py
>  ce44d5c 
>   
> ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/status_params.py
>  a08ae3a 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml
>  974ddd7 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
>  1c80663 
> 
> Diff: https://reviews.apache.org/r/45522/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test -DskipSurefireTests 
> 
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 3:58.802s
> [INFO] Finished at: Wed Mar 30 18:57:06 PDT 2016
> [INFO] Final Memory: 110M/796M
> [INFO] 
> 
> [root@localhost ambari]#
> 
> 
> Thanks,
> 
> Juanjo  Marron
> 
>



Re: Review Request 45516: AMBARI-15639. Expose MariaDB option for Hive, Oozie and Ranger

2016-03-30 Thread Jayush Luniya

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45516/#review126272
---


Ship it!




Ship It!

- Jayush Luniya


On March 31, 2016, 1:32 a.m., Richard Zang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45516/
> ---
> 
> (Updated March 31, 2016, 1:32 a.m.)
> 
> 
> Review request for Ambari, Jaimin Jetly and Yusaku Sako.
> 
> 
> Bugs: AMBARI-15639
> https://issues.apache.org/jira/browse/AMBARI-15639
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> MariaDB related label changes.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/configuration/ranger-admin-site.xml
>  07eb7c4 
>   ambari-web/app/data/HDP2/site_properties.js 40676df 
> 
> Diff: https://reviews.apache.org/r/45516/diff/
> 
> 
> Testing
> ---
> 
> Manually tested on live cluster. All unit tests passed.
>   25625 tests complete (25 seconds)
>   154 tests pending
> 
> 
> Thanks,
> 
> Richard Zang
> 
>



Re: Review Request 45519: AMBARI-15637. BRANCH-2.2 If RU/EU is paused, services are restarted on the older version. EU is more complex since stopping services should use the original version.

2016-03-30 Thread Jayush Luniya

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45519/#review126271
---




ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
 (line 1220)


This essentially enforces non-rolling upgrade packs to have the following. 
Can we make it a bit less restrictive, atleast not limit based on title text? 


  


  


 Also I see few non-rolling upgrade packs used in test that don't conform 
to this 
 

ambari/ambari-funtest/src/test/resources/stacks/HDP/2.1.1/upgrades/upgrade_test_nonrolling.xml

  


  



ambari/ambari-server/src/test/resources/stacks/HDP/2.1.1/upgrades/upgrade_test_nonrolling.xml

  


  



- Jayush Luniya


On March 31, 2016, 2:07 a.m., Alejandro Fernandez wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45519/
> ---
> 
> (Updated March 31, 2016, 2:07 a.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, Jonathan 
> Hurley, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-15637
> https://issues.apache.org/jira/browse/AMBARI-15637
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Currently, if RU/EU is paused, then restarting services manually will use the 
> version whose state is CURRENT. This means that services may be restarted on 
> the wrong version, preventing Ambari from correctly Finalizing the upgrade.
> Instead, the logic should be as follows during Upgrade:
> RU: always use to_version
> EU: if haven't completed the action "UPDATE_DESIRED_STACK_ID", then use the 
> from_version, otherwise, use the to_version.
> 
> During Downgrade, both should use the original version, which is actually the 
> to_version column in the upgrade table.
> 
> THIS CODE REVIEW IS FOR BRANCH-2.2, I WILL CREATE A DIFFERENT ONE FOR TRUNK.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java
>  1767b02 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
>  dd66dcc 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
>  ec49364 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
>  ef8a8d4 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
>  5c8b7f3 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/dao/UpgradeDAO.java 
> 06f6ac1 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java
>  a12b204 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java
>  fd866a1 
>   ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java 
> b49f566 
>   
> ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
>  3493508 
> 
> Diff: https://reviews.apache.org/r/45519/diff/
> 
> 
> Testing
> ---
> 
> Verified it worked
> 
> Assertions:
> A: restart a service (should have version parameter,
> B: run a service check (no version needed)
> C: run HDFS Rebalance (should have version parameter).
> 
> Test Cases:
> 1. Before stack upgrade, run A, B, and C, which should all use the current 
> version
> 2. EU, immediately click pause. Run A, B, and C, which should use the 
> original version if it exists
> 3. EU, after the services have been stopped and the stack has been upgraded. 
> Run A, B, and C, which should use the new version since the services are now 
> to be started.
> 4. EU, click downgrade and pause. Run A, B, C, which should use the original 
> version.
> 5. RU, click pause whenever a manual task occurs. Run A, B, and C, which 
> should use the destination version.
> 6. RU, click downgrade. Run A, B, and C, which should use the original 
> version.
> 
> Unit Tests passed,
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 01:10 h
> [INFO] Finished at: 2016-03-30T19:07:04-07:00
> [INFO] Final Memory: 130M/4052M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Alejandro Fernandez
> 
>



Review Request 45522: AMBARI-14472: Stack Featurize OozieService

2016-03-30 Thread Juanjo Marron

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45522/
---

Review request for Ambari, Alejandro Fernandez and Jayush Luniya.


Bugs: AMBARI-14472
https://issues.apache.org/jira/browse/AMBARI-14472


Repository: ambari


Description
---

Stack Featurize Oozie Service


Diffs
-

  
ambari-common/src/main/python/resource_management/libraries/functions/constants.py
 54fbb8e 
  
ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
 ac2dbd9 
  ambari-common/src/main/python/resource_management/libraries/script/script.py 
4cbf2d7 
  
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/alerts/alert_check_oozie_server.py
 90851c8 
  
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
 3b01802 
  
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_client.py
 4fc50d2 
  
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server.py
 e9da71b 
  
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py
 2db3672 
  
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/params_linux.py
 ce44d5c 
  
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/status_params.py
 a08ae3a 
  
ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml 
974ddd7 
  
ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
 1c80663 

Diff: https://reviews.apache.org/r/45522/diff/


Testing
---

mvn clean test -DskipSurefireTests 

[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 3:58.802s
[INFO] Finished at: Wed Mar 30 18:57:06 PDT 2016
[INFO] Final Memory: 110M/796M
[INFO] 
[root@localhost ambari]#


Thanks,

Juanjo  Marron



Re: Review Request 45519: AMBARI-15637. BRANCH-2.2 If RU/EU is paused, services are restarted on the older version. EU is more complex since stopping services should use the original version.

2016-03-30 Thread Alejandro Fernandez

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45519/
---

(Updated March 31, 2016, 2:07 a.m.)


Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, Jonathan 
Hurley, Jayush Luniya, and Nate Cole.


Bugs: AMBARI-15637
https://issues.apache.org/jira/browse/AMBARI-15637


Repository: ambari


Description
---

Currently, if RU/EU is paused, then restarting services manually will use the 
version whose state is CURRENT. This means that services may be restarted on 
the wrong version, preventing Ambari from correctly Finalizing the upgrade.
Instead, the logic should be as follows during Upgrade:
RU: always use to_version
EU: if haven't completed the action "UPDATE_DESIRED_STACK_ID", then use the 
from_version, otherwise, use the to_version.

During Downgrade, both should use the original version, which is actually the 
to_version column in the upgrade table.

THIS CODE REVIEW IS FOR BRANCH-2.2, I WILL CREATE A DIFFERENT ONE FOR TRUNK.


Diffs
-

  
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java
 1767b02 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
 dd66dcc 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
 ec49364 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
 ef8a8d4 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
 5c8b7f3 
  ambari-server/src/main/java/org/apache/ambari/server/orm/dao/UpgradeDAO.java 
06f6ac1 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java
 a12b204 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java
 fd866a1 
  ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java 
b49f566 
  
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
 3493508 

Diff: https://reviews.apache.org/r/45519/diff/


Testing (updated)
---

Verified it worked

Assertions:
A: restart a service (should have version parameter,
B: run a service check (no version needed)
C: run HDFS Rebalance (should have version parameter).

Test Cases:
1. Before stack upgrade, run A, B, and C, which should all use the current 
version
2. EU, immediately click pause. Run A, B, and C, which should use the original 
version if it exists
3. EU, after the services have been stopped and the stack has been upgraded. 
Run A, B, and C, which should use the new version since the services are now to 
be started.
4. EU, click downgrade and pause. Run A, B, C, which should use the original 
version.
5. RU, click pause whenever a manual task occurs. Run A, B, and C, which should 
use the destination version.
6. RU, click downgrade. Run A, B, and C, which should use the original version.

Unit Tests passed,
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 01:10 h
[INFO] Finished at: 2016-03-30T19:07:04-07:00
[INFO] Final Memory: 130M/4052M
[INFO] 


Thanks,

Alejandro Fernandez



Re: Review Request 45054: AMBARI-15443:Make Host bulk command menu item list stack driven instead of a hardcoded list in UI code

2016-03-30 Thread Alejandro Fernandez

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45054/#review126240
---


Fix it, then Ship it!





ambari-server/src/main/java/org/apache/ambari/server/state/BulkCommandDefinition.java
 (line 70)


May want to check these these are not null.


- Alejandro Fernandez


On March 29, 2016, 5:03 p.m., Di Li wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45054/
> ---
> 
> (Updated March 29, 2016, 5:03 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jaimin Jetly, and Yusaku Sako.
> 
> 
> Bugs: AMBARI-15443
> https://issues.apache.org/jira/browse/AMBARI-15443
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> The items described here are the ones on the Hosts tab, in the Actions 
> drop-down list where the UI shows entries such as All Hosts. If user mouses 
> over the All Hosts, it shows a sub-list including Hosts and slave components.
> 
> The slave component items are hardcoded in hosts_table_menu_view.js as shown 
> below. This jira is to put this info into each service's metainfo.xml so that 
> the slave component items can be stack driven.
> 
> components: function () {
> var serviceNames = App.Service.find().mapProperty('serviceName');
> var menuItems = [
> O.create(
> { serviceName: 'HDFS', componentName: 'DATANODE', masterComponentName: 
> 'NAMENODE', componentNameFormatted: 
> Em.I18n.t('dashboard.services.hdfs.datanodes') }
> 
> ),
> O.create(
> { serviceName: 'YARN', componentName: 'NODEMANAGER', masterComponentName: 
> 'RESOURCEMANAGER', componentNameFormatted: 
> Em.I18n.t('dashboard.services.yarn.nodeManagers') }
> 
> ),
> O.create(
> { serviceName: 'HBASE', componentName: 'HBASE_REGIONSERVER', 
> masterComponentName: 'HBASE_MASTER', componentNameFormatted: 
> Em.I18n.t('dashboard.services.hbase.regionServers') }
> 
> ),
> O.create(
> { serviceName: 'STORM', componentName: 'SUPERVISOR', masterComponentName: 
> 'SUPERVISOR', componentNameFormatted: 
> Em.I18n.t('dashboard.services.storm.supervisors') }
> 
> )];
> 
> return menuItems.filter(function (item)
> { return serviceNames.contains(item.serviceName); }
> 
> );
> }.property(),
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/StackServiceComponentResponse.java
>  cfd4e7b 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StackServiceComponentResourceProvider.java
>  70945ba 
>   
> ambari-server/src/main/java/org/apache/ambari/server/stack/ComponentModule.java
>  a122dc6 
>   
> ambari-server/src/main/java/org/apache/ambari/server/state/BulkCommandDefinition.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/state/ComponentInfo.java 
> 770ee5c 
>   ambari-server/src/main/resources/common-services/HAWQ/2.0.0/metainfo.xml 
> e35b7d8 
>   
> ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/metainfo.xml
>  057e126 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/metainfo.xml 
> 75d3bea 
>   ambari-server/src/main/resources/common-services/PXF/3.0.0/metainfo.xml 
> afe27ec 
>   
> ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/metainfo.xml 
> 804374a 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/metainfo.xml 
> 0f71585 
>   ambari-server/src/main/resources/properties.json 01c15f2 
>   
> ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
>  ca062c0 
>   
> ambari-server/src/test/java/org/apache/ambari/server/stack/ComponentModuleTest.java
>  2f84f04 
>   
> ambari-server/src/test/resources/stacks/HDP/2.0.5/services/HBASE/metainfo.xml 
> 0942428 
>   
> ambari-server/src/test/resources/stacks/HDP/2.0.5/services/HDFS/metainfo.xml 
> 7c0dc74 
>   
> ambari-server/src/test/resources/stacks/HDP/2.0.6/services/HBASE/metainfo.xml 
> 3043b1e 
>   ambari-web/app/mappers/stack_service_mapper.js 8a65055 
>   ambari-web/app/models/stack_service_component.js 26ff1b8 
>   ambari-web/app/views/main/host/hosts_table_menu_view.js e75b643 
>   ambari-web/test/mappers/stack_service_mapper_test.js 4bc36fe 
> 
> Diff: https://reviews.apache.org/r/45054/diff/
> 
> 
> Testing
> ---
> 
> unit test
> patch a trunk cluster with code change, verify the host bulk command list 
> shown for DataNode, HBase Region server, storm supervisor, etc.
> 
> 
> Thanks,
> 
> Di Li
> 
>



Re: Review Request 45516: AMBARI-15639. Expose MariaDB option for Hive, Oozie and Ranger

2016-03-30 Thread Alejandro Fernandez

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45516/#review126237
---


Ship it!




Ship It!

- Alejandro Fernandez


On March 31, 2016, 1:32 a.m., Richard Zang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45516/
> ---
> 
> (Updated March 31, 2016, 1:32 a.m.)
> 
> 
> Review request for Ambari, Jaimin Jetly and Yusaku Sako.
> 
> 
> Bugs: AMBARI-15639
> https://issues.apache.org/jira/browse/AMBARI-15639
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> MariaDB related label changes.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/configuration/ranger-admin-site.xml
>  07eb7c4 
>   ambari-web/app/data/HDP2/site_properties.js 40676df 
> 
> Diff: https://reviews.apache.org/r/45516/diff/
> 
> 
> Testing
> ---
> 
> Manually tested on live cluster. All unit tests passed.
>   25625 tests complete (25 seconds)
>   154 tests pending
> 
> 
> Thanks,
> 
> Richard Zang
> 
>



Re: Review Request 45519: AMBARI-15637. BRANCH-2.2 If RU/EU is paused, services are restarted on the older version. EU is more complex since stopping services should use the original version.

2016-03-30 Thread Alejandro Fernandez

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45519/#review126236
---




ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java
 (line 429)


This is the actual fix.



ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
 (line 2012)


This is the actual fix.



ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
 (line 1173)


Notice how this queries the DB to find the upgrade in progress and then 
determines which version to use.
In trunk, I will use the setUpgradeEntity and getUpgradeEntity methods that 
cache the UpgradeEntity currently in progress. For branch-2.2, I wanted to keep 
it simple.



ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
 (line 1218)


This relies on these string constants, which I think is ok. Ideally, we 
would have added a marker to the upgrade table for which version to use, but 
this approach works just as well.


- Alejandro Fernandez


On March 31, 2016, 1:37 a.m., Alejandro Fernandez wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45519/
> ---
> 
> (Updated March 31, 2016, 1:37 a.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, Jonathan 
> Hurley, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-15637
> https://issues.apache.org/jira/browse/AMBARI-15637
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Currently, if RU/EU is paused, then restarting services manually will use the 
> version whose state is CURRENT. This means that services may be restarted on 
> the wrong version, preventing Ambari from correctly Finalizing the upgrade.
> Instead, the logic should be as follows during Upgrade:
> RU: always use to_version
> EU: if haven't completed the action "UPDATE_DESIRED_STACK_ID", then use the 
> from_version, otherwise, use the to_version.
> 
> During Downgrade, both should use the original version, which is actually the 
> to_version column in the upgrade table.
> 
> THIS CODE REVIEW IS FOR BRANCH-2.2, I WILL CREATE A DIFFERENT ONE FOR TRUNK.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java
>  1767b02 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
>  dd66dcc 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
>  ec49364 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
>  ef8a8d4 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
>  5c8b7f3 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/dao/UpgradeDAO.java 
> 06f6ac1 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java
>  a12b204 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java
>  fd866a1 
>   ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java 
> b49f566 
>   
> ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
>  3493508 
> 
> Diff: https://reviews.apache.org/r/45519/diff/
> 
> 
> Testing
> ---
> 
> Verified it worked, still waiting for unit test results.
> 
> Assertions:
> A: restart a service (should have version parameter,
> B: run a service check (no version needed)
> C: run HDFS Rebalance (should have version parameter).
> 
> Test Cases:
> 1. Before stack upgrade, run A, B, and C, which should all use the current 
> version
> 2. EU, immediately click pause. Run A, B, and C, which should use the 
> original version if it exists
> 3. EU, after the services have been stopped and the stack has been upgraded. 
> Run A, B, and C, which should use the new version since the services are now 
> to be started.
> 4. EU, click downgrade and pause. Run A, B, C, which should use the original 
> version.
> 5. RU, click pause whenever a manual task occurs. Run A, B, and C, which 
> should use the destination version.
> 6. RU, click downgrade. Run A, B, and C, which should use the original 
> version.
> 
> 
> Thanks,
> 
> Alejandro Fernandez
> 
>



Review Request 45519: AMBARI-15637. BRANCH-2.2 If RU/EU is paused, services are restarted on the older version. EU is more complex since stopping services should use the original version.

2016-03-30 Thread Alejandro Fernandez

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45519/
---

Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, Jonathan 
Hurley, Jayush Luniya, and Nate Cole.


Bugs: AMBARI-15637
https://issues.apache.org/jira/browse/AMBARI-15637


Repository: ambari


Description
---

Currently, if RU/EU is paused, then restarting services manually will use the 
version whose state is CURRENT. This means that services may be restarted on 
the wrong version, preventing Ambari from correctly Finalizing the upgrade.
Instead, the logic should be as follows during Upgrade:
RU: always use to_version
EU: if haven't completed the action "UPDATE_DESIRED_STACK_ID", then use the 
from_version, otherwise, use the to_version.

During Downgrade, both should use the original version, which is actually the 
to_version column in the upgrade table.

THIS CODE REVIEW IS FOR BRANCH-2.2, I WILL CREATE A DIFFERENT ONE FOR TRUNK.


Diffs
-

  
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java
 1767b02 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
 dd66dcc 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
 ec49364 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
 ef8a8d4 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
 5c8b7f3 
  ambari-server/src/main/java/org/apache/ambari/server/orm/dao/UpgradeDAO.java 
06f6ac1 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java
 a12b204 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeEntity.java
 fd866a1 
  ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java 
b49f566 
  
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
 3493508 

Diff: https://reviews.apache.org/r/45519/diff/


Testing
---

Verified it worked, still waiting for unit test results.

Assertions:
A: restart a service (should have version parameter,
B: run a service check (no version needed)
C: run HDFS Rebalance (should have version parameter).

Test Cases:
1. Before stack upgrade, run A, B, and C, which should all use the current 
version
2. EU, immediately click pause. Run A, B, and C, which should use the original 
version if it exists
3. EU, after the services have been stopped and the stack has been upgraded. 
Run A, B, and C, which should use the new version since the services are now to 
be started.
4. EU, click downgrade and pause. Run A, B, C, which should use the original 
version.
5. RU, click pause whenever a manual task occurs. Run A, B, and C, which should 
use the destination version.
6. RU, click downgrade. Run A, B, and C, which should use the original version.


Thanks,

Alejandro Fernandez



Review Request 45518: AMBARI-15638 : AMS Sum Calculation Incorrect

2016-03-30 Thread Aravindan Vijayan

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45518/
---

Review request for Ambari, Dmytro Sen, Sumit Mohanty, and Sid Wagle.


Bugs: AMBARI-15638
https://issues.apache.org/jira/browse/AMBARI-15638


Repository: ambari


Description
---

Sum Calculation is incorrect when the time range is more than 2 hrs.
This issue affects all metrics that are queried with the "sum" aggregator (with 
or without hostname being specified) for more than a 2hr time-range.


Diffs
-

  
ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/TimelineMetricReadHelper.java
 846ae92 
  
ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/query/PhoenixTransactSQL.java
 e67a5b8 

Diff: https://reviews.apache.org/r/45518/diff/


Testing
---

Manually tested. Unit tests pass.


Thanks,

Aravindan Vijayan



Review Request 45516: AMBARI-15639. Expose MariaDB option for Hive, Oozie and Ranger

2016-03-30 Thread Richard Zang

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45516/
---

Review request for Ambari, Jaimin Jetly and Yusaku Sako.


Bugs: AMBARI-15639
https://issues.apache.org/jira/browse/AMBARI-15639


Repository: ambari


Description
---

MariaDB related label changes.


Diffs
-

  
ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/configuration/ranger-admin-site.xml
 07eb7c4 
  ambari-web/app/data/HDP2/site_properties.js 40676df 

Diff: https://reviews.apache.org/r/45516/diff/


Testing
---

Manually tested on live cluster. All unit tests passed.
  25625 tests complete (25 seconds)
  154 tests pending


Thanks,

Richard Zang



Re: Review Request 45442: Orphaned Host Alerts Cause Stale Alert Notifications After Removing Hosts

2016-03-30 Thread Alejandro Fernandez

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45442/#review126231
---




ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertReceivedListener.java
 (line 403)


This will acquire a read lock every time. If performance suffers, perhaps 
we can relax that constraint a bit since alerts have a bit more leeway


- Alejandro Fernandez


On March 29, 2016, 7:32 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45442/
> ---
> 
> (Updated March 29, 2016, 7:32 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Dmitro Lisnichenko, and Nate 
> Cole.
> 
> 
> Bugs: AMBARI-15620
> https://issues.apache.org/jira/browse/AMBARI-15620
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Host-level alerts from {{AMBARI}}/{{AMBARI_AGENT}} are orphaned after 
> removing a host because they are always considered valid. 
> 
> STR
> - Deploy cluster 
> - Add/Remove nodes a few times 
> - Removed all aded nodes
> 
> {code}
>  There are 4 stale alerts from 4 host(s): 
> amb-roll-workflow1458640758-5.novalocal[Host Disk Usage (3h 52m)], 
> amb-roll-workflow1458640758-2.novalocal[Host Disk Usage (3h 52m)], 
> amb-roll-workflow1458640758-3.novalocal[Host Disk Usage (3h 52m)], 
> amb-roll-workflow1458640758-4.novalocal[Host Disk Usage (3h 52m)]
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertReceivedListener.java
>  8dc8e1e 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostDAO.java 
> ebd29e3 
>   ambari-server/src/main/java/org/apache/ambari/server/state/Clusters.java 
> a1ebaba 
>   
> ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java
>  6c68d0e 
>   
> ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertReceivedListenerTest.java
>  136a756 
> 
> Diff: https://reviews.apache.org/r/45442/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Review Request 45507: Enhance blueprint support for using references

2016-03-30 Thread Amruta Borkar

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45507/
---

Review request for Ambari and Robert Nettleton.


Bugs: AMBARI-15395 and AMBARI-15406
https://issues.apache.org/jira/browse/AMBARI-15395
https://issues.apache.org/jira/browse/AMBARI-15406


Repository: ambari


Description
---

Enhance blueprints to export placeholder/token for password properties. This is 
to avoid user from having tochange the password once the cluster is formed if a 
user wishes to do so.
Secret References acting as tokens to password properties would be replaced by 
user with appropriate passwords,
If any Secret references are found during cluster deployment with blueprint, 
those will be replaced by default_password provided in blueprint template. 
Need more comments to make this feature more portable.


Diffs
-

  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
 9cc7b13 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintValidatorImpl.java
 432c6f8 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/RequiredPasswordValidator.java
 98eaa40 
  
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java
 14a718d 
  
ambari-server/src/test/java/org/apache/ambari/server/topology/BlueprintImplTest.java
 0b06eb8 
  
ambari-server/src/test/java/org/apache/ambari/server/topology/RequiredPasswordValidatorTest.java
 e8a2ff5 

Diff: https://reviews.apache.org/r/45507/diff/


Testing
---

Tested the patch by trying out blueprint export and creating a cluster from the 
exported blueprint. Result was: the password tokens were replaced by default 
password and cluster was created successfully.


File Attachments


AMBARI-15406.patch
  
https://reviews.apache.org/media/uploaded/files/2016/03/30/8daa09ee-82e5-4cd8-98d3-b1c00f1269b7__AMBARI-15406.patch


Thanks,

Amruta Borkar



Re: Review Request 45347: AMBARI-15592: Auto-start services - support blueprint deployment.

2016-03-30 Thread Nahappan Somasundaram

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45347/
---

(Updated March 30, 2016, 2:46 p.m.)


Review request for Ambari, Ajit Kumar, Jonathan Hurley, Nate Cole, Sumit 
Mohanty, Sebastian Toader, and Sid Wagle.


Changes
---

BlueprintEntity.getSettings() & setSettings(). Make SettingFactory static. 
UpgradeCatalog240 merge.


Bugs: AMBARI-15592
https://issues.apache.org/jira/browse/AMBARI-15592


Repository: ambari


Description
---

AMBARI-15592: Auto-start services - support blueprint deployment.

** Issue: **
Define a JSON structure to specify settings for auto start in a blueprint and 
use that information to enable or disable auto start for components during 
deployment.

** Changes **
Added a new section in the blueprint called "settings" which is a collection of 
various setting names to collection of properties. For auto start, the 
following setting names are used:
*recovery_settings*: {"recovery_enabled" : "true" } specifies that auto start 
should be enabled for all components. Can also be specified within a 
collection, to support a uniform schema.
*service_settings*: Collection of service names and the recovery values. 
[{"name":"HDFS", "recovery_enabled":"false"},{...}] overrides cluster level 
recovery settings.
*component_settings*: Collection of component names and the corresponding 
recovery values.  [{"name":"HDFS_CLIENT", "recovery_enabled":"true"},{...}]. 
Overrides both service settings and recovery settings.


Diffs (updated)
-

  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintEntity.java
 8578d6beca91bf411d0c3dafeaee42d2dd23caea 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintSettingEntity.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java
 a5e2fa1c7a2adaadc8bbe9de15b913cd9a7ca456 
  ambari-server/src/main/java/org/apache/ambari/server/topology/Blueprint.java 
11311dba0f1174248d24276a41837d7284e41607 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintFactory.java
 cca28ca1529d6bccdf7a870dab7c317c1a334b1d 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java
 bea036421c64b70b4bceffcbd0d13c26020a7ed1 
  ambari-server/src/main/java/org/apache/ambari/server/topology/Setting.java 
PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/SettingFactory.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java
 d8b84ec8fc1ddd13fa460d6029a735a16217a7e1 
  ambari-server/src/main/resources/Ambari-DDL-Derby-CREATE.sql 
4a0479eb3b749f332fda306ecc9b9698cde0ac92 
  ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 
e40165d72d5d97be28882bbdf61cae5f5be67c9b 
  ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql 
e85ea496696603b20b0efd8ffd6fb5cd2e9246ea 
  ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 
8bcda317c70cce320fa69127e52a786fdd372eac 
  ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql 
c7d7cff85e1aa502976db3f7902c3d920a9e5a02 
  ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql 
4bd7a7a9209d4d102d6d0612450280214f9b32b0 
  ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 
063db3aa6f4e3f14563180be2b20664f9351d852 
  ambari-server/src/main/resources/META-INF/persistence.xml 
513035f5baf6eacfcc69507069d311418546a09c 
  ambari-server/src/main/resources/properties.json 
01c15f2b1c3564c37e8203ec70f2d2b812135b13 
  
ambari-server/src/test/java/org/apache/ambari/server/orm/entities/BlueprintEntityTest.java
 c660d19aee1727fd4734c07c0e5130f5bbe3c3cf 
  
ambari-server/src/test/java/org/apache/ambari/server/orm/entities/BlueprintSettingEntityTest.java
 PRE-CREATION 
  
ambari-server/src/test/java/org/apache/ambari/server/topology/SettingFactoryTest.java
 PRE-CREATION 
  
ambari-server/src/test/java/org/apache/ambari/server/topology/SettingTest.java 
PRE-CREATION 
  
ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog240Test.java
 5cd3bdce409ccc388c5c455d6a3820dfa7fbe1ee 

Diff: https://reviews.apache.org/r/45347/diff/


Testing
---

** 1. mvn clean install **

[INFO] 
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Main ... SUCCESS [4.429s]
[INFO] Apache Ambari Project POM . SUCCESS [0.035s]
[INFO] Ambari Web  SUCCESS [30.123s]
[INFO] Ambari Views .. SUCCESS [1.231s]
[INFO] Ambari Admin View . SUCCESS [7.878s]
[INFO] ambari-metrics  SUCCESS [0.360s]
[INFO] Ambari Metrics Common ...

Re: Review Request 45470: AMBARI-15578: Stack Featurize Atlas Service

2016-03-30 Thread Juanjo Marron

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45470/#review126192
---


Ship it!




Ship It!

- Juanjo  Marron


On March 30, 2016, 5:15 a.m., Jayush Luniya wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45470/
> ---
> 
> (Updated March 30, 2016, 5:15 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Juanjo  Marron, and Sumit 
> Mohanty.
> 
> 
> Bugs: AMBARI-15578
> https://issues.apache.org/jira/browse/AMBARI-15578
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Stack Featurize Atlas Service
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
>  da34696 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/atlas_client.py
>  8fabaac 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py
>  b6374f9 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
>  097765e 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
>  86e5971 
> 
> Diff: https://reviews.apache.org/r/45470/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test -DskipSurefireTests
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 54.063s
> [INFO] Finished at: Tue Mar 29 22:06:24 PDT 2016
> [INFO] Final Memory: 63M/1108M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jayush Luniya
> 
>



Re: Review Request 45470: AMBARI-15578: Stack Featurize Atlas Service

2016-03-30 Thread Jayush Luniya


> On March 30, 2016, 6:02 p.m., Juanjo  Marron wrote:
> > ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json,
> >  line 107
> > 
> >
> > Is it rolling_upgrade related or the version where Atlas was introduced 
> > in the stack?
> > 
> > {
> >   "name": "atlas",
> >   "description": "Atlas Service support",
> >   "min_version": "2.3.0.0"
> > }
> > 
> > I think rolling upgrade and config versioning could be added as 
> > features later on when supported

Its actually RU related. Atlas has partial support for RU in 2.3.0.0. The 
upgrade logic will need to be revisited for Atlas.


- Jayush


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45470/#review126157
---


On March 30, 2016, 5:15 a.m., Jayush Luniya wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45470/
> ---
> 
> (Updated March 30, 2016, 5:15 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Juanjo  Marron, and Sumit 
> Mohanty.
> 
> 
> Bugs: AMBARI-15578
> https://issues.apache.org/jira/browse/AMBARI-15578
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Stack Featurize Atlas Service
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
>  da34696 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/atlas_client.py
>  8fabaac 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py
>  b6374f9 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
>  097765e 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
>  86e5971 
> 
> Diff: https://reviews.apache.org/r/45470/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test -DskipSurefireTests
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 54.063s
> [INFO] Finished at: Tue Mar 29 22:06:24 PDT 2016
> [INFO] Final Memory: 63M/1108M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jayush Luniya
> 
>



Re: Review Request 45347: AMBARI-15592: Auto-start services - support blueprint deployment.

2016-03-30 Thread Nahappan Somasundaram


> On March 29, 2016, 12:20 p.m., Ajit Kumar wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java,
> >  line 211
> > 
> >
> > Do we need to add if condition on cluster name similiar to 
> > servicename/componentname in code block above?

No. The recovery_settings has the recovery_enabled directly below it, unlike 
servicename and componentname.


- Nahappan


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45347/#review125933
---


On March 29, 2016, 7:17 p.m., Nahappan Somasundaram wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45347/
> ---
> 
> (Updated March 29, 2016, 7:17 p.m.)
> 
> 
> Review request for Ambari, Ajit Kumar, Jonathan Hurley, Nate Cole, Sumit 
> Mohanty, Sebastian Toader, and Sid Wagle.
> 
> 
> Bugs: AMBARI-15592
> https://issues.apache.org/jira/browse/AMBARI-15592
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> AMBARI-15592: Auto-start services - support blueprint deployment.
> 
> ** Issue: **
> Define a JSON structure to specify settings for auto start in a blueprint and 
> use that information to enable or disable auto start for components during 
> deployment.
> 
> ** Changes **
> Added a new section in the blueprint called "settings" which is a collection 
> of various setting names to collection of properties. For auto start, the 
> following setting names are used:
> *recovery_settings*: {"recovery_enabled" : "true" } specifies that auto start 
> should be enabled for all components. Can also be specified within a 
> collection, to support a uniform schema.
> *service_settings*: Collection of service names and the recovery values. 
> [{"name":"HDFS", "recovery_enabled":"false"},{...}] overrides cluster level 
> recovery settings.
> *component_settings*: Collection of component names and the corresponding 
> recovery values.  [{"name":"HDFS_CLIENT", "recovery_enabled":"true"},{...}]. 
> Overrides both service settings and recovery settings.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintEntity.java
>  8578d6beca91bf411d0c3dafeaee42d2dd23caea 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintSettingEntity.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java
>  a5e2fa1c7a2adaadc8bbe9de15b913cd9a7ca456 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/Blueprint.java 
> 11311dba0f1174248d24276a41837d7284e41607 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintFactory.java
>  cca28ca1529d6bccdf7a870dab7c317c1a334b1d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java
>  bea036421c64b70b4bceffcbd0d13c26020a7ed1 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/Setting.java 
> PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/SettingFactory.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java
>  eb7d750702bfe83913cea92f1e1ef978ed0e6189 
>   ambari-server/src/main/resources/Ambari-DDL-Derby-CREATE.sql 
> 4a0479eb3b749f332fda306ecc9b9698cde0ac92 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 
> e40165d72d5d97be28882bbdf61cae5f5be67c9b 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql 
> e85ea496696603b20b0efd8ffd6fb5cd2e9246ea 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 
> 8bcda317c70cce320fa69127e52a786fdd372eac 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql 
> c7d7cff85e1aa502976db3f7902c3d920a9e5a02 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql 
> 4bd7a7a9209d4d102d6d0612450280214f9b32b0 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 
> 063db3aa6f4e3f14563180be2b20664f9351d852 
>   ambari-server/src/main/resources/META-INF/persistence.xml 
> 513035f5baf6eacfcc69507069d311418546a09c 
>   ambari-server/src/main/resources/properties.json 
> 01c15f2b1c3564c37e8203ec70f2d2b812135b13 
>   
> ambari-server/src/test/java/org/apache/ambari/server/orm/entities/BlueprintEntityTest.java
>  c660d19aee1727fd4734c07c0e5130f5bbe3c3cf 
>   
> ambari-server/src/test/java/org/apache/ambari/server/orm/entities/BlueprintSettingEntityTest.java
>  PRE-CREATION 
>   
> ambari-server/src/test/java/org/apache/ambari/server/topology/SettingFactoryTest.java
>  PRE-CREATION 
>   
> ambari-server/src/test/java/org/apache/ambari/server/topology/SettingTest.java
>  PRE-CREATION 
> 

Re: Review Request 45347: AMBARI-15592: Auto-start services - support blueprint deployment.

2016-03-30 Thread Nahappan Somasundaram


> On March 30, 2016, 10:20 a.m., Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java,
> >  line 357
> > 
> >
> > Expensive to construct; use an injected singleton since they are 
> > thread-safe.

Need to fix this as a part of a new JIRA since the Gson() serializer is used in 
other functions that are not a part of this change for them to take advantage 
of the singleton.


> On March 30, 2016, 10:20 a.m., Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java,
> >  line 516
> > 
> >
> > Expensive to construct; use an injected singleton since they are 
> > thread-safe.

Move all Gson() usage to a singleton to a new JIRA.


- Nahappan


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45347/#review126144
---


On March 29, 2016, 7:17 p.m., Nahappan Somasundaram wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45347/
> ---
> 
> (Updated March 29, 2016, 7:17 p.m.)
> 
> 
> Review request for Ambari, Ajit Kumar, Jonathan Hurley, Nate Cole, Sumit 
> Mohanty, Sebastian Toader, and Sid Wagle.
> 
> 
> Bugs: AMBARI-15592
> https://issues.apache.org/jira/browse/AMBARI-15592
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> AMBARI-15592: Auto-start services - support blueprint deployment.
> 
> ** Issue: **
> Define a JSON structure to specify settings for auto start in a blueprint and 
> use that information to enable or disable auto start for components during 
> deployment.
> 
> ** Changes **
> Added a new section in the blueprint called "settings" which is a collection 
> of various setting names to collection of properties. For auto start, the 
> following setting names are used:
> *recovery_settings*: {"recovery_enabled" : "true" } specifies that auto start 
> should be enabled for all components. Can also be specified within a 
> collection, to support a uniform schema.
> *service_settings*: Collection of service names and the recovery values. 
> [{"name":"HDFS", "recovery_enabled":"false"},{...}] overrides cluster level 
> recovery settings.
> *component_settings*: Collection of component names and the corresponding 
> recovery values.  [{"name":"HDFS_CLIENT", "recovery_enabled":"true"},{...}]. 
> Overrides both service settings and recovery settings.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintEntity.java
>  8578d6beca91bf411d0c3dafeaee42d2dd23caea 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintSettingEntity.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java
>  a5e2fa1c7a2adaadc8bbe9de15b913cd9a7ca456 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/Blueprint.java 
> 11311dba0f1174248d24276a41837d7284e41607 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintFactory.java
>  cca28ca1529d6bccdf7a870dab7c317c1a334b1d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java
>  bea036421c64b70b4bceffcbd0d13c26020a7ed1 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/Setting.java 
> PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/SettingFactory.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java
>  eb7d750702bfe83913cea92f1e1ef978ed0e6189 
>   ambari-server/src/main/resources/Ambari-DDL-Derby-CREATE.sql 
> 4a0479eb3b749f332fda306ecc9b9698cde0ac92 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 
> e40165d72d5d97be28882bbdf61cae5f5be67c9b 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql 
> e85ea496696603b20b0efd8ffd6fb5cd2e9246ea 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 
> 8bcda317c70cce320fa69127e52a786fdd372eac 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql 
> c7d7cff85e1aa502976db3f7902c3d920a9e5a02 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql 
> 4bd7a7a9209d4d102d6d0612450280214f9b32b0 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 
> 063db3aa6f4e3f14563180be2b20664f9351d852 
>   ambari-server/src/main/resources/META-INF/persistence.xml 
> 513035f5baf6eacfcc69507069d311418546a09c 
>   ambari-server/src/main/resources/properties.json 
> 01c15f2b1c3564c37e8203ec70f2d2b812135b13 
>   
> ambari-server/src/test/java/org/apache/a

Re: Review Request 45470: AMBARI-15578: Stack Featurize Atlas Service

2016-03-30 Thread Juanjo Marron

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45470/#review126157
---




ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
 (line 107)


Is it rolling_upgrade related or the version where Atlas was introduced in 
the stack?

{
  "name": "atlas",
  "description": "Atlas Service support",
  "min_version": "2.3.0.0"
}

I think rolling upgrade and config versioning could be added as features 
later on when supported


- Juanjo  Marron


On March 30, 2016, 5:15 a.m., Jayush Luniya wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45470/
> ---
> 
> (Updated March 30, 2016, 5:15 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Juanjo  Marron, and Sumit 
> Mohanty.
> 
> 
> Bugs: AMBARI-15578
> https://issues.apache.org/jira/browse/AMBARI-15578
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Stack Featurize Atlas Service
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
>  da34696 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/atlas_client.py
>  8fabaac 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py
>  b6374f9 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
>  097765e 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
>  86e5971 
> 
> Diff: https://reviews.apache.org/r/45470/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test -DskipSurefireTests
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 54.063s
> [INFO] Finished at: Tue Mar 29 22:06:24 PDT 2016
> [INFO] Final Memory: 63M/1108M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jayush Luniya
> 
>



Re: Review Request 45486: AMBARI-15628 Ranger: update code for jdbc according to new logic

2016-03-30 Thread Alejandro Fernandez

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45486/#review126150
---


Ship it!




Ship It!

- Alejandro Fernandez


On March 30, 2016, 2:20 p.m., Mugdha Varadkar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45486/
> ---
> 
> (Updated March 30, 2016, 2:20 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jaimin Jetly, Jonathan 
> Hurley, Mahadev Konar, Sumit Mohanty, Vitalyi Brodetskyi, and Velmurugan 
> Periasamy.
> 
> 
> Bugs: AMBARI-15628
> https://issues.apache.org/jira/browse/AMBARI-15628
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Updating Ranger, Ranger plugin for services (hdfs, hive, hbase, knox, storm, 
> kafka, yarn) and Ranger-KMS code to support real jdbc jar names.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
>  31e1757 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py
>  d6dec26 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  35c6be2 
>   
> ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/params.py
>  dc0d9a8 
>   
> ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py
>  e3efe7c 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/configuration/admin-properties.xml
>  5513757 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py
>  b25549f 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py
>  db89664 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py
>  74d0fe4 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/configuration/kms-properties.xml
>  a5a57cf 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py
>  4807dc5 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/params.py
>  1e55d4a 
>   
> ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py
>  53aa4dd 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
>  40b076d 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py 
> 4b99081 
>   ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py 
> 741011c 
>   ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py 
> 9a61f99 
>   ambari-server/src/test/python/stacks/2.2/RANGER/test_ranger_admin.py 
> a5cc123 
>   ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py 
> d415b6f 
> 
> Diff: https://reviews.apache.org/r/45486/diff/
> 
> 
> Testing
> ---
> 
> Installed Ranger, Ranger KMS and Enabled plugin on centos6 for Hdp-2.2 and 
> Hdp-2.5
> 
> 
> Thanks,
> 
> Mugdha Varadkar
> 
>



Re: Review Request 45447: AMBARI-15621 : Cluster Second aggregator taking more than 2 mins to execute on large clusters, thereby causing lag.

2016-03-30 Thread Aravindan Vijayan

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45447/
---

(Updated March 30, 2016, 5:51 p.m.)


Review request for Ambari, Dmytro Sen, Sumit Mohanty, and Sid Wagle.


Changes
---

Addressed review comments.


Bugs: AMBARI-15621
https://issues.apache.org/jira/browse/AMBARI-15621


Repository: ambari


Description
---

Fix issues in aggregator scheduling implementation. 

Recommend value of "timeline.metrics.service.resultset.fetchSize" through stack 
advisor based on cluster size.


Diffs (updated)
-

  
ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/HBaseTimelineMetricStore.java
 2f080e3 
  
ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/AbstractTimelineAggregator.java
 f8ec516 
  
ambari-metrics/ambari-metrics-timelineservice/src/test/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/AbstractTimelineAggregatorTest.java
 21b9839 
  ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py 
b8e2c45 

Diff: https://reviews.apache.org/r/45447/diff/


Testing
---

Manually tested on a large cluster.

Unit tests pass.


Thanks,

Aravindan Vijayan



Re: Review Request 45486: AMBARI-15628 Ranger: update code for jdbc according to new logic

2016-03-30 Thread Jayush Luniya

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45486/#review126147
---



- Can you add some more description in the Apache JIRA about change? 
- It looks like there is a dependent change that has been made in the past and 
the context is missing in the Apache JIRA

- Jayush Luniya


On March 30, 2016, 2:20 p.m., Mugdha Varadkar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45486/
> ---
> 
> (Updated March 30, 2016, 2:20 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jaimin Jetly, Jonathan 
> Hurley, Mahadev Konar, Sumit Mohanty, Vitalyi Brodetskyi, and Velmurugan 
> Periasamy.
> 
> 
> Bugs: AMBARI-15628
> https://issues.apache.org/jira/browse/AMBARI-15628
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Updating Ranger, Ranger plugin for services (hdfs, hive, hbase, knox, storm, 
> kafka, yarn) and Ranger-KMS code to support real jdbc jar names.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
>  31e1757 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py
>  d6dec26 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  35c6be2 
>   
> ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/params.py
>  dc0d9a8 
>   
> ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py
>  e3efe7c 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/configuration/admin-properties.xml
>  5513757 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py
>  b25549f 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py
>  db89664 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py
>  74d0fe4 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/configuration/kms-properties.xml
>  a5a57cf 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py
>  4807dc5 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/params.py
>  1e55d4a 
>   
> ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py
>  53aa4dd 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
>  40b076d 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py 
> 4b99081 
>   ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py 
> 741011c 
>   ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py 
> 9a61f99 
>   ambari-server/src/test/python/stacks/2.2/RANGER/test_ranger_admin.py 
> a5cc123 
>   ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py 
> d415b6f 
> 
> Diff: https://reviews.apache.org/r/45486/diff/
> 
> 
> Testing
> ---
> 
> Installed Ranger, Ranger KMS and Enabled plugin on centos6 for Hdp-2.2 and 
> Hdp-2.5
> 
> 
> Thanks,
> 
> Mugdha Varadkar
> 
>



Re: Review Request 45347: AMBARI-15592: Auto-start services - support blueprint deployment.

2016-03-30 Thread Jonathan Hurley

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45347/#review126144
---


Fix it, then Ship it!





ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java
 (line 357)


Expensive to construct; use an injected singleton since they are 
thread-safe.



ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java
 (line 516)


Expensive to construct; use an injected singleton since they are 
thread-safe.


- Jonathan Hurley


On March 29, 2016, 10:17 p.m., Nahappan Somasundaram wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45347/
> ---
> 
> (Updated March 29, 2016, 10:17 p.m.)
> 
> 
> Review request for Ambari, Ajit Kumar, Jonathan Hurley, Nate Cole, Sumit 
> Mohanty, Sebastian Toader, and Sid Wagle.
> 
> 
> Bugs: AMBARI-15592
> https://issues.apache.org/jira/browse/AMBARI-15592
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> AMBARI-15592: Auto-start services - support blueprint deployment.
> 
> ** Issue: **
> Define a JSON structure to specify settings for auto start in a blueprint and 
> use that information to enable or disable auto start for components during 
> deployment.
> 
> ** Changes **
> Added a new section in the blueprint called "settings" which is a collection 
> of various setting names to collection of properties. For auto start, the 
> following setting names are used:
> *recovery_settings*: {"recovery_enabled" : "true" } specifies that auto start 
> should be enabled for all components. Can also be specified within a 
> collection, to support a uniform schema.
> *service_settings*: Collection of service names and the recovery values. 
> [{"name":"HDFS", "recovery_enabled":"false"},{...}] overrides cluster level 
> recovery settings.
> *component_settings*: Collection of component names and the corresponding 
> recovery values.  [{"name":"HDFS_CLIENT", "recovery_enabled":"true"},{...}]. 
> Overrides both service settings and recovery settings.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintEntity.java
>  8578d6beca91bf411d0c3dafeaee42d2dd23caea 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintSettingEntity.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java
>  a5e2fa1c7a2adaadc8bbe9de15b913cd9a7ca456 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/Blueprint.java 
> 11311dba0f1174248d24276a41837d7284e41607 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintFactory.java
>  cca28ca1529d6bccdf7a870dab7c317c1a334b1d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java
>  bea036421c64b70b4bceffcbd0d13c26020a7ed1 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/Setting.java 
> PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/SettingFactory.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java
>  eb7d750702bfe83913cea92f1e1ef978ed0e6189 
>   ambari-server/src/main/resources/Ambari-DDL-Derby-CREATE.sql 
> 4a0479eb3b749f332fda306ecc9b9698cde0ac92 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 
> e40165d72d5d97be28882bbdf61cae5f5be67c9b 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql 
> e85ea496696603b20b0efd8ffd6fb5cd2e9246ea 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 
> 8bcda317c70cce320fa69127e52a786fdd372eac 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql 
> c7d7cff85e1aa502976db3f7902c3d920a9e5a02 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql 
> 4bd7a7a9209d4d102d6d0612450280214f9b32b0 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 
> 063db3aa6f4e3f14563180be2b20664f9351d852 
>   ambari-server/src/main/resources/META-INF/persistence.xml 
> 513035f5baf6eacfcc69507069d311418546a09c 
>   ambari-server/src/main/resources/properties.json 
> 01c15f2b1c3564c37e8203ec70f2d2b812135b13 
>   
> ambari-server/src/test/java/org/apache/ambari/server/orm/entities/BlueprintEntityTest.java
>  c660d19aee1727fd4734c07c0e5130f5bbe3c3cf 
>   
> ambari-server/src/test/java/org/apache/ambari/server/orm/entities/BlueprintSettingEntityTest.java
>  PRE-CREATION 
>   
> ambari-server/src/test/java/org/apache/ambari/server/topology/SettingFactoryTest.java
>  PRE-CREATION 
>   
> ambari-server/src/test/java/org/apache/ambari/server/topology/Setti

Re: Review Request 45458: AMBARI-15528: Stack Featurize RANGER and RANGER_KMS service

2016-03-30 Thread Jayush Luniya


> On March 30, 2016, 2:57 p.m., Sumit Mohanty wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/constants.py,
> >  line 62
> > 
> >
> > OK, for now but should not this be in the stack definition as these are 
> > service related?

Some refactoring of resource_management is required but will leave it for 
future.


- Jayush


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45458/#review126112
---


On March 30, 2016, 4:06 a.m., Jayush Luniya wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45458/
> ---
> 
> (Updated March 30, 2016, 4:06 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Gautam Borad, Juanjo  Marron, 
> Sumit Mohanty, and Velmurugan Periasamy.
> 
> 
> Bugs: AMBARI-15528
> https://issues.apache.org/jira/browse/AMBARI-15528
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Stack Featurize RANGER and RANGER_KMS service
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/constants.py
>  f051cfd 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
>  6095a80 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/setup_ranger_plugin_xml.py
>  1046d62 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
>  da34696 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py
>  b25549f 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py
>  07f3ab6 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_service.py
>  8bbab02 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_usersync.py
>  51e5eab 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py
>  3542814 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/upgrade.py
>  aa75949 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py
>  11a705a 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms_server.py
>  42f1cb9 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/params.py
>  1e55d4a 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/upgrade.py
>  315a417 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
>  86e5971 
> 
> Diff: https://reviews.apache.org/r/45458/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test -DskipSurefireTests
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 56.375s
> [INFO] Finished at: Tue Mar 29 16:22:03 PDT 2016
> [INFO] Final Memory: 62M/1136M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jayush Luniya
> 
>



Re: Review Request 45447: AMBARI-15621 : Cluster Second aggregator taking more than 2 mins to execute on large clusters, thereby causing lag.

2016-03-30 Thread Sid Wagle

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45447/#review126140
---


Fix it, then Ship it!





ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/AbstractTimelineAggregator.java
 (line 105)


Should be consistent time use for cal and logged.


- Sid Wagle


On March 29, 2016, 9:15 p.m., Aravindan Vijayan wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45447/
> ---
> 
> (Updated March 29, 2016, 9:15 p.m.)
> 
> 
> Review request for Ambari, Dmytro Sen, Sumit Mohanty, and Sid Wagle.
> 
> 
> Bugs: AMBARI-15621
> https://issues.apache.org/jira/browse/AMBARI-15621
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Fix issues in aggregator scheduling implementation. 
> 
> Recommend value of "timeline.metrics.service.resultset.fetchSize" through 
> stack advisor based on cluster size.
> 
> 
> Diffs
> -
> 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/HBaseTimelineMetricStore.java
>  2f080e3 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/AbstractTimelineAggregator.java
>  f8ec516 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/test/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/AbstractTimelineAggregatorTest.java
>  21b9839 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py 
> b8e2c45 
> 
> Diff: https://reviews.apache.org/r/45447/diff/
> 
> 
> Testing
> ---
> 
> Manually tested on a large cluster.
> 
> Unit tests pass.
> 
> 
> Thanks,
> 
> Aravindan Vijayan
> 
>



Re: Review Request 44265: Basic Operational Audit Logging

2016-03-30 Thread Jonathan Hurley


> On March 29, 2016, 12:33 p.m., Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java,
> >  lines 134-139
> > 
> >
> > I don't see these being cleared anywhere.
> 
> Daniel Gergely wrote:
> These are not cleared, because there is no expression to decide when to 
> clear. The problem is that agents sends the completed status multiple times. 
> So if I deleted a completed task from the cache, the agent would send it 
> again. If the task is not in the cache, it is logged, even it is in completed 
> state. (consider the case when ambari server is stopped during a task 
> execution, task finishes and server is started. That point the completed 
> status is needed to be logged, since this is a new information)
> 
> Sebastian Toader wrote:
> HostRoleStatus should be cached by host/component in 
> temporaryTaskStatusCache. When a host is deleted then all host role commands 
> associated with the deleted host are deleted as well. Upon the deletion of 
> the host role command the appropriate entries from these caches should be 
> removed.

You have a good point; the maps are long->enum, which should not really cause 
too much memory overhead. It would be nice though to clean them up using some 
mechanism. We could hook into the events fired for things like host removal. We 
could also use an expiring cache as well. I'll drop this issue for now and file 
a Jira for this.


- Jonathan


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44265/#review125892
---


On March 30, 2016, 11:20 a.m., Daniel Gergely wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44265/
> ---
> 
> (Updated March 30, 2016, 11:20 a.m.)
> 
> 
> Review request for Ambari, Laszlo Puskas, Oliver Szabo, Robert Levas, Sandor 
> Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15241
> https://issues.apache.org/jira/browse/AMBARI-15241
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Entry points for logging events:
> - Login and logout: AmbariAuthenticationFilter, AmbariAuthorizationFilter, 
> LogoutService
> - Operation and tasks: ActionDBAAccessorImpl
> - Kerberos related events: CreateKeytabFilesServerAction, 
> CreatePrincipalServerAction, DestroyPrincipalsServerAction, 
> FinalizeKerberosServerAction
> - REST api: BaseService
> 
> Architecture:
> AuditLogger injectable is created and wired in by Guice. The default 
> implementation (AuditLoggerDefaultImpl) for this interface logs to a file. 
> Considering performance impact, there is a buffered audit logger 
> implementation (BufferedAuditLogger) that is a wrapper for an audit logger 
> implementation and does the logging asynchronously.
> 
> Audit loggers have a single log method that accepts an AuditEvent object. At 
> the entry points an AuditEvent is assembled and log method is called (except 
> for the REST api, see below...)
> 
> REST Api:
> In BaseService, there is a RequestAuditLogger, that is responsible for 
> handling and assembling AuditEvents. It also has a log method, but the 
> parameters for that is the Request and Result objects.
> RequestAuditLogger is a small framework for that plugins can be implemented 
> to handle different type of requests.
> Plugins implements RequestAuditEventCreator interface and can be set to 
> handle one or multiple request types (PUT, POST, DELETE, etc...), resource 
> types (HOST_COMPONENT, BLUEPRINT, etc..) and results statuses (200 OK, 202 
> ACCEPTED, 404 NOT_FOUND, etc). If null is returned by these getters, it means 
> "all". If there are more than one RequestAuditEventCreators can handle a 
> request, then the most specific is called. (Priority order: resourceType > 
> resultStatus > requestType)
> For example it is possible to define a plugin for all the POST requests, but 
> if there is an other plugin for POST request and for resource type 
> HOST_COMPONENT, then this latter is used (because it is more specific). The 
> method createAuditEvent is responsible for creating the AuditEvent object for 
> the RequestAuditEventLogger. If null is returned, then request is not logged 
> (can be used for ignoring events).
> Plugins are registered in ControllerModule and wired by guice to the 
> RequestAuditLogger. If a new plugin is needed, then implementing the 
> RequestAuditEventCreator interface and registering it in Guice is the only 
> things to do. (open-closed principle)
> 
> 
> Diffs
> -
> 
>   ambari-project/pom.xml b3d9ca2 
>   ambari-server/conf/unix/log4j.properties ab3ea0b 
>   ambari-server/conf/windows/log4j.properties cc40f74 
>   amba

Re: Review Request 44265: Basic Operational Audit Logging

2016-03-30 Thread Nate Cole

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44265/#review126138
---


Ship it!




Ship It!

- Nate Cole


On March 30, 2016, 11:20 a.m., Daniel Gergely wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44265/
> ---
> 
> (Updated March 30, 2016, 11:20 a.m.)
> 
> 
> Review request for Ambari, Laszlo Puskas, Oliver Szabo, Robert Levas, Sandor 
> Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15241
> https://issues.apache.org/jira/browse/AMBARI-15241
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Entry points for logging events:
> - Login and logout: AmbariAuthenticationFilter, AmbariAuthorizationFilter, 
> LogoutService
> - Operation and tasks: ActionDBAAccessorImpl
> - Kerberos related events: CreateKeytabFilesServerAction, 
> CreatePrincipalServerAction, DestroyPrincipalsServerAction, 
> FinalizeKerberosServerAction
> - REST api: BaseService
> 
> Architecture:
> AuditLogger injectable is created and wired in by Guice. The default 
> implementation (AuditLoggerDefaultImpl) for this interface logs to a file. 
> Considering performance impact, there is a buffered audit logger 
> implementation (BufferedAuditLogger) that is a wrapper for an audit logger 
> implementation and does the logging asynchronously.
> 
> Audit loggers have a single log method that accepts an AuditEvent object. At 
> the entry points an AuditEvent is assembled and log method is called (except 
> for the REST api, see below...)
> 
> REST Api:
> In BaseService, there is a RequestAuditLogger, that is responsible for 
> handling and assembling AuditEvents. It also has a log method, but the 
> parameters for that is the Request and Result objects.
> RequestAuditLogger is a small framework for that plugins can be implemented 
> to handle different type of requests.
> Plugins implements RequestAuditEventCreator interface and can be set to 
> handle one or multiple request types (PUT, POST, DELETE, etc...), resource 
> types (HOST_COMPONENT, BLUEPRINT, etc..) and results statuses (200 OK, 202 
> ACCEPTED, 404 NOT_FOUND, etc). If null is returned by these getters, it means 
> "all". If there are more than one RequestAuditEventCreators can handle a 
> request, then the most specific is called. (Priority order: resourceType > 
> resultStatus > requestType)
> For example it is possible to define a plugin for all the POST requests, but 
> if there is an other plugin for POST request and for resource type 
> HOST_COMPONENT, then this latter is used (because it is more specific). The 
> method createAuditEvent is responsible for creating the AuditEvent object for 
> the RequestAuditEventLogger. If null is returned, then request is not logged 
> (can be used for ignoring events).
> Plugins are registered in ControllerModule and wired by guice to the 
> RequestAuditLogger. If a new plugin is needed, then implementing the 
> RequestAuditEventCreator interface and registering it in Guice is the only 
> things to do. (open-closed principle)
> 
> 
> Diffs
> -
> 
>   ambari-project/pom.xml b3d9ca2 
>   ambari-server/conf/unix/log4j.properties ab3ea0b 
>   ambari-server/conf/windows/log4j.properties cc40f74 
>   ambari-server/pom.xml 07a315d 
>   ambari-server/src/main/conf/log4j.properties 8e6652d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
>  a75a000 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseRequest.java
>  a33e8a7 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseService.java
>  7945599 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/LogoutService.java
>  df8faaa 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/Request.java
>  ff9b6c7 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/AsyncAuditLogger.java
>  PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLogger.java 
> PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerDefaultImpl.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerModule.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/event/AbstractAuditEvent.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/event/AbstractUserAuditEvent.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/event/AccessUnauthorizedAuditEvent.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/event/AuditEvent.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org

Re: Review Request 44265: Basic Operational Audit Logging

2016-03-30 Thread Jonathan Hurley

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44265/#review126137
---


Ship it!




Ship It!

- Jonathan Hurley


On March 30, 2016, 11:20 a.m., Daniel Gergely wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44265/
> ---
> 
> (Updated March 30, 2016, 11:20 a.m.)
> 
> 
> Review request for Ambari, Laszlo Puskas, Oliver Szabo, Robert Levas, Sandor 
> Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15241
> https://issues.apache.org/jira/browse/AMBARI-15241
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Entry points for logging events:
> - Login and logout: AmbariAuthenticationFilter, AmbariAuthorizationFilter, 
> LogoutService
> - Operation and tasks: ActionDBAAccessorImpl
> - Kerberos related events: CreateKeytabFilesServerAction, 
> CreatePrincipalServerAction, DestroyPrincipalsServerAction, 
> FinalizeKerberosServerAction
> - REST api: BaseService
> 
> Architecture:
> AuditLogger injectable is created and wired in by Guice. The default 
> implementation (AuditLoggerDefaultImpl) for this interface logs to a file. 
> Considering performance impact, there is a buffered audit logger 
> implementation (BufferedAuditLogger) that is a wrapper for an audit logger 
> implementation and does the logging asynchronously.
> 
> Audit loggers have a single log method that accepts an AuditEvent object. At 
> the entry points an AuditEvent is assembled and log method is called (except 
> for the REST api, see below...)
> 
> REST Api:
> In BaseService, there is a RequestAuditLogger, that is responsible for 
> handling and assembling AuditEvents. It also has a log method, but the 
> parameters for that is the Request and Result objects.
> RequestAuditLogger is a small framework for that plugins can be implemented 
> to handle different type of requests.
> Plugins implements RequestAuditEventCreator interface and can be set to 
> handle one or multiple request types (PUT, POST, DELETE, etc...), resource 
> types (HOST_COMPONENT, BLUEPRINT, etc..) and results statuses (200 OK, 202 
> ACCEPTED, 404 NOT_FOUND, etc). If null is returned by these getters, it means 
> "all". If there are more than one RequestAuditEventCreators can handle a 
> request, then the most specific is called. (Priority order: resourceType > 
> resultStatus > requestType)
> For example it is possible to define a plugin for all the POST requests, but 
> if there is an other plugin for POST request and for resource type 
> HOST_COMPONENT, then this latter is used (because it is more specific). The 
> method createAuditEvent is responsible for creating the AuditEvent object for 
> the RequestAuditEventLogger. If null is returned, then request is not logged 
> (can be used for ignoring events).
> Plugins are registered in ControllerModule and wired by guice to the 
> RequestAuditLogger. If a new plugin is needed, then implementing the 
> RequestAuditEventCreator interface and registering it in Guice is the only 
> things to do. (open-closed principle)
> 
> 
> Diffs
> -
> 
>   ambari-project/pom.xml b3d9ca2 
>   ambari-server/conf/unix/log4j.properties ab3ea0b 
>   ambari-server/conf/windows/log4j.properties cc40f74 
>   ambari-server/pom.xml 07a315d 
>   ambari-server/src/main/conf/log4j.properties 8e6652d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
>  a75a000 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseRequest.java
>  a33e8a7 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseService.java
>  7945599 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/LogoutService.java
>  df8faaa 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/Request.java
>  ff9b6c7 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/AsyncAuditLogger.java
>  PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLogger.java 
> PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerDefaultImpl.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerModule.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/event/AbstractAuditEvent.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/event/AbstractUserAuditEvent.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/event/AccessUnauthorizedAuditEvent.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/event/AuditEvent.java
>  PRE-CREATION 
>   
> ambari-server/src/main/ja

Re: Review Request 45347: AMBARI-15592: Auto-start services - support blueprint deployment.

2016-03-30 Thread Nate Cole

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45347/#review126131
---


Ship it!





ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintEntity.java
 (lines 156 - 158)


getSettings() (plural) ?



ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintEntity.java
 (lines 165 - 167)


setSettings(...) (plural) ?


- Nate Cole


On March 29, 2016, 10:17 p.m., Nahappan Somasundaram wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45347/
> ---
> 
> (Updated March 29, 2016, 10:17 p.m.)
> 
> 
> Review request for Ambari, Ajit Kumar, Jonathan Hurley, Nate Cole, Sumit 
> Mohanty, Sebastian Toader, and Sid Wagle.
> 
> 
> Bugs: AMBARI-15592
> https://issues.apache.org/jira/browse/AMBARI-15592
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> AMBARI-15592: Auto-start services - support blueprint deployment.
> 
> ** Issue: **
> Define a JSON structure to specify settings for auto start in a blueprint and 
> use that information to enable or disable auto start for components during 
> deployment.
> 
> ** Changes **
> Added a new section in the blueprint called "settings" which is a collection 
> of various setting names to collection of properties. For auto start, the 
> following setting names are used:
> *recovery_settings*: {"recovery_enabled" : "true" } specifies that auto start 
> should be enabled for all components. Can also be specified within a 
> collection, to support a uniform schema.
> *service_settings*: Collection of service names and the recovery values. 
> [{"name":"HDFS", "recovery_enabled":"false"},{...}] overrides cluster level 
> recovery settings.
> *component_settings*: Collection of component names and the corresponding 
> recovery values.  [{"name":"HDFS_CLIENT", "recovery_enabled":"true"},{...}]. 
> Overrides both service settings and recovery settings.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintEntity.java
>  8578d6beca91bf411d0c3dafeaee42d2dd23caea 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/BlueprintSettingEntity.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java
>  a5e2fa1c7a2adaadc8bbe9de15b913cd9a7ca456 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/Blueprint.java 
> 11311dba0f1174248d24276a41837d7284e41607 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintFactory.java
>  cca28ca1529d6bccdf7a870dab7c317c1a334b1d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java
>  bea036421c64b70b4bceffcbd0d13c26020a7ed1 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/Setting.java 
> PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/SettingFactory.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java
>  eb7d750702bfe83913cea92f1e1ef978ed0e6189 
>   ambari-server/src/main/resources/Ambari-DDL-Derby-CREATE.sql 
> 4a0479eb3b749f332fda306ecc9b9698cde0ac92 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 
> e40165d72d5d97be28882bbdf61cae5f5be67c9b 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql 
> e85ea496696603b20b0efd8ffd6fb5cd2e9246ea 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 
> 8bcda317c70cce320fa69127e52a786fdd372eac 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql 
> c7d7cff85e1aa502976db3f7902c3d920a9e5a02 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql 
> 4bd7a7a9209d4d102d6d0612450280214f9b32b0 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 
> 063db3aa6f4e3f14563180be2b20664f9351d852 
>   ambari-server/src/main/resources/META-INF/persistence.xml 
> 513035f5baf6eacfcc69507069d311418546a09c 
>   ambari-server/src/main/resources/properties.json 
> 01c15f2b1c3564c37e8203ec70f2d2b812135b13 
>   
> ambari-server/src/test/java/org/apache/ambari/server/orm/entities/BlueprintEntityTest.java
>  c660d19aee1727fd4734c07c0e5130f5bbe3c3cf 
>   
> ambari-server/src/test/java/org/apache/ambari/server/orm/entities/BlueprintSettingEntityTest.java
>  PRE-CREATION 
>   
> ambari-server/src/test/java/org/apache/ambari/server/topology/SettingFactoryTest.java
>  PRE-CREATION 
>   
> ambari-server/src/test/java/org/apache/ambari/server/topology/SettingTest.java
>  PRE-CREATION 
>   
> ambari-server/src/test/java/org/apache/ambari/server/upgrade/U

Re: Review Request 45459: AMBARI-15622. 'phoenix.query.spoolThresholdBytes' property doesn't have a description on UI

2016-03-30 Thread Sumit Mohanty

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45459/#review126134
---


Ship it!




Ship It!

- Sumit Mohanty


On March 29, 2016, 11:41 p.m., Richard Zang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45459/
> ---
> 
> (Updated March 29, 2016, 11:41 p.m.)
> 
> 
> Review request for Ambari and Sid Wagle.
> 
> 
> Bugs: AMBARI-15622
> https://issues.apache.org/jira/browse/AMBARI-15622
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Fix duplicated definition. Make related definitions consistent.
> 
> 
> Diffs
> -
> 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/conf/hbase-site-metrics-service.xml
>  dabef50 
>   ambari-metrics/ambari-metrics-timelineservice/src/test/conf/hbase-site.xml 
> 15ade07 
>   
> ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-site.xml
>  815b126 
> 
> Diff: https://reviews.apache.org/r/45459/diff/
> 
> 
> Testing
> ---
> 
> Manually tested on live cluster. All unit tests passed.
> 
> 
> Thanks,
> 
> Richard Zang
> 
>



Re: Review Request 45338: AMBARI-15053: Stack Featurize YARN and MR services

2016-03-30 Thread Juanjo Marron


> On March 28, 2016, 6:28 p.m., Alejandro Fernandez wrote:
> > ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/mapreduce2_client.py,
> >  line 56
> > 
> >
> > The point of this function was to have a dictionary with the key being 
> > each possible stack name. If we always return "hadoop-client", might as 
> > well just return it as a string no matter what.
> 
> Juanjo  Marron wrote:
> The didct value is changing depending the component. The key is always 
> the same ("HDP" and stack_name now).
> 
> Since several services were already pushed to trunk with this same 
> approcah, I would propose to solve first stack featurization for all the 
> services and create a new JIRA to modify get_stack_to_component() after that.
> 
> I think the method def get_stack_to_component(self): in script.py can be 
> redefined to obtain the stack_name at script.py level (method def 
> get_stack_name()) and to return just a string with the component name at 
> service level.

Created JIRA
https://issues.apache.org/jira/browse/AMBARI-15609


- Juanjo


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45338/#review125695
---


On March 29, 2016, 8:29 p.m., Juanjo  Marron wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45338/
> ---
> 
> (Updated March 29, 2016, 8:29 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Sumit 
> Mohanty.
> 
> 
> Bugs: AMBARI-15053
> https://issues.apache.org/jira/browse/AMBARI-15053
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Featurize HDP specific logic from YARN and MR service
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/constants.py
>  f766a82 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
>  2f0e6bf 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/application_timeline_server.py
>  2966581 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/historyserver.py
>  53b0e53 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/mapreduce2_client.py
>  9fc1e32 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/nodemanager.py
>  fd14d0f 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
>  1a060de 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/resourcemanager.py
>  e51ca8a 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/service_check.py
>  83bf460 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
>  4110d39 
>   
> ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn_client.py
>  d300279 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
>  97bd19c 
> 
> Diff: https://reviews.apache.org/r/45338/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test -DskipSurefireTests
> 
> 
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Ambari Main ... SUCCESS [17.789s]
> [INFO] Apache Ambari Project POM . SUCCESS [0.379s]
> [INFO] Ambari Web  SUCCESS [1:28.925s]
> [INFO] Ambari Views .. SUCCESS [7.096s]
> [INFO] Ambari Admin View . SUCCESS [18.829s]
> [INFO] ambari-metrics  SUCCESS [0.358s]
> [INFO] Ambari Metrics Common . SUCCESS [1.222s]
> [INFO] Ambari Metrics Hadoop Sink  SUCCESS [2.142s]
> [INFO] Ambari Metrics Flume Sink . SUCCESS [0.640s]
> [INFO] Ambari Metrics Kafka Sink . SUCCESS [0.800s]
> [INFO] Ambari Metrics Storm Sink . SUCCESS [2.858s]
> [INFO] Ambari Metrics Collector .. SUCCESS [30.150s]
> [INFO] Ambari Metrics Monitor  SUCCESS [3.053s]
> [INFO] Ambari Metrics Grafana  SUCCESS [20.581s]
> [INFO] Ambari Metrics Assembly ... SUCCESS [39.513s]
> [INFO] Ambari Server . SUCCESS [1:42.265s]
> [INFO] Ambari Functional Tests ... SUCCESS [2.830s]
> [INFO]

Re: Review Request 45328: AMBARI-14451: Stack Featurize HDFS service

2016-03-30 Thread Juanjo Marron


> On March 30, 2016, 1:44 a.m., Jayush Luniya wrote:
> > Ship It!
> 
> Jayush Luniya wrote:
> Committed to trunk
> commit 5b4e663f820390f7bc006509eb517c3477b8f453
> Author: Jayush Luniya 
> Date:   Tue Mar 29 18:50:35 2016 -0700
> 
> AMBARI-14451: Stack Featurize HDFS service (Juanjo Marron via jluniya)

Thanks Jayush!


- Juanjo


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45328/#review126003
---


On March 29, 2016, 8:06 p.m., Juanjo  Marron wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45328/
> ---
> 
> (Updated March 29, 2016, 8:06 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Jayush Luniya.
> 
> 
> Bugs: AMBARI-14451
> https://issues.apache.org/jira/browse/AMBARI-14451
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Featurize HDP specific logic from HDFS service
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/constants.py
>  f766a82 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
>  2f0e6bf 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hadoop-env.xml
>  98f20e7 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_ha_namenode_health.py
>  70b1970 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_metrics_deviation.py
>  9a122fa 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py
>  3cdfda9 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_client.py
>  c5ae35e 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/journalnode.py
>  6f26b40 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/journalnode_upgrade.py
>  d598840 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py
>  acd10e8 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/nfsgateway.py
>  c705fca 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py
>  277536a 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py
>  209ac91 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/snamenode.py
>  f96ac01 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/utils.py
>  c626028 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
>  97bd19c 
> 
> Diff: https://reviews.apache.org/r/45328/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test -DskipSurefireTests
> 
> Found 1 error. It seems related to PXF and not to the patch:
> 
> Failed tests:
> ERROR: test_get_pxf_protocol_version 
> (test_alerts_api_status.TestAlertsApiStatus)
> --
> Traceback (most recent call last):
>   File "/home/jmarron/git/ambari/ambari-common/src/test/python/mock/mock.py", 
> line 1199, in patched
> return func(*args, **keywargs)
>   File 
> "/home/jmarron/git/ambari/ambari-server/src/test/python/stacks/2.3/PXF/test_alerts_api_status.py",
>  line 51, in test_get_pxf_protocol_version
> version = api_status._get_pxf_protocol_version()
> TypeError: _get_pxf_protocol_version() takes exactly 1 argument (0 given)
> 
> --
> Total run:928
> Total errors:1
> Total failures:0
> 
> 
> Thanks,
> 
> Juanjo  Marron
> 
>



Re: Review Request 44265: Basic Operational Audit Logging

2016-03-30 Thread Sebastian Toader


> On March 29, 2016, 6:33 p.m., Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java,
> >  lines 134-139
> > 
> >
> > I don't see these being cleared anywhere.
> 
> Daniel Gergely wrote:
> These are not cleared, because there is no expression to decide when to 
> clear. The problem is that agents sends the completed status multiple times. 
> So if I deleted a completed task from the cache, the agent would send it 
> again. If the task is not in the cache, it is logged, even it is in completed 
> state. (consider the case when ambari server is stopped during a task 
> execution, task finishes and server is started. That point the completed 
> status is needed to be logged, since this is a new information)

HostRoleStatus should be cached by host/component in temporaryTaskStatusCache. 
When a host is deleted then all host role commands associated with the deleted 
host are deleted as well. Upon the deletion of the host role command the 
appropriate entries from these caches should be removed.


- Sebastian


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44265/#review125892
---


On March 30, 2016, 5:20 p.m., Daniel Gergely wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44265/
> ---
> 
> (Updated March 30, 2016, 5:20 p.m.)
> 
> 
> Review request for Ambari, Laszlo Puskas, Oliver Szabo, Robert Levas, Sandor 
> Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15241
> https://issues.apache.org/jira/browse/AMBARI-15241
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Entry points for logging events:
> - Login and logout: AmbariAuthenticationFilter, AmbariAuthorizationFilter, 
> LogoutService
> - Operation and tasks: ActionDBAAccessorImpl
> - Kerberos related events: CreateKeytabFilesServerAction, 
> CreatePrincipalServerAction, DestroyPrincipalsServerAction, 
> FinalizeKerberosServerAction
> - REST api: BaseService
> 
> Architecture:
> AuditLogger injectable is created and wired in by Guice. The default 
> implementation (AuditLoggerDefaultImpl) for this interface logs to a file. 
> Considering performance impact, there is a buffered audit logger 
> implementation (BufferedAuditLogger) that is a wrapper for an audit logger 
> implementation and does the logging asynchronously.
> 
> Audit loggers have a single log method that accepts an AuditEvent object. At 
> the entry points an AuditEvent is assembled and log method is called (except 
> for the REST api, see below...)
> 
> REST Api:
> In BaseService, there is a RequestAuditLogger, that is responsible for 
> handling and assembling AuditEvents. It also has a log method, but the 
> parameters for that is the Request and Result objects.
> RequestAuditLogger is a small framework for that plugins can be implemented 
> to handle different type of requests.
> Plugins implements RequestAuditEventCreator interface and can be set to 
> handle one or multiple request types (PUT, POST, DELETE, etc...), resource 
> types (HOST_COMPONENT, BLUEPRINT, etc..) and results statuses (200 OK, 202 
> ACCEPTED, 404 NOT_FOUND, etc). If null is returned by these getters, it means 
> "all". If there are more than one RequestAuditEventCreators can handle a 
> request, then the most specific is called. (Priority order: resourceType > 
> resultStatus > requestType)
> For example it is possible to define a plugin for all the POST requests, but 
> if there is an other plugin for POST request and for resource type 
> HOST_COMPONENT, then this latter is used (because it is more specific). The 
> method createAuditEvent is responsible for creating the AuditEvent object for 
> the RequestAuditEventLogger. If null is returned, then request is not logged 
> (can be used for ignoring events).
> Plugins are registered in ControllerModule and wired by guice to the 
> RequestAuditLogger. If a new plugin is needed, then implementing the 
> RequestAuditEventCreator interface and registering it in Guice is the only 
> things to do. (open-closed principle)
> 
> 
> Diffs
> -
> 
>   ambari-project/pom.xml b3d9ca2 
>   ambari-server/conf/unix/log4j.properties ab3ea0b 
>   ambari-server/conf/windows/log4j.properties cc40f74 
>   ambari-server/pom.xml 07a315d 
>   ambari-server/src/main/conf/log4j.properties 8e6652d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
>  a75a000 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseRequest.java
>  a33e8a7 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseService

Re: Review Request 45465: Support distributed aggregation for multiple AMS instances

2016-03-30 Thread Sid Wagle


> On March 30, 2016, 5:15 a.m., Sumit Mohanty wrote:
> > ambari-metrics/ambari-metrics-timelineservice/pom.xml, line 268
> > 
> >
> > Understand that ZK version hardly changes but should this be 
> > parameterized as well so that each vendor can pick their own version?

Had to do this because of version discrepancy resulting in unit test failing. 
Verfied helix compat with this version.


> On March 30, 2016, 5:15 a.m., Sumit Mohanty wrote:
> > ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/HBaseTimelineMetricStore.java,
> >  line 104
> > 
> >
> > do we bail out here?

Yes, since dist mode is unabled, the bail out here means there was an issue 
talking to ZK of the cluster.


> On March 30, 2016, 5:15 a.m., Sumit Mohanty wrote:
> > ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/TimelineMetricStore.java,
> >  line 93
> > 
> >
> > ports? could collector run on a custom port?

Helix controller does not listen on any port, the API port is redundant since 
client getting here needs to know what it is.


> On March 30, 2016, 5:15 a.m., Sumit Mohanty wrote:
> > ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/AbstractTimelineAggregator.java,
> >  line 142
> > 
> >
> > Lets add the aggregation type being skipped.

This is covered because the Logger is initialized with the custom name of the 
aggregator. So everything that is printed has well defined tracebility of which 
thread it came from. I have done same thing for jstack so we can differentiate 
based on thread name.


- Sid


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45465/#review126026
---


On March 30, 2016, 12:49 a.m., Sid Wagle wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45465/
> ---
> 
> (Updated March 30, 2016, 12:49 a.m.)
> 
> 
> Review request for Ambari, Aravindan Vijayan, Dmytro Sen, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15623
> https://issues.apache.org/jira/browse/AMBARI-15623
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> (Preliminary patch - verified funtinoally and added a unit test)
> 
> Tasks:
> 
> Support "distributed" mode in AMS, this implies following changes to the 
> collector service:
> 
> - Collectors discover each other
> - Add a service to discover all collector by knowing any one
> - Aggregation functions are distributed among collectors automatically with 
> failover tolerance
> - Save checkpoint data in Zookeeper
> 
> 
> Diffs
> -
> 
>   ambari-metrics/ambari-metrics-timelineservice/pom.xml b435964 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/HBaseTimelineMetricStore.java
>  2f080e3 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/TimelineMetricConfiguration.java
>  e57f02d 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/TimelineMetricStore.java
>  0aa102e 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/AbstractTimelineAggregator.java
>  c5b9ba1 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/TimelineMetricAggregator.java
>  295db0e 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/TimelineMetricAggregatorFactory.java
>  cc85c56 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/TimelineMetricClusterAggregator.java
>  f90b01f 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/aggregators/TimelineMetricClusterAggregatorSecond.java
>  e0e065b 
>   
> ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hado

Re: Review Request 45208: Cleanup LDAP sync process

2016-03-30 Thread Robert Levas

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45208/#review126120
---


Ship it!




Ship It!

- Robert Levas


On March 30, 2016, 11:25 a.m., Oliver Szabo wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45208/
> ---
> 
> (Updated March 30, 2016, 11:25 a.m.)
> 
> 
> Review request for Ambari, Daniel Gergely, Robert Levas, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15383
> https://issues.apache.org/jira/browse/AMBARI-15383
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Cleanup LDAP sync process:
> - speedup sync with "--all" (do not check nested groups recursively...ambari 
> gather all of the groups first, and it's enough to just process them 
> sequentially)
> - fixing issue: uppercase member attributes (in ambari.properties) don't work 
> well with the queries
> - check that user/group DN (which is processed) is out of the scope or not 
> based on the base DN
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java
>  ffebd45 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java
>  c2bc22f 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulator.java
>  75df9cc 
>   
> ambari-server/src/test/java/org/apache/ambari/server/security/AmbariLdapUtilsTest.java
>  b2778ae 
>   
> ambari-server/src/test/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulatorTest.java
>  3ea 
> 
> Diff: https://reviews.apache.org/r/45208/diff/
> 
> 
> Testing
> ---
> 
> Testing is in progress.
> 
> 
> Thanks,
> 
> Oliver Szabo
> 
>



Re: Review Request 44265: Basic Operational Audit Logging

2016-03-30 Thread Daniel Gergely

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44265/
---

(Updated márc. 30, 2016, 3:20 du)


Review request for Ambari, Laszlo Puskas, Oliver Szabo, Robert Levas, Sandor 
Magyari, and Sebastian Toader.


Changes
---

Rebase fixes


Bugs: AMBARI-15241
https://issues.apache.org/jira/browse/AMBARI-15241


Repository: ambari


Description
---

Entry points for logging events:
- Login and logout: AmbariAuthenticationFilter, AmbariAuthorizationFilter, 
LogoutService
- Operation and tasks: ActionDBAAccessorImpl
- Kerberos related events: CreateKeytabFilesServerAction, 
CreatePrincipalServerAction, DestroyPrincipalsServerAction, 
FinalizeKerberosServerAction
- REST api: BaseService

Architecture:
AuditLogger injectable is created and wired in by Guice. The default 
implementation (AuditLoggerDefaultImpl) for this interface logs to a file. 
Considering performance impact, there is a buffered audit logger implementation 
(BufferedAuditLogger) that is a wrapper for an audit logger implementation and 
does the logging asynchronously.

Audit loggers have a single log method that accepts an AuditEvent object. At 
the entry points an AuditEvent is assembled and log method is called (except 
for the REST api, see below...)

REST Api:
In BaseService, there is a RequestAuditLogger, that is responsible for handling 
and assembling AuditEvents. It also has a log method, but the parameters for 
that is the Request and Result objects.
RequestAuditLogger is a small framework for that plugins can be implemented to 
handle different type of requests.
Plugins implements RequestAuditEventCreator interface and can be set to handle 
one or multiple request types (PUT, POST, DELETE, etc...), resource types 
(HOST_COMPONENT, BLUEPRINT, etc..) and results statuses (200 OK, 202 ACCEPTED, 
404 NOT_FOUND, etc). If null is returned by these getters, it means "all". If 
there are more than one RequestAuditEventCreators can handle a request, then 
the most specific is called. (Priority order: resourceType > resultStatus > 
requestType)
For example it is possible to define a plugin for all the POST requests, but if 
there is an other plugin for POST request and for resource type HOST_COMPONENT, 
then this latter is used (because it is more specific). The method 
createAuditEvent is responsible for creating the AuditEvent object for the 
RequestAuditEventLogger. If null is returned, then request is not logged (can 
be used for ignoring events).
Plugins are registered in ControllerModule and wired by guice to the 
RequestAuditLogger. If a new plugin is needed, then implementing the 
RequestAuditEventCreator interface and registering it in Guice is the only 
things to do. (open-closed principle)


Diffs (updated)
-

  ambari-project/pom.xml b3d9ca2 
  ambari-server/conf/unix/log4j.properties ab3ea0b 
  ambari-server/conf/windows/log4j.properties cc40f74 
  ambari-server/pom.xml 07a315d 
  ambari-server/src/main/conf/log4j.properties 8e6652d 
  
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
 a75a000 
  
ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseRequest.java
 a33e8a7 
  
ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseService.java
 7945599 
  
ambari-server/src/main/java/org/apache/ambari/server/api/services/LogoutService.java
 df8faaa 
  
ambari-server/src/main/java/org/apache/ambari/server/api/services/Request.java 
ff9b6c7 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/AsyncAuditLogger.java
 PRE-CREATION 
  ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLogger.java 
PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerDefaultImpl.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerModule.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/AbstractAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/AbstractUserAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/AccessUnauthorizedAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/AuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/LoginAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/LogoutAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/OperationStatusAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/TaskStatusAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/kerberos/AbstractKerberosAuditEvent.java
 PRE-CRE

Re: Review Request 45208: Cleanup LDAP sync process

2016-03-30 Thread Oliver Szabo


> On March 30, 2016, 2:05 p.m., Robert Levas wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java,
> >  line 62
> > 
> >
> > `full` is never `null`?

No, during creation of DistinguishedName its handled, when the object/string in 
DistinguishedName is empty or null (with StringUtils.isBlank), because of that 
it will be enough to check: adapter has a DN attribute or not.  (it's safe 
because we use a cast on that)


> On March 30, 2016, 2:05 p.m., Robert Levas wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java,
> >  line 60
> > 
> >
> > There seems to be a lot of room for NPEs to be thrown.  DO we know 
> > null's aren't returned from the various calls?

see comment below


- Oliver


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45208/#review126103
---


On March 30, 2016, 3:25 p.m., Oliver Szabo wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45208/
> ---
> 
> (Updated March 30, 2016, 3:25 p.m.)
> 
> 
> Review request for Ambari, Daniel Gergely, Robert Levas, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15383
> https://issues.apache.org/jira/browse/AMBARI-15383
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Cleanup LDAP sync process:
> - speedup sync with "--all" (do not check nested groups recursively...ambari 
> gather all of the groups first, and it's enough to just process them 
> sequentially)
> - fixing issue: uppercase member attributes (in ambari.properties) don't work 
> well with the queries
> - check that user/group DN (which is processed) is out of the scope or not 
> based on the base DN
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java
>  ffebd45 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java
>  c2bc22f 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulator.java
>  75df9cc 
>   
> ambari-server/src/test/java/org/apache/ambari/server/security/AmbariLdapUtilsTest.java
>  b2778ae 
>   
> ambari-server/src/test/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulatorTest.java
>  3ea 
> 
> Diff: https://reviews.apache.org/r/45208/diff/
> 
> 
> Testing
> ---
> 
> Testing is in progress.
> 
> 
> Thanks,
> 
> Oliver Szabo
> 
>



Re: Review Request 45208: Cleanup LDAP sync process

2016-03-30 Thread Oliver Szabo

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45208/
---

(Updated March 30, 2016, 3:25 p.m.)


Review request for Ambari, Daniel Gergely, Robert Levas, and Sebastian Toader.


Changes
---

- added null check
- update tests
- fixed typo


Bugs: AMBARI-15383
https://issues.apache.org/jira/browse/AMBARI-15383


Repository: ambari


Description
---

Cleanup LDAP sync process:
- speedup sync with "--all" (do not check nested groups recursively...ambari 
gather all of the groups first, and it's enough to just process them 
sequentially)
- fixing issue: uppercase member attributes (in ambari.properties) don't work 
well with the queries
- check that user/group DN (which is processed) is out of the scope or not 
based on the base DN


Diffs (updated)
-

  
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java
 ffebd45 
  
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java
 c2bc22f 
  
ambari-server/src/main/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulator.java
 75df9cc 
  
ambari-server/src/test/java/org/apache/ambari/server/security/AmbariLdapUtilsTest.java
 b2778ae 
  
ambari-server/src/test/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulatorTest.java
 3ea 

Diff: https://reviews.apache.org/r/45208/diff/


Testing (updated)
---

Testing is in progress.


Thanks,

Oliver Szabo



Re: Review Request 45458: AMBARI-15528: Stack Featurize RANGER and RANGER_KMS service

2016-03-30 Thread Sumit Mohanty

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45458/#review126112
---




ambari-common/src/main/python/resource_management/libraries/functions/constants.py
 (line 62)


OK, for now but should not this be in the stack definition as these are 
service related?


- Sumit Mohanty


On March 30, 2016, 4:06 a.m., Jayush Luniya wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45458/
> ---
> 
> (Updated March 30, 2016, 4:06 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Gautam Borad, Juanjo  Marron, 
> Sumit Mohanty, and Velmurugan Periasamy.
> 
> 
> Bugs: AMBARI-15528
> https://issues.apache.org/jira/browse/AMBARI-15528
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Stack Featurize RANGER and RANGER_KMS service
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/constants.py
>  f051cfd 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
>  6095a80 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/setup_ranger_plugin_xml.py
>  1046d62 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
>  da34696 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py
>  b25549f 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py
>  07f3ab6 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_service.py
>  8bbab02 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_usersync.py
>  51e5eab 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py
>  3542814 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/upgrade.py
>  aa75949 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py
>  11a705a 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms_server.py
>  42f1cb9 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/params.py
>  1e55d4a 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/upgrade.py
>  315a417 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
>  86e5971 
> 
> Diff: https://reviews.apache.org/r/45458/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test -DskipSurefireTests
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 56.375s
> [INFO] Finished at: Tue Mar 29 16:22:03 PDT 2016
> [INFO] Final Memory: 62M/1136M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jayush Luniya
> 
>



Re: Review Request 45487: VDF creation script should be callable as an importable module

2016-03-30 Thread Nate Cole


> On March 30, 2016, 10:21 a.m., Jonathan Hurley wrote:
> > contrib/version-builder/version_builder.py, line 231
> > 
> >
> > Should this be a member of the class; seems like it's only called in 
> > the context of the class and outside imports shouldn't get it by default.

Agreed.  Will update and test python3.  Thanks for the review!


- Nate


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45487/#review126107
---


On March 30, 2016, 9:55 a.m., Nate Cole wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45487/
> ---
> 
> (Updated March 30, 2016, 9:55 a.m.)
> 
> 
> Review request for Ambari and Jonathan Hurley.
> 
> 
> Bugs: AMBARI-15631
> https://issues.apache.org/jira/browse/AMBARI-15631
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> The version_builder.py script should be a callable module
> 
> 
> Diffs
> -
> 
>   contrib/version-builder/example.py PRE-CREATION 
>   contrib/version-builder/example.sh 7016997 
>   contrib/version-builder/version_builder.py 6c20a47 
> 
> Diff: https://reviews.apache.org/r/45487/diff/
> 
> 
> Testing
> ---
> 
> Manual.  No automated tests for contrib.
> 
> 
> Thanks,
> 
> Nate Cole
> 
>



Re: Review Request 45458: AMBARI-15528: Stack Featurize RANGER and RANGER_KMS service

2016-03-30 Thread Sumit Mohanty

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45458/#review126113
---


Ship it!




One minor question - probably future work item. Ship it.

- Sumit Mohanty


On March 30, 2016, 4:06 a.m., Jayush Luniya wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45458/
> ---
> 
> (Updated March 30, 2016, 4:06 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Gautam Borad, Juanjo  Marron, 
> Sumit Mohanty, and Velmurugan Periasamy.
> 
> 
> Bugs: AMBARI-15528
> https://issues.apache.org/jira/browse/AMBARI-15528
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Stack Featurize RANGER and RANGER_KMS service
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/constants.py
>  f051cfd 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
>  6095a80 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/setup_ranger_plugin_xml.py
>  1046d62 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
>  da34696 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py
>  b25549f 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py
>  07f3ab6 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_service.py
>  8bbab02 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_usersync.py
>  51e5eab 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py
>  3542814 
>   
> ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/upgrade.py
>  aa75949 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py
>  11a705a 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms_server.py
>  42f1cb9 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/params.py
>  1e55d4a 
>   
> ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/upgrade.py
>  315a417 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_features.json
>  86e5971 
> 
> Diff: https://reviews.apache.org/r/45458/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test -DskipSurefireTests
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 56.375s
> [INFO] Finished at: Tue Mar 29 16:22:03 PDT 2016
> [INFO] Final Memory: 62M/1136M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jayush Luniya
> 
>



Re: Review Request 45487: VDF creation script should be callable as an importable module

2016-03-30 Thread Jonathan Hurley

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45487/#review126107
---


Ship it!




argparse is my only real concern; I don't know how it behaves on Python 3.x


contrib/version-builder/version_builder.py (line 192)


Should this be a member of the class; seems like it's only called in the 
context of the class and outside imports shouldn't get it by default.



contrib/version-builder/version_builder.py (line 327)


I think that this is deprecated; maybe you should switch this to argparse?


- Jonathan Hurley


On March 30, 2016, 9:55 a.m., Nate Cole wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45487/
> ---
> 
> (Updated March 30, 2016, 9:55 a.m.)
> 
> 
> Review request for Ambari and Jonathan Hurley.
> 
> 
> Bugs: AMBARI-15631
> https://issues.apache.org/jira/browse/AMBARI-15631
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> The version_builder.py script should be a callable module
> 
> 
> Diffs
> -
> 
>   contrib/version-builder/example.py PRE-CREATION 
>   contrib/version-builder/example.sh 7016997 
>   contrib/version-builder/version_builder.py 6c20a47 
> 
> Diff: https://reviews.apache.org/r/45487/diff/
> 
> 
> Testing
> ---
> 
> Manual.  No automated tests for contrib.
> 
> 
> Thanks,
> 
> Nate Cole
> 
>



Review Request 45486: AMBARI-15628 Ranger: update code for jdbc according to new logic

2016-03-30 Thread Mugdha Varadkar

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45486/
---

Review request for Ambari, Alejandro Fernandez, Jaimin Jetly, Jonathan Hurley, 
Sumit Mohanty, Vitalyi Brodetskyi, and Velmurugan Periasamy.


Bugs: AMBARI-15628
https://issues.apache.org/jira/browse/AMBARI-15628


Repository: ambari


Description
---

Updating Ranger, Ranger plugin for services (hdfs, hive, hbase, knox, storm, 
kafka, yarn) and Ranger-KMS code to support real jdbc jar names.


Diffs
-

  
ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
 31e1757 
  
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py
 d6dec26 
  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
 35c6be2 
  
ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/params.py
 dc0d9a8 
  
ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py
 e3efe7c 
  
ambari-server/src/main/resources/common-services/RANGER/0.4.0/configuration/admin-properties.xml
 5513757 
  
ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py
 b25549f 
  
ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py
 db89664 
  
ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py
 74d0fe4 
  
ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/configuration/kms-properties.xml
 a5a57cf 
  
ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py
 4807dc5 
  
ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/params.py
 1e55d4a 
  
ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py
 53aa4dd 
  
ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
 40b076d 
  ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py 
4b99081 
  ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py 
741011c 
  ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py 
9a61f99 
  ambari-server/src/test/python/stacks/2.2/RANGER/test_ranger_admin.py a5cc123 
  ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py d415b6f 

Diff: https://reviews.apache.org/r/45486/diff/


Testing
---

Installed Ranger, Ranger KMS and Enabled plugin on centos6 for Hdp-2.2 and 
Hdp-2.5


Thanks,

Mugdha Varadkar



Re: Review Request 45208: Cleanup LDAP sync process

2016-03-30 Thread Robert Levas

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45208/#review126103
---


Fix it, then Ship it!





ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java
 (line 60)


There seems to be a lot of room for NPEs to be thrown.  DO we know null's 
aren't returned from the various calls?



ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java
 (line 62)


`full` is never `null`?


- Robert Levas


On March 30, 2016, 5:28 a.m., Oliver Szabo wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45208/
> ---
> 
> (Updated March 30, 2016, 5:28 a.m.)
> 
> 
> Review request for Ambari, Daniel Gergely, Robert Levas, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15383
> https://issues.apache.org/jira/browse/AMBARI-15383
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Cleanup LDAP sync process:
> - speedup sync with "--all" (do not check nested groups recursively...ambari 
> gather all of the groups first, and it's enough to just process them 
> sequentially)
> - fixing issue: uppercase member attributes (in ambari.properties) don't work 
> well with the queries
> - check that user/group DN (which is processed) is out of the scope or not 
> based on the base DN
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java
>  ffebd45 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java
>  c2bc22f 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulator.java
>  75df9cc 
>   
> ambari-server/src/test/java/org/apache/ambari/server/security/AmbariLdapUtilsTest.java
>  b2778ae 
>   
> ambari-server/src/test/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulatorTest.java
>  3ea 
> 
> Diff: https://reviews.apache.org/r/45208/diff/
> 
> 
> Testing
> ---
> 
> Testing done. (Everything is green on apache jenkins)
> 
> 
> Thanks,
> 
> Oliver Szabo
> 
>



Re: Review Request 45485: Ambari2400: ambari-server install fails on Rhel7

2016-03-30 Thread Dmitro Lisnichenko

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45485/#review126102
---


Ship it!




Ship It!

- Dmitro Lisnichenko


On March 30, 2016, 4:37 p.m., Andrew Onischuk wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45485/
> ---
> 
> (Updated March 30, 2016, 4:37 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-15629
> https://issues.apache.org/jira/browse/AMBARI-15629
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> ambari2400 server install fails on Rhel7 with the below issue:
> 
> 
> 
> 
> [root@os-rhel7-erie-5 ~]# yum install -y ambari-server
> Loaded plugins: fastestmirror
> Loading mirror speeds from cached hostfile
> Resolving Dependencies
> --> Running transaction check
> ---> Package ambari-server.x86_64 0:2.4.0.0-141 will be installed
> --> Processing Dependency: postgresql-server >= 8.1 for package: 
> ambari-server-2.4.0.0-141.x86_64
> --> Running transaction check
> ---> Package postgresql-server.x86_64 0:9.2.15-1.el7_2 will be installed
> --> Processing Dependency: postgresql-libs(x86-64) = 9.2.15-1.el7_2 for 
> package: postgresql-server-9.2.15-1.el7_2.x86_64
> --> Processing Dependency: postgresql(x86-64) = 9.2.15-1.el7_2 for 
> package: postgresql-server-9.2.15-1.el7_2.x86_64
> --> Processing Dependency: libpq.so.5()(64bit) for package: 
> postgresql-server-9.2.15-1.el7_2.x86_64
> --> Running transaction check
> ---> Package postgresql.x86_64 0:9.2.15-1.el7_2 will be installed
> ---> Package postgresql-libs.x86_64 0:9.2.15-1.el7_2 will be installed
> --> Finished Dependency Resolution
> 
> Dependencies Resolved
> 
> 
> =
>  Package Arch Version 
> RepositorySize
> 
> =
> Installing:
>  ambari-server   x86_64   2.4.0.0-141 
> AMBARI.2.4.0.0-2.x   393 M
> Installing for dependencies:
>  postgresql  x86_64   9.2.15-1.el7_2  
> updates  3.0 M
>  postgresql-libs x86_64   9.2.15-1.el7_2  
> updates  231 k
>  postgresql-server   x86_64   9.2.15-1.el7_2  
> updates  3.8 M
> 
> Transaction Summary
> 
> =
> Install  1 Package (+3 Dependent packages)
> 
> Total size: 400 M
> Installed size: 476 M
> Downloading packages:
> Running transaction check
> Running transaction test
> 
> 
> Transaction check error:
>   file /usr/lib from install of ambari-server-2.4.0.0-141.x86_64 
> conflicts with file from package filesystem-3.2-18.el7.x86_64
>   file /usr/sbin from install of ambari-server-2.4.0.0-141.x86_64 
> conflicts with file from package filesystem-3.2-18.el7.x86_64
> 
> Error Summary
> -
> 
> 
> please help take a look  
>  Setup/137971/console>
> 
> 
> Diffs
> -
> 
>   ambari-agent/pom.xml c2c993f 
>   ambari-server/pom.xml 857e554 
> 
> Diff: https://reviews.apache.org/r/45485/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>



Review Request 45487: VDF creation script should be callable as an importable module

2016-03-30 Thread Nate Cole

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45487/
---

Review request for Ambari and Jonathan Hurley.


Bugs: AMBARI-15631
https://issues.apache.org/jira/browse/AMBARI-15631


Repository: ambari


Description
---

The version_builder.py script should be a callable module


Diffs
-

  contrib/version-builder/example.py PRE-CREATION 
  contrib/version-builder/example.sh 7016997 
  contrib/version-builder/version_builder.py 6c20a47 

Diff: https://reviews.apache.org/r/45487/diff/


Testing
---

Manual.  No automated tests for contrib.


Thanks,

Nate Cole



Re: Review Request 45485: Ambari2400: ambari-server install fails on Rhel7

2016-03-30 Thread Dmytro Grinenko

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45485/#review126101
---


Ship it!




Ship It!

- Dmytro Grinenko


On March 30, 2016, 1:37 p.m., Andrew Onischuk wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45485/
> ---
> 
> (Updated March 30, 2016, 1:37 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-15629
> https://issues.apache.org/jira/browse/AMBARI-15629
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> ambari2400 server install fails on Rhel7 with the below issue:
> 
> 
> 
> 
> [root@os-rhel7-erie-5 ~]# yum install -y ambari-server
> Loaded plugins: fastestmirror
> Loading mirror speeds from cached hostfile
> Resolving Dependencies
> --> Running transaction check
> ---> Package ambari-server.x86_64 0:2.4.0.0-141 will be installed
> --> Processing Dependency: postgresql-server >= 8.1 for package: 
> ambari-server-2.4.0.0-141.x86_64
> --> Running transaction check
> ---> Package postgresql-server.x86_64 0:9.2.15-1.el7_2 will be installed
> --> Processing Dependency: postgresql-libs(x86-64) = 9.2.15-1.el7_2 for 
> package: postgresql-server-9.2.15-1.el7_2.x86_64
> --> Processing Dependency: postgresql(x86-64) = 9.2.15-1.el7_2 for 
> package: postgresql-server-9.2.15-1.el7_2.x86_64
> --> Processing Dependency: libpq.so.5()(64bit) for package: 
> postgresql-server-9.2.15-1.el7_2.x86_64
> --> Running transaction check
> ---> Package postgresql.x86_64 0:9.2.15-1.el7_2 will be installed
> ---> Package postgresql-libs.x86_64 0:9.2.15-1.el7_2 will be installed
> --> Finished Dependency Resolution
> 
> Dependencies Resolved
> 
> 
> =
>  Package Arch Version 
> RepositorySize
> 
> =
> Installing:
>  ambari-server   x86_64   2.4.0.0-141 
> AMBARI.2.4.0.0-2.x   393 M
> Installing for dependencies:
>  postgresql  x86_64   9.2.15-1.el7_2  
> updates  3.0 M
>  postgresql-libs x86_64   9.2.15-1.el7_2  
> updates  231 k
>  postgresql-server   x86_64   9.2.15-1.el7_2  
> updates  3.8 M
> 
> Transaction Summary
> 
> =
> Install  1 Package (+3 Dependent packages)
> 
> Total size: 400 M
> Installed size: 476 M
> Downloading packages:
> Running transaction check
> Running transaction test
> 
> 
> Transaction check error:
>   file /usr/lib from install of ambari-server-2.4.0.0-141.x86_64 
> conflicts with file from package filesystem-3.2-18.el7.x86_64
>   file /usr/sbin from install of ambari-server-2.4.0.0-141.x86_64 
> conflicts with file from package filesystem-3.2-18.el7.x86_64
> 
> Error Summary
> -
> 
> 
> please help take a look  
>  Setup/137971/console>
> 
> 
> Diffs
> -
> 
>   ambari-agent/pom.xml c2c993f 
>   ambari-server/pom.xml 857e554 
> 
> Diff: https://reviews.apache.org/r/45485/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>



Re: Review Request 44265: Basic Operational Audit Logging

2016-03-30 Thread Daniel Gergely


> On márc. 29, 2016, 4:33 du, Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java,
> >  line 843
> > 
> >
> > These work with the above cache, but don't take into account HRCs being 
> > updated externally; especially from places like server-side executors. How 
> > does this work during a stack upgrade? Does this properly clear all of the 
> > requests out?

Requests that are started by stack upgrade are handled in the same way as any 
other requests, so they are also removed. (they have requestID and tasks, so 
status of them can be checked and based on that we can clear the cache)


- Daniel


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44265/#review125892
---


On márc. 30, 2016, 12:44 du, Daniel Gergely wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44265/
> ---
> 
> (Updated márc. 30, 2016, 12:44 du)
> 
> 
> Review request for Ambari, Laszlo Puskas, Oliver Szabo, Robert Levas, Sandor 
> Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15241
> https://issues.apache.org/jira/browse/AMBARI-15241
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Entry points for logging events:
> - Login and logout: AmbariAuthenticationFilter, AmbariAuthorizationFilter, 
> LogoutService
> - Operation and tasks: ActionDBAAccessorImpl
> - Kerberos related events: CreateKeytabFilesServerAction, 
> CreatePrincipalServerAction, DestroyPrincipalsServerAction, 
> FinalizeKerberosServerAction
> - REST api: BaseService
> 
> Architecture:
> AuditLogger injectable is created and wired in by Guice. The default 
> implementation (AuditLoggerDefaultImpl) for this interface logs to a file. 
> Considering performance impact, there is a buffered audit logger 
> implementation (BufferedAuditLogger) that is a wrapper for an audit logger 
> implementation and does the logging asynchronously.
> 
> Audit loggers have a single log method that accepts an AuditEvent object. At 
> the entry points an AuditEvent is assembled and log method is called (except 
> for the REST api, see below...)
> 
> REST Api:
> In BaseService, there is a RequestAuditLogger, that is responsible for 
> handling and assembling AuditEvents. It also has a log method, but the 
> parameters for that is the Request and Result objects.
> RequestAuditLogger is a small framework for that plugins can be implemented 
> to handle different type of requests.
> Plugins implements RequestAuditEventCreator interface and can be set to 
> handle one or multiple request types (PUT, POST, DELETE, etc...), resource 
> types (HOST_COMPONENT, BLUEPRINT, etc..) and results statuses (200 OK, 202 
> ACCEPTED, 404 NOT_FOUND, etc). If null is returned by these getters, it means 
> "all". If there are more than one RequestAuditEventCreators can handle a 
> request, then the most specific is called. (Priority order: resourceType > 
> resultStatus > requestType)
> For example it is possible to define a plugin for all the POST requests, but 
> if there is an other plugin for POST request and for resource type 
> HOST_COMPONENT, then this latter is used (because it is more specific). The 
> method createAuditEvent is responsible for creating the AuditEvent object for 
> the RequestAuditEventLogger. If null is returned, then request is not logged 
> (can be used for ignoring events).
> Plugins are registered in ControllerModule and wired by guice to the 
> RequestAuditLogger. If a new plugin is needed, then implementing the 
> RequestAuditEventCreator interface and registering it in Guice is the only 
> things to do. (open-closed principle)
> 
> 
> Diffs
> -
> 
>   ambari-project/pom.xml b3d9ca2 
>   ambari-server/conf/unix/log4j.properties 2ee32d4 
>   ambari-server/conf/windows/log4j.properties cc40f74 
>   ambari-server/pom.xml 1e44517 
>   ambari-server/src/main/conf/log4j.properties 8e6652d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
>  429f573 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseRequest.java
>  a33e8a7 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseService.java
>  7945599 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/LogoutService.java
>  df8faaa 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/Request.java
>  ff9b6c7 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/AsyncAuditLogger.java
>  PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLogger.java 
> PRE-CREATION 
>

Review Request 45485: Ambari2400: ambari-server install fails on Rhel7

2016-03-30 Thread Andrew Onischuk

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45485/
---

Review request for Ambari and Dmitro Lisnichenko.


Bugs: AMBARI-15629
https://issues.apache.org/jira/browse/AMBARI-15629


Repository: ambari


Description
---

ambari2400 server install fails on Rhel7 with the below issue:




[root@os-rhel7-erie-5 ~]# yum install -y ambari-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package ambari-server.x86_64 0:2.4.0.0-141 will be installed
--> Processing Dependency: postgresql-server >= 8.1 for package: 
ambari-server-2.4.0.0-141.x86_64
--> Running transaction check
---> Package postgresql-server.x86_64 0:9.2.15-1.el7_2 will be installed
--> Processing Dependency: postgresql-libs(x86-64) = 9.2.15-1.el7_2 for 
package: postgresql-server-9.2.15-1.el7_2.x86_64
--> Processing Dependency: postgresql(x86-64) = 9.2.15-1.el7_2 for package: 
postgresql-server-9.2.15-1.el7_2.x86_64
--> Processing Dependency: libpq.so.5()(64bit) for package: 
postgresql-server-9.2.15-1.el7_2.x86_64
--> Running transaction check
---> Package postgresql.x86_64 0:9.2.15-1.el7_2 will be installed
---> Package postgresql-libs.x86_64 0:9.2.15-1.el7_2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved


=
 Package Arch Version   
  RepositorySize

=
Installing:
 ambari-server   x86_64   2.4.0.0-141   
  AMBARI.2.4.0.0-2.x   393 M
Installing for dependencies:
 postgresql  x86_64   9.2.15-1.el7_2
  updates  3.0 M
 postgresql-libs x86_64   9.2.15-1.el7_2
  updates  231 k
 postgresql-server   x86_64   9.2.15-1.el7_2
  updates  3.8 M

Transaction Summary

=
Install  1 Package (+3 Dependent packages)

Total size: 400 M
Installed size: 476 M
Downloading packages:
Running transaction check
Running transaction test


Transaction check error:
  file /usr/lib from install of ambari-server-2.4.0.0-141.x86_64 conflicts 
with file from package filesystem-3.2-18.el7.x86_64
  file /usr/sbin from install of ambari-server-2.4.0.0-141.x86_64 conflicts 
with file from package filesystem-3.2-18.el7.x86_64

Error Summary
-


please help take a look  



Diffs
-

  ambari-agent/pom.xml c2c993f 
  ambari-server/pom.xml 857e554 

Diff: https://reviews.apache.org/r/45485/diff/


Testing
---

mvn clean test


Thanks,

Andrew Onischuk



Re: Review Request 45379: Introduce "Copy Path to clipboard" feature for Files browser view UI

2016-03-30 Thread DIPAYAN BHOWMICK

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45379/#review126093
---


Ship it!




Ship It!

- DIPAYAN BHOWMICK


On March 30, 2016, 7:12 a.m., Pallav Kulshreshtha wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45379/
> ---
> 
> (Updated March 30, 2016, 7:12 a.m.)
> 
> 
> Review request for Ambari, DIPAYAN BHOWMICK, Gaurav Nagar, Nitiraj Rathore, 
> and Srimanth Gunturi.
> 
> 
> Bugs: AMBARI-15598
> https://issues.apache.org/jira/browse/AMBARI-15598
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Introduce ember-cli-clipboard addon to the application and used the same 
> component to do the needful.
> 
> 
> Diffs
> -
> 
>   contrib/views/files/src/main/resources/ui/app/controllers/files.js 9fc11b6 
>   contrib/views/files/src/main/resources/ui/app/templates/files.hbs 3e178bc 
>   contrib/views/files/src/main/resources/ui/bower.json 7212b31 
>   contrib/views/files/src/main/resources/ui/package.json 8250489 
> 
> Diff: https://reviews.apache.org/r/45379/diff/
> 
> 
> Testing
> ---
> 
> manually tested.
> 
> 
> Thanks,
> 
> Pallav Kulshreshtha
> 
>



Re: Review Request 44265: Basic Operational Audit Logging

2016-03-30 Thread Daniel Gergely


> On márc. 29, 2016, 4:58 du, Nate Cole wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerModule.java,
> >  line 65
> > 
> >
> > Can these be bound by annotation?  It would make it easier for a 
> > developer to add creators then to remember to have to come here.

Spring framework can do it, but I did not find any similar for guice.


- Daniel


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44265/#review125890
---


On márc. 30, 2016, 12:44 du, Daniel Gergely wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44265/
> ---
> 
> (Updated márc. 30, 2016, 12:44 du)
> 
> 
> Review request for Ambari, Laszlo Puskas, Oliver Szabo, Robert Levas, Sandor 
> Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15241
> https://issues.apache.org/jira/browse/AMBARI-15241
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Entry points for logging events:
> - Login and logout: AmbariAuthenticationFilter, AmbariAuthorizationFilter, 
> LogoutService
> - Operation and tasks: ActionDBAAccessorImpl
> - Kerberos related events: CreateKeytabFilesServerAction, 
> CreatePrincipalServerAction, DestroyPrincipalsServerAction, 
> FinalizeKerberosServerAction
> - REST api: BaseService
> 
> Architecture:
> AuditLogger injectable is created and wired in by Guice. The default 
> implementation (AuditLoggerDefaultImpl) for this interface logs to a file. 
> Considering performance impact, there is a buffered audit logger 
> implementation (BufferedAuditLogger) that is a wrapper for an audit logger 
> implementation and does the logging asynchronously.
> 
> Audit loggers have a single log method that accepts an AuditEvent object. At 
> the entry points an AuditEvent is assembled and log method is called (except 
> for the REST api, see below...)
> 
> REST Api:
> In BaseService, there is a RequestAuditLogger, that is responsible for 
> handling and assembling AuditEvents. It also has a log method, but the 
> parameters for that is the Request and Result objects.
> RequestAuditLogger is a small framework for that plugins can be implemented 
> to handle different type of requests.
> Plugins implements RequestAuditEventCreator interface and can be set to 
> handle one or multiple request types (PUT, POST, DELETE, etc...), resource 
> types (HOST_COMPONENT, BLUEPRINT, etc..) and results statuses (200 OK, 202 
> ACCEPTED, 404 NOT_FOUND, etc). If null is returned by these getters, it means 
> "all". If there are more than one RequestAuditEventCreators can handle a 
> request, then the most specific is called. (Priority order: resourceType > 
> resultStatus > requestType)
> For example it is possible to define a plugin for all the POST requests, but 
> if there is an other plugin for POST request and for resource type 
> HOST_COMPONENT, then this latter is used (because it is more specific). The 
> method createAuditEvent is responsible for creating the AuditEvent object for 
> the RequestAuditEventLogger. If null is returned, then request is not logged 
> (can be used for ignoring events).
> Plugins are registered in ControllerModule and wired by guice to the 
> RequestAuditLogger. If a new plugin is needed, then implementing the 
> RequestAuditEventCreator interface and registering it in Guice is the only 
> things to do. (open-closed principle)
> 
> 
> Diffs
> -
> 
>   ambari-project/pom.xml b3d9ca2 
>   ambari-server/conf/unix/log4j.properties 2ee32d4 
>   ambari-server/conf/windows/log4j.properties cc40f74 
>   ambari-server/pom.xml 1e44517 
>   ambari-server/src/main/conf/log4j.properties 8e6652d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
>  429f573 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseRequest.java
>  a33e8a7 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseService.java
>  7945599 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/LogoutService.java
>  df8faaa 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/Request.java
>  ff9b6c7 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/AsyncAuditLogger.java
>  PRE-CREATION 
>   ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLogger.java 
> PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerDefaultImpl.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerModule.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/audit/event/Abstra

Re: Review Request 44265: Basic Operational Audit Logging

2016-03-30 Thread Daniel Gergely


> On márc. 29, 2016, 4:33 du, Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java,
> >  lines 134-139
> > 
> >
> > I don't see these being cleared anywhere.

These are not cleared, because there is no expression to decide when to clear. 
The problem is that agents sends the completed status multiple times. So if I 
deleted a completed task from the cache, the agent would send it again. If the 
task is not in the cache, it is logged, even it is in completed state. 
(consider the case when ambari server is stopped during a task execution, task 
finishes and server is started. That point the completed status is needed to be 
logged, since this is a new information)


> On márc. 29, 2016, 4:33 du, Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerDefaultImpl.java,
> >  line 64
> > 
> >
> > Constructing a new date formatter for every entry?

Moved to ThreadLocal.


- Daniel


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44265/#review125892
---


On márc. 30, 2016, 12:44 du, Daniel Gergely wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44265/
> ---
> 
> (Updated márc. 30, 2016, 12:44 du)
> 
> 
> Review request for Ambari, Laszlo Puskas, Oliver Szabo, Robert Levas, Sandor 
> Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15241
> https://issues.apache.org/jira/browse/AMBARI-15241
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Entry points for logging events:
> - Login and logout: AmbariAuthenticationFilter, AmbariAuthorizationFilter, 
> LogoutService
> - Operation and tasks: ActionDBAAccessorImpl
> - Kerberos related events: CreateKeytabFilesServerAction, 
> CreatePrincipalServerAction, DestroyPrincipalsServerAction, 
> FinalizeKerberosServerAction
> - REST api: BaseService
> 
> Architecture:
> AuditLogger injectable is created and wired in by Guice. The default 
> implementation (AuditLoggerDefaultImpl) for this interface logs to a file. 
> Considering performance impact, there is a buffered audit logger 
> implementation (BufferedAuditLogger) that is a wrapper for an audit logger 
> implementation and does the logging asynchronously.
> 
> Audit loggers have a single log method that accepts an AuditEvent object. At 
> the entry points an AuditEvent is assembled and log method is called (except 
> for the REST api, see below...)
> 
> REST Api:
> In BaseService, there is a RequestAuditLogger, that is responsible for 
> handling and assembling AuditEvents. It also has a log method, but the 
> parameters for that is the Request and Result objects.
> RequestAuditLogger is a small framework for that plugins can be implemented 
> to handle different type of requests.
> Plugins implements RequestAuditEventCreator interface and can be set to 
> handle one or multiple request types (PUT, POST, DELETE, etc...), resource 
> types (HOST_COMPONENT, BLUEPRINT, etc..) and results statuses (200 OK, 202 
> ACCEPTED, 404 NOT_FOUND, etc). If null is returned by these getters, it means 
> "all". If there are more than one RequestAuditEventCreators can handle a 
> request, then the most specific is called. (Priority order: resourceType > 
> resultStatus > requestType)
> For example it is possible to define a plugin for all the POST requests, but 
> if there is an other plugin for POST request and for resource type 
> HOST_COMPONENT, then this latter is used (because it is more specific). The 
> method createAuditEvent is responsible for creating the AuditEvent object for 
> the RequestAuditEventLogger. If null is returned, then request is not logged 
> (can be used for ignoring events).
> Plugins are registered in ControllerModule and wired by guice to the 
> RequestAuditLogger. If a new plugin is needed, then implementing the 
> RequestAuditEventCreator interface and registering it in Guice is the only 
> things to do. (open-closed principle)
> 
> 
> Diffs
> -
> 
>   ambari-project/pom.xml b3d9ca2 
>   ambari-server/conf/unix/log4j.properties 2ee32d4 
>   ambari-server/conf/windows/log4j.properties cc40f74 
>   ambari-server/pom.xml 1e44517 
>   ambari-server/src/main/conf/log4j.properties 8e6652d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
>  429f573 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseRequest.java
>  a33e8a7 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseService.java
>  7945599 

Re: Review Request 44265: Basic Operational Audit Logging

2016-03-30 Thread Daniel Gergely


> On márc. 8, 2016, 5:05 du, Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java,
> >  lines 801-816
> > 
> >
> > A problem with this approach is that you're building these heavy 
> > objects even if audit logging is not enabled.

Auditlog switch is added, objects are not built if auditlog is disabled.


> On márc. 8, 2016, 5:05 du, Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/api/services/LogoutService.java,
> >  line 54
> > 
> >
> > This has to be able to be done via an AOP interceptor. Audit logging is 
> > a perfect example of how cross cutting concerns can decouple business logic 
> > from auditting/logging.

I dont think we can do it system-wide, because a major refactor would be 
necessary to have clean pointcuts (e.g. methods with small specific tasks). For 
example in BaseService the input is url, request, headers, etc and the output 
is an http Response object. So that would be really difficult to retrieve the 
information from those.


- Daniel


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44265/#review122542
---


On márc. 30, 2016, 12:44 du, Daniel Gergely wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44265/
> ---
> 
> (Updated márc. 30, 2016, 12:44 du)
> 
> 
> Review request for Ambari, Laszlo Puskas, Oliver Szabo, Robert Levas, Sandor 
> Magyari, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15241
> https://issues.apache.org/jira/browse/AMBARI-15241
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Entry points for logging events:
> - Login and logout: AmbariAuthenticationFilter, AmbariAuthorizationFilter, 
> LogoutService
> - Operation and tasks: ActionDBAAccessorImpl
> - Kerberos related events: CreateKeytabFilesServerAction, 
> CreatePrincipalServerAction, DestroyPrincipalsServerAction, 
> FinalizeKerberosServerAction
> - REST api: BaseService
> 
> Architecture:
> AuditLogger injectable is created and wired in by Guice. The default 
> implementation (AuditLoggerDefaultImpl) for this interface logs to a file. 
> Considering performance impact, there is a buffered audit logger 
> implementation (BufferedAuditLogger) that is a wrapper for an audit logger 
> implementation and does the logging asynchronously.
> 
> Audit loggers have a single log method that accepts an AuditEvent object. At 
> the entry points an AuditEvent is assembled and log method is called (except 
> for the REST api, see below...)
> 
> REST Api:
> In BaseService, there is a RequestAuditLogger, that is responsible for 
> handling and assembling AuditEvents. It also has a log method, but the 
> parameters for that is the Request and Result objects.
> RequestAuditLogger is a small framework for that plugins can be implemented 
> to handle different type of requests.
> Plugins implements RequestAuditEventCreator interface and can be set to 
> handle one or multiple request types (PUT, POST, DELETE, etc...), resource 
> types (HOST_COMPONENT, BLUEPRINT, etc..) and results statuses (200 OK, 202 
> ACCEPTED, 404 NOT_FOUND, etc). If null is returned by these getters, it means 
> "all". If there are more than one RequestAuditEventCreators can handle a 
> request, then the most specific is called. (Priority order: resourceType > 
> resultStatus > requestType)
> For example it is possible to define a plugin for all the POST requests, but 
> if there is an other plugin for POST request and for resource type 
> HOST_COMPONENT, then this latter is used (because it is more specific). The 
> method createAuditEvent is responsible for creating the AuditEvent object for 
> the RequestAuditEventLogger. If null is returned, then request is not logged 
> (can be used for ignoring events).
> Plugins are registered in ControllerModule and wired by guice to the 
> RequestAuditLogger. If a new plugin is needed, then implementing the 
> RequestAuditEventCreator interface and registering it in Guice is the only 
> things to do. (open-closed principle)
> 
> 
> Diffs
> -
> 
>   ambari-project/pom.xml b3d9ca2 
>   ambari-server/conf/unix/log4j.properties 2ee32d4 
>   ambari-server/conf/windows/log4j.properties cc40f74 
>   ambari-server/pom.xml 1e44517 
>   ambari-server/src/main/conf/log4j.properties 8e6652d 
>   
> ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
>  429f573 
>   
> ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseRequest.java
>  a33e8a7 
>   
> ambari-server/src/

Re: Review Request 44265: Basic Operational Audit Logging

2016-03-30 Thread Daniel Gergely

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44265/
---

(Updated márc. 30, 2016, 12:44 du)


Review request for Ambari, Laszlo Puskas, Oliver Szabo, Robert Levas, Sandor 
Magyari, and Sebastian Toader.


Changes
---

Review fixes


Bugs: AMBARI-15241
https://issues.apache.org/jira/browse/AMBARI-15241


Repository: ambari


Description
---

Entry points for logging events:
- Login and logout: AmbariAuthenticationFilter, AmbariAuthorizationFilter, 
LogoutService
- Operation and tasks: ActionDBAAccessorImpl
- Kerberos related events: CreateKeytabFilesServerAction, 
CreatePrincipalServerAction, DestroyPrincipalsServerAction, 
FinalizeKerberosServerAction
- REST api: BaseService

Architecture:
AuditLogger injectable is created and wired in by Guice. The default 
implementation (AuditLoggerDefaultImpl) for this interface logs to a file. 
Considering performance impact, there is a buffered audit logger implementation 
(BufferedAuditLogger) that is a wrapper for an audit logger implementation and 
does the logging asynchronously.

Audit loggers have a single log method that accepts an AuditEvent object. At 
the entry points an AuditEvent is assembled and log method is called (except 
for the REST api, see below...)

REST Api:
In BaseService, there is a RequestAuditLogger, that is responsible for handling 
and assembling AuditEvents. It also has a log method, but the parameters for 
that is the Request and Result objects.
RequestAuditLogger is a small framework for that plugins can be implemented to 
handle different type of requests.
Plugins implements RequestAuditEventCreator interface and can be set to handle 
one or multiple request types (PUT, POST, DELETE, etc...), resource types 
(HOST_COMPONENT, BLUEPRINT, etc..) and results statuses (200 OK, 202 ACCEPTED, 
404 NOT_FOUND, etc). If null is returned by these getters, it means "all". If 
there are more than one RequestAuditEventCreators can handle a request, then 
the most specific is called. (Priority order: resourceType > resultStatus > 
requestType)
For example it is possible to define a plugin for all the POST requests, but if 
there is an other plugin for POST request and for resource type HOST_COMPONENT, 
then this latter is used (because it is more specific). The method 
createAuditEvent is responsible for creating the AuditEvent object for the 
RequestAuditEventLogger. If null is returned, then request is not logged (can 
be used for ignoring events).
Plugins are registered in ControllerModule and wired by guice to the 
RequestAuditLogger. If a new plugin is needed, then implementing the 
RequestAuditEventCreator interface and registering it in Guice is the only 
things to do. (open-closed principle)


Diffs (updated)
-

  ambari-project/pom.xml b3d9ca2 
  ambari-server/conf/unix/log4j.properties 2ee32d4 
  ambari-server/conf/windows/log4j.properties cc40f74 
  ambari-server/pom.xml 1e44517 
  ambari-server/src/main/conf/log4j.properties 8e6652d 
  
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
 429f573 
  
ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseRequest.java
 a33e8a7 
  
ambari-server/src/main/java/org/apache/ambari/server/api/services/BaseService.java
 7945599 
  
ambari-server/src/main/java/org/apache/ambari/server/api/services/LogoutService.java
 df8faaa 
  
ambari-server/src/main/java/org/apache/ambari/server/api/services/Request.java 
ff9b6c7 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/AsyncAuditLogger.java
 PRE-CREATION 
  ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLogger.java 
PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerDefaultImpl.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/AuditLoggerModule.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/AbstractAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/AbstractUserAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/AccessUnauthorizedAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/AuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/LoginAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/LogoutAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/OperationStatusAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/TaskStatusAuditEvent.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/audit/event/kerberos/AbstractKerberosAuditEvent.java
 PRE-CR

Re: Review Request 45374: Use ">>" instead of ">" to write ambari-metrics-collector.out

2016-03-30 Thread Dmytro Sen

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45374/#review126084
---


Ship it!




I'm ok with that, but lets wait for one more +1

- Dmytro Sen


On Март 30, 2016, 2:02 д.п., Akira Ajisaka wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45374/
> ---
> 
> (Updated Март 30, 2016, 2:02 д.п.)
> 
> 
> Review request for Ambari, Aravindan Vijayan, Dmytro Sen, and Sid Wagle.
> 
> 
> Bugs: AMBARI-15588
> https://issues.apache.org/jira/browse/AMBARI-15588
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> If we want to rotate ambari-metrics-collector.out by logrotate (using 
> copytruncate option), we need to use ">>" instead of ">" not to keep the file 
> offset to write. If the offset is kept, null characters are padded in the new 
> file.
> 
> 
> Diffs
> -
> 
>   
> ambari-metrics/ambari-metrics-host-monitoring/conf/unix/ambari-metrics-monitor
>  7464c55 
> 
> Diff: https://reviews.apache.org/r/45374/diff/
> 
> 
> Testing
> ---
> 
> Manually tested the patch and verified that the .out is rotated collectly.
> 
> 
> Thanks,
> 
> Akira Ajisaka
> 
>



Re: Review Request 45432: App Timeline Web UI Warning Alert is always present after Disabling security a few times

2016-03-30 Thread Andrew Onischuk

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45432/#review126079
---


Ship it!




Ship It!

- Andrew Onischuk


On March 30, 2016, 10:43 a.m., Vitalyi Brodetskyi wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45432/
> ---
> 
> (Updated March 30, 2016, 10:43 a.m.)
> 
> 
> Review request for Ambari, Andrew Onischuk and Jonathan Hurley.
> 
> 
> Bugs: AMBARI-15616
> https://issues.apache.org/jira/browse/AMBARI-15616
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> 1)Deploy cluster
> 2)Enable/Disable security (MIT)
> 3)Enable security (MIT)
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
>  21cdd09 
>   
> ambari-server/src/main/resources/common-services/KERBEROS/1.10.3-10/package/scripts/kerberos_client.py
>  013aabc 
>   
> ambari-server/src/main/resources/common-services/KERBEROS/1.10.3-10/package/scripts/kerberos_common.py
>  b72c4bf 
>   ambari-server/src/test/python/stacks/2.2/KERBEROS/test_kerberos_client.py 
> b3b7940 
> 
> Diff: https://reviews.apache.org/r/45432/diff/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Vitalyi Brodetskyi
> 
>



Re: Review Request 45432: App Timeline Web UI Warning Alert is always present after Disabling security a few times

2016-03-30 Thread Vitalyi Brodetskyi

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45432/
---

(Updated Березень 30, 2016, 10:43 до полудня)


Review request for Ambari, Andrew Onischuk and Jonathan Hurley.


Bugs: AMBARI-15616
https://issues.apache.org/jira/browse/AMBARI-15616


Repository: ambari


Description
---

1)Deploy cluster
2)Enable/Disable security (MIT)
3)Enable security (MIT)


Diffs (updated)
-

  
ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
 21cdd09 
  
ambari-server/src/main/resources/common-services/KERBEROS/1.10.3-10/package/scripts/kerberos_client.py
 013aabc 
  
ambari-server/src/main/resources/common-services/KERBEROS/1.10.3-10/package/scripts/kerberos_common.py
 b72c4bf 
  ambari-server/src/test/python/stacks/2.2/KERBEROS/test_kerberos_client.py 
b3b7940 

Diff: https://reviews.apache.org/r/45432/diff/


Testing
---

mvn clean test


Thanks,

Vitalyi Brodetskyi



Re: Review Request 45208: Cleanup LDAP sync process

2016-03-30 Thread Sebastian Toader

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45208/#review126068
---


Ship it!




Ship It!

- Sebastian Toader


On March 30, 2016, 11:28 a.m., Oliver Szabo wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45208/
> ---
> 
> (Updated March 30, 2016, 11:28 a.m.)
> 
> 
> Review request for Ambari, Daniel Gergely, Robert Levas, and Sebastian Toader.
> 
> 
> Bugs: AMBARI-15383
> https://issues.apache.org/jira/browse/AMBARI-15383
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Cleanup LDAP sync process:
> - speedup sync with "--all" (do not check nested groups recursively...ambari 
> gather all of the groups first, and it's enough to just process them 
> sequentially)
> - fixing issue: uppercase member attributes (in ambari.properties) don't work 
> well with the queries
> - check that user/group DN (which is processed) is out of the scope or not 
> based on the base DN
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java
>  ffebd45 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java
>  c2bc22f 
>   
> ambari-server/src/main/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulator.java
>  75df9cc 
>   
> ambari-server/src/test/java/org/apache/ambari/server/security/AmbariLdapUtilsTest.java
>  b2778ae 
>   
> ambari-server/src/test/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulatorTest.java
>  3ea 
> 
> Diff: https://reviews.apache.org/r/45208/diff/
> 
> 
> Testing
> ---
> 
> Testing done. (Everything is green on apache jenkins)
> 
> 
> Thanks,
> 
> Oliver Szabo
> 
>



Re: Review Request 45208: Cleanup LDAP sync process

2016-03-30 Thread Oliver Szabo

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45208/
---

(Updated March 30, 2016, 9:28 a.m.)


Review request for Ambari, Daniel Gergely, Robert Levas, and Sebastian Toader.


Changes
---

fixed issues


Bugs: AMBARI-15383
https://issues.apache.org/jira/browse/AMBARI-15383


Repository: ambari


Description
---

Cleanup LDAP sync process:
- speedup sync with "--all" (do not check nested groups recursively...ambari 
gather all of the groups first, and it's enough to just process them 
sequentially)
- fixing issue: uppercase member attributes (in ambari.properties) don't work 
well with the queries
- check that user/group DN (which is processed) is out of the scope or not 
based on the base DN


Diffs (updated)
-

  
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariLdapUtils.java
 ffebd45 
  
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java
 c2bc22f 
  
ambari-server/src/main/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulator.java
 75df9cc 
  
ambari-server/src/test/java/org/apache/ambari/server/security/AmbariLdapUtilsTest.java
 b2778ae 
  
ambari-server/src/test/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulatorTest.java
 3ea 

Diff: https://reviews.apache.org/r/45208/diff/


Testing (updated)
---

Testing done. (Everything is green on apache jenkins)


Thanks,

Oliver Szabo



Re: Review Request 45379: Introduce "Copy Path to clipboard" feature for Files browser view UI

2016-03-30 Thread Pallav Kulshreshtha

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45379/
---

(Updated March 30, 2016, 7:12 a.m.)


Review request for Ambari, DIPAYAN BHOWMICK, Gaurav Nagar, Nitiraj Rathore, and 
Srimanth Gunturi.


Bugs: AMBARI-15598
https://issues.apache.org/jira/browse/AMBARI-15598


Repository: ambari


Description
---

Introduce ember-cli-clipboard addon to the application and used the same 
component to do the needful.


Diffs (updated)
-

  contrib/views/files/src/main/resources/ui/app/controllers/files.js 9fc11b6 
  contrib/views/files/src/main/resources/ui/app/templates/files.hbs 3e178bc 
  contrib/views/files/src/main/resources/ui/bower.json 7212b31 
  contrib/views/files/src/main/resources/ui/package.json 8250489 

Diff: https://reviews.apache.org/r/45379/diff/


Testing
---

manually tested.


Thanks,

Pallav Kulshreshtha