Re: Review Request 62250: AMBARI-21939 : Ambari HDFS Heatmaps are not showing data (Not Applicable) for bytes read, bytes written & DataNode Process Network I/O Utilization

2017-09-12 Thread Jayush Luniya

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


Ship it!




Ship It!

- Jayush Luniya


On Sept. 12, 2017, 4:58 p.m., Aravindan Vijayan wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62250/
> ---
> 
> (Updated Sept. 12, 2017, 4:58 p.m.)
> 
> 
> Review request for Ambari, Dmytro Sen, Jayush Luniya, and Sid Wagle.
> 
> 
> Bugs: AMBARI-21939
> https://issues.apache.org/jira/browse/AMBARI-21939
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> PROBLEM: HDFS Heatmaps are not showing data (Not Applicable) for bytes read, 
> bytes written & DataNode Process Network I/O Utilization
> 
> EXPECTED BEHAVIOUR: Heatmaps should show data
> 
> ACTUAL BEHAVIOUR: Data is being shown as Not Applicable (Grey Box)
> 
> ANALYSIS
> This is reproducible in Ambari 2.2.2 and Ambari 2.5.1.0. If you go to HDFS, 
> then click on Heatmaps, you can see the API call go to
> fields=host_components/metrics/dfs/datanode/bytes_written._rate 
> however this returns no values. If you remove ._rate then you can see the 
> values which you would expect.
> Attach one or more files to this issue
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
>  9e145c0 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/widgets.json 
> bcfb2cc 
>   ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json 
> eeb9ff8 
>   
> ambari-server/src/main/resources/stacks/PERF/1.0/services/FAKEHDFS/widgets.json
>  7a793f8 
>   
> ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
>  db6ebc1 
> 
> 
> Diff: https://reviews.apache.org/r/62250/diff/1/
> 
> 
> Testing
> ---
> 
> Manually tested.
> UpgradeCatalog260 test added.
> 
> 
> Thanks,
> 
> Aravindan Vijayan
> 
>



Re: Review Request 62250: AMBARI-21939 : Ambari HDFS Heatmaps are not showing data (Not Applicable) for bytes read, bytes written & DataNode Process Network I/O Utilization

2017-09-12 Thread Sid Wagle

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


Ship it!




Ship It!

- Sid Wagle


On Sept. 12, 2017, 4:58 p.m., Aravindan Vijayan wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62250/
> ---
> 
> (Updated Sept. 12, 2017, 4:58 p.m.)
> 
> 
> Review request for Ambari, Dmytro Sen, Jayush Luniya, and Sid Wagle.
> 
> 
> Bugs: AMBARI-21939
> https://issues.apache.org/jira/browse/AMBARI-21939
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> PROBLEM: HDFS Heatmaps are not showing data (Not Applicable) for bytes read, 
> bytes written & DataNode Process Network I/O Utilization
> 
> EXPECTED BEHAVIOUR: Heatmaps should show data
> 
> ACTUAL BEHAVIOUR: Data is being shown as Not Applicable (Grey Box)
> 
> ANALYSIS
> This is reproducible in Ambari 2.2.2 and Ambari 2.5.1.0. If you go to HDFS, 
> then click on Heatmaps, you can see the API call go to
> fields=host_components/metrics/dfs/datanode/bytes_written._rate 
> however this returns no values. If you remove ._rate then you can see the 
> values which you would expect.
> Attach one or more files to this issue
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
>  9e145c0 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/widgets.json 
> bcfb2cc 
>   ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json 
> eeb9ff8 
>   
> ambari-server/src/main/resources/stacks/PERF/1.0/services/FAKEHDFS/widgets.json
>  7a793f8 
>   
> ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
>  db6ebc1 
> 
> 
> Diff: https://reviews.apache.org/r/62250/diff/1/
> 
> 
> Testing
> ---
> 
> Manually tested.
> UpgradeCatalog260 test added.
> 
> 
> Thanks,
> 
> Aravindan Vijayan
> 
>



Re: Review Request 62125: AMBARI-21893 : NameNode Heap Usage (Daily) metric alert status flips to UNKNOWN intermittently when AMS HTTPS is enabled.

2017-09-12 Thread Sid Wagle

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


Fix it, then Ship it!





ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
Lines 101 (patched)


More redable as host.alias vs the other way.


- Sid Wagle


On Sept. 12, 2017, 7:21 p.m., Aravindan Vijayan wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62125/
> ---
> 
> (Updated Sept. 12, 2017, 7:21 p.m.)
> 
> 
> Review request for Ambari, Dmytro Sen, Jayush Luniya, and Sid Wagle.
> 
> 
> Bugs: AMBARI-21893
> https://issues.apache.org/jira/browse/AMBARI-21893
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> PROBLEM
> This issue is because of AMS HTTPS + HA scenario. The CA cert file 
> (/etc/ambari-metrics-monitor/conf/ca.pem) found on every host is generated by 
> fetching a specific metric collector host's certificate from the truststore. 
> This certificate file is being used by alert script, service check and even 
> monitors to talk to collector.
> 
> For example, in a cluster with hosts H1 to H5, let's say there are 2 
> collectors - H1 & H2.
> On a node H3, let's say the ca.pem file was constructed using the certificate 
> for collector H2.
> Service check or metric monitor on H3 will NOT be able to talk to H1 since it 
> does not have the certificate for that host.
> 
> FIX
> Import certificates from metric collectors onto the pem file, if 
> metric_truststore_alias is not specified. If the cluster has multiple 
> collectors and the same certificate is used for all the collectors, then the 
> metric_truststore_alias must be used to specify the alias to import the 
> certificate.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
>  9e145c0 
>   
> ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-ssl-client.xml
>  cac39de 
>   
> ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
>  4672501 
>   
> ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
>  071882b 
>   
> ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
>  db6ebc1 
> 
> 
> Diff: https://reviews.apache.org/r/62125/diff/2/
> 
> 
> Testing
> ---
> 
> Manually tested.
> python unit tests pass.
> 
> 
> Thanks,
> 
> Aravindan Vijayan
> 
>



Re: Review Request 62258: Stack selection page does not load the HDP stacks [Intermittent]

2017-09-12 Thread Dmytro Grinenko

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


Fix it, then Ship it!





ambari-server/src/main/java/org/apache/ambari/server/stack/StackContext.java
Line 151 (original), 159 (patched)


can we move amount of threads to constant, to make it more easy to tune in 
the future?



ambari-server/src/main/java/org/apache/ambari/server/stack/StackContext.java
Lines 219 (patched)


Looks like not used assign



ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java
Lines 1154 (patched)


This could be moved to the top of the function and be used after for the 
check?


- Dmytro Grinenko


On Sept. 12, 2017, 8:10 p.m., Nate Cole wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62258/
> ---
> 
> (Updated Sept. 12, 2017, 8:10 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Jonathan 
> Hurley.
> 
> 
> Bugs: AMBARI-21941
> https://issues.apache.org/jira/browse/AMBARI-21941
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Starting Ambari will load all the hdp_urlinfo.json and files and VDF in a 
> sequential manner.  This is all in a single-threaded Executor.  When that 
> happens, the data can take upwards of a full minute to be populated in some 
> cases.  This should be multi-threaded.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/stack/StackContext.java 
> da7f021059 
>   ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java 
> cbbe92e8cc 
>   ambari-server/src/main/java/org/apache/ambari/server/state/StackInfo.java 
> f1412f543e 
>   
> ambari-server/src/main/java/org/apache/ambari/server/state/stack/LatestRepoCallable.java
>  c43ce7c628 
>   
> ambari-server/src/main/java/org/apache/ambari/server/state/stack/RepoUrlInfoCallable.java
>  PRE-CREATION 
>   
> ambari-server/src/main/java/org/apache/ambari/server/state/stack/RepoVdfCallable.java
>  PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/62258/diff/1/
> 
> 
> Testing
> ---
> 
> This is a refactor only.  Existing tests cover the functionality needed while 
> just adding a performance boost to loading VDF.
> 
> Manual.  Automated pending.
> 
> 
> Thanks,
> 
> Nate Cole
> 
>



Review Request 62258: Stack selection page does not load the HDP stacks [Intermittent]

2017-09-12 Thread Nate Cole

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

Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Jonathan 
Hurley.


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


Repository: ambari


Description
---

Starting Ambari will load all the hdp_urlinfo.json and files and VDF in a 
sequential manner.  This is all in a single-threaded Executor.  When that 
happens, the data can take upwards of a full minute to be populated in some 
cases.  This should be multi-threaded.


Diffs
-

  ambari-server/src/main/java/org/apache/ambari/server/stack/StackContext.java 
da7f021059 
  ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java 
cbbe92e8cc 
  ambari-server/src/main/java/org/apache/ambari/server/state/StackInfo.java 
f1412f543e 
  
ambari-server/src/main/java/org/apache/ambari/server/state/stack/LatestRepoCallable.java
 c43ce7c628 
  
ambari-server/src/main/java/org/apache/ambari/server/state/stack/RepoUrlInfoCallable.java
 PRE-CREATION 
  
ambari-server/src/main/java/org/apache/ambari/server/state/stack/RepoVdfCallable.java
 PRE-CREATION 


Diff: https://reviews.apache.org/r/62258/diff/1/


Testing
---

Manual.  Automated pending.


Thanks,

Nate Cole



Re: Review Request 62245: Auto fix enhancement to remove more than 1 selected configs

2017-09-12 Thread Jonathan Hurley


> On Sept. 12, 2017, 11:59 a.m., Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
> > Lines 415-449 (patched)
> > 
> >
> > Does it make sense to just query for all configuration types which are 
> > selected more than once directly?
> > 
> > ```SELECT COUNT(type_name), type_name FROM clusterconfig WHERE selected 
> > = 1 GROUP BY type_name HAVING COUNT(type_name) > 1```
> 
> Dmitro Lisnichenko wrote:
> even if I use this query, I'll only get config type names and counts. And 
> I would still have to fetch these entities in order to modify them (set 
> selected to false)

True, but you could eliminate all of the looping and tracking to find 
duplicates with 1 SQL call.


- Jonathan


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


On Sept. 12, 2017, 10:28 a.m., Dmitro Lisnichenko wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62245/
> ---
> 
> (Updated Sept. 12, 2017, 10:28 a.m.)
> 
> 
> Review request for Ambari, Jonathan Hurley and Nate Cole.
> 
> 
> Bugs: AMBARI-21935
> https://issues.apache.org/jira/browse/AMBARI-21935
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Sometimes Ambari is coming up with issues like more than 1 selected configs.
> 
> Error:
> {noformat}
> ERROR - You have config(s), in cluster BMOHDPQA01, that is(are) selected more 
> than once in clusterconfigmapping table: 
> falcon-startup.properties,zoo.cfg,zeppelin-config,zookeeper-log4j,tagsync-application-properties,storm-worker-log4j,hive-log4j2,admin-properties,oozie-env,ssl-server,hadoop-policy,infra-solr-log4j,oozie-log4j,core-site,mahout-log4j,kafka-broker,pig-log4j,livy-env,zeppelin-env,hive-log4j,slider-client,tez-env,storm-env,ranger-storm-plugin-properties,oozie-site,falcon-env,beeline-log4j2,ranger-storm-policymgr-ssl,falcon-runtime.properties,ranger-storm-security,hbase-policy,ams-env,capacity-scheduler,webhcat-log4j,atlas-log4j,livy-log4j-properties,spark-metrics-properties,hbase-env,ranger-atlas-security,flume-env,sqoop-atlas-application.properties,admin-log4j,hiveserver2-interactive-site,ranger-tagsync-site,application-properties,ranger-kafka-policymgr-ssl,ranger-admin-site,ranger-env,ranger-storm-audit,ranger-hbase-policymgr-ssl,hdfs-log4j
> {noformat}
> 
> It is very difficult to fix these kind of issues with queries. including auto 
> fix for this will be very helpful.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
>  575485bd54 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClusterDAO.java 
> a23b914f34 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterConfigEntity.java
>  9bf03b343f 
>   
> ambari-server/src/test/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelperTest.java
>  6c6c00f947 
> 
> 
> Diff: https://reviews.apache.org/r/62245/diff/1/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Dmitro Lisnichenko
> 
>



Re: Review Request 62125: AMBARI-21893 : NameNode Heap Usage (Daily) metric alert status flips to UNKNOWN intermittently when AMS HTTPS is enabled.

2017-09-12 Thread Aravindan Vijayan

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

(Updated Sept. 12, 2017, 7:21 p.m.)


Review request for Ambari, Dmytro Sen, Jayush Luniya, and Sid Wagle.


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


Repository: ambari


Description
---

PROBLEM
This issue is because of AMS HTTPS + HA scenario. The CA cert file 
(/etc/ambari-metrics-monitor/conf/ca.pem) found on every host is generated by 
fetching a specific metric collector host's certificate from the truststore. 
This certificate file is being used by alert script, service check and even 
monitors to talk to collector.

For example, in a cluster with hosts H1 to H5, let's say there are 2 collectors 
- H1 & H2.
On a node H3, let's say the ca.pem file was constructed using the certificate 
for collector H2.
Service check or metric monitor on H3 will NOT be able to talk to H1 since it 
does not have the certificate for that host.

FIX
Import certificates from metric collectors onto the pem file, if 
metric_truststore_alias is not specified. If the cluster has multiple 
collectors and the same certificate is used for all the collectors, then the 
metric_truststore_alias must be used to specify the alias to import the 
certificate.


Diffs
-

  
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
 9e145c0 
  
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-ssl-client.xml
 cac39de 
  
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
 4672501 
  
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
 071882b 
  
ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
 db6ebc1 


Diff: https://reviews.apache.org/r/62125/diff/2/


Testing (updated)
---

Manually tested.
python unit tests pass.


Thanks,

Aravindan Vijayan



Re: Review Request 62242: Implement breadcrumbs in Background Operations modal

2017-09-12 Thread Jason Golieb

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

(Updated Sept. 12, 2017, 7:07 p.m.)


Review request for Ambari, Denys Buzhor, Jaimin Jetly, and Yusaku Sako.


Changes
---

Completed unit testing.


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


Repository: ambari


Description
---

Implement breadcrumb navigation in the Background Operations modal and the 
drill-down views within it. This also affects the use of these views in the 
High Availability wizard. The breadcrumbs will provide a better navigation 
experience within this series of dialogs, helping the user to see the context 
of the current view and to navigate back up the hierarchy more easily. It will 
also be more consistent with the overall UX of Ambari 3.0.0.


Diffs (updated)
-

  ambari-web/app/controllers/global/background_operations_controller.js 
de420b5a131 
  
ambari-web/app/controllers/main/admin/highAvailability/progress_popup_controller.js
 4cbe59b020c 
  ambari-web/app/messages.js 87a5e97a68d 
  ambari-web/app/styles/modal_popups.less f7fe88be71d 
  ambari-web/app/templates/common/breadcrumbs.hbs 89353d9f065 
  ambari-web/app/templates/common/host_progress_popup.hbs 03c014cefa0 
  ambari-web/app/utils/host_progress_popup.js 5bd02cd76de 
  ambari-web/app/views/common/breadcrumbs_view.js e35a1965215 
  ambari-web/app/views/common/host_progress_popup_body_view.js 057f8bcf3c4 
  ambari-web/test/controllers/global/background_operations_test.js 4a8235c484b 
  
ambari-web/test/controllers/main/admin/highAvailability/progress_popup_controller_test.js
 364d9b0b451 
  ambari-web/test/utils/host_progress_popup_test.js dea2666fd47 
  ambari-web/test/views/common/breadcrumbs_view_test.js eff19f63b88 
  ambari-web/test/views/common/host_progress_popup_body_view_test.js 
5ccc0245101 


Diff: https://reviews.apache.org/r/62242/diff/2/

Changes: https://reviews.apache.org/r/62242/diff/1-2/


Testing (updated)
---

21293 passing


Thanks,

Jason Golieb



Re: Review Request 62249: Do not export YARN_CONF_DIR in 'yarn-env.sh' file

2017-09-12 Thread Swapan Shridhar

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


Ship it!




Ship It!

- Swapan Shridhar


On Sept. 12, 2017, 4:47 p.m., Vitalyi Brodetskyi wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62249/
> ---
> 
> (Updated Sept. 12, 2017, 4:47 p.m.)
> 
> 
> Review request for Ambari, Jayush Luniya and Swapan Shridhar.
> 
> 
> Bugs: AMBARI-21936
> https://issues.apache.org/jira/browse/AMBARI-21936
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> yarn-env.sh exports YARN_CONF_DIR 
> {code:title=yarn-env.sh}
># resolve links - $0 may be a softlink
>   export YARN_CONF_DIR="${YARN_CONF_DIR:-$HADOOP_YARN_HOME/conf}"
> {code}
> 
> This causes in not respecting --config option for yarn daemon.
> Hence please remove the export
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/configuration/yarn-env.xml
>  aaa72d1 
> 
> 
> Diff: https://reviews.apache.org/r/62249/diff/2/
> 
> 
> Testing
> ---
> 
> TODO
> 
> 
> Thanks,
> 
> Vitalyi Brodetskyi
> 
>



Re: Review Request 62245: Auto fix enhancement to remove more than 1 selected configs

2017-09-12 Thread Dmitro Lisnichenko


> On Sept. 12, 2017, 6:59 p.m., Jonathan Hurley wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
> > Lines 415-449 (patched)
> > 
> >
> > Does it make sense to just query for all configuration types which are 
> > selected more than once directly?
> > 
> > ```SELECT COUNT(type_name), type_name FROM clusterconfig WHERE selected 
> > = 1 GROUP BY type_name HAVING COUNT(type_name) > 1```

even if I use this query, I'll only get config type names and counts. And I 
would still have to fetch these entities in order to modify them (set selected 
to false)


- Dmitro


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


On Sept. 12, 2017, 5:28 p.m., Dmitro Lisnichenko wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62245/
> ---
> 
> (Updated Sept. 12, 2017, 5:28 p.m.)
> 
> 
> Review request for Ambari, Jonathan Hurley and Nate Cole.
> 
> 
> Bugs: AMBARI-21935
> https://issues.apache.org/jira/browse/AMBARI-21935
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Sometimes Ambari is coming up with issues like more than 1 selected configs.
> 
> Error:
> {noformat}
> ERROR - You have config(s), in cluster BMOHDPQA01, that is(are) selected more 
> than once in clusterconfigmapping table: 
> falcon-startup.properties,zoo.cfg,zeppelin-config,zookeeper-log4j,tagsync-application-properties,storm-worker-log4j,hive-log4j2,admin-properties,oozie-env,ssl-server,hadoop-policy,infra-solr-log4j,oozie-log4j,core-site,mahout-log4j,kafka-broker,pig-log4j,livy-env,zeppelin-env,hive-log4j,slider-client,tez-env,storm-env,ranger-storm-plugin-properties,oozie-site,falcon-env,beeline-log4j2,ranger-storm-policymgr-ssl,falcon-runtime.properties,ranger-storm-security,hbase-policy,ams-env,capacity-scheduler,webhcat-log4j,atlas-log4j,livy-log4j-properties,spark-metrics-properties,hbase-env,ranger-atlas-security,flume-env,sqoop-atlas-application.properties,admin-log4j,hiveserver2-interactive-site,ranger-tagsync-site,application-properties,ranger-kafka-policymgr-ssl,ranger-admin-site,ranger-env,ranger-storm-audit,ranger-hbase-policymgr-ssl,hdfs-log4j
> {noformat}
> 
> It is very difficult to fix these kind of issues with queries. including auto 
> fix for this will be very helpful.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
>  575485bd54 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClusterDAO.java 
> a23b914f34 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterConfigEntity.java
>  9bf03b343f 
>   
> ambari-server/src/test/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelperTest.java
>  6c6c00f947 
> 
> 
> Diff: https://reviews.apache.org/r/62245/diff/1/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Dmitro Lisnichenko
> 
>



Re: Review Request 62125: AMBARI-21893 : NameNode Heap Usage (Daily) metric alert status flips to UNKNOWN intermittently when AMS HTTPS is enabled.

2017-09-12 Thread Aravindan Vijayan

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

(Updated Sept. 12, 2017, 6:25 p.m.)


Review request for Ambari, Dmytro Sen, Jayush Luniya, and Sid Wagle.


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


Repository: ambari


Description
---

PROBLEM
This issue is because of AMS HTTPS + HA scenario. The CA cert file 
(/etc/ambari-metrics-monitor/conf/ca.pem) found on every host is generated by 
fetching a specific metric collector host's certificate from the truststore. 
This certificate file is being used by alert script, service check and even 
monitors to talk to collector.

For example, in a cluster with hosts H1 to H5, let's say there are 2 collectors 
- H1 & H2.
On a node H3, let's say the ca.pem file was constructed using the certificate 
for collector H2.
Service check or metric monitor on H3 will NOT be able to talk to H1 since it 
does not have the certificate for that host.

FIX
Import certificates from metric collectors onto the pem file, if 
metric_truststore_alias is not specified. If the cluster has multiple 
collectors and the same certificate is used for all the collectors, then the 
metric_truststore_alias must be used to specify the alias to import the 
certificate.


Diffs
-

  
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
 9e145c0 
  
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-ssl-client.xml
 cac39de 
  
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
 4672501 
  
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
 071882b 
  
ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
 db6ebc1 


Diff: https://reviews.apache.org/r/62125/diff/2/


Testing (updated)
---

Manually testing pending..
python unit tests pass.


Thanks,

Aravindan Vijayan



Re: Review Request 62125: AMBARI-21893 : NameNode Heap Usage (Daily) metric alert status flips to UNKNOWN intermittently when AMS HTTPS is enabled.

2017-09-12 Thread Aravindan Vijayan

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

(Updated Sept. 12, 2017, 6:25 p.m.)


Review request for Ambari, Dmytro Sen, Jayush Luniya, and Sid Wagle.


Changes
---

Fixed review issue.


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


Repository: ambari


Description
---

PROBLEM
This issue is because of AMS HTTPS + HA scenario. The CA cert file 
(/etc/ambari-metrics-monitor/conf/ca.pem) found on every host is generated by 
fetching a specific metric collector host's certificate from the truststore. 
This certificate file is being used by alert script, service check and even 
monitors to talk to collector.

For example, in a cluster with hosts H1 to H5, let's say there are 2 collectors 
- H1 & H2.
On a node H3, let's say the ca.pem file was constructed using the certificate 
for collector H2.
Service check or metric monitor on H3 will NOT be able to talk to H1 since it 
does not have the certificate for that host.

FIX
Import certificates from metric collectors onto the pem file, if 
metric_truststore_alias is not specified. If the cluster has multiple 
collectors and the same certificate is used for all the collectors, then the 
metric_truststore_alias must be used to specify the alias to import the 
certificate.


Diffs (updated)
-

  
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
 9e145c0 
  
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-ssl-client.xml
 cac39de 
  
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
 4672501 
  
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
 071882b 
  
ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
 db6ebc1 


Diff: https://reviews.apache.org/r/62125/diff/2/

Changes: https://reviews.apache.org/r/62125/diff/1-2/


Testing
---

Manually tested.
python unit tests pass.


Thanks,

Aravindan Vijayan



Re: Review Request 62235: Some clients are being additionally installed via Add service wizard

2017-09-12 Thread Yusaku Sako

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


Ship it!




Ship It!

- Yusaku Sako


On Sept. 12, 2017, 4:38 p.m., Jaimin Jetly wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62235/
> ---
> 
> (Updated Sept. 12, 2017, 4:38 p.m.)
> 
> 
> Review request for Ambari, Ishan Bhatt, Vivek Ratnavel Subramanian, and 
> Yusaku Sako.
> 
> 
> Bugs: AMBARI-21932
> https://issues.apache.org/jira/browse/AMBARI-21932
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Some clients are shown as installed for a hosts page even when they have not 
> been installed through ambari
> 
> On an installed cluster:
> 1) Add a host with no clients
> 2) Now add a service with clients on all hosts (including the newely added 
> host)
> 3) On the newely added host, only one client is expected(from the newely 
> added service) to be shown but actually other clients are also present as well
> 
> 
> Diffs
> -
> 
>   ambari-web/app/controllers/wizard/step8_controller.js e0c2f5d1d0 
> 
> 
> Diff: https://reviews.apache.org/r/62235/diff/1/
> 
> 
> Testing
> ---
> 
> Manually tested that the patch fixes the issue.
> 
> ambari-web unit test result:
> 
>   30489 passing (20s)
>   157 pending
> 
> 
> Thanks,
> 
> Jaimin Jetly
> 
>



Re: Review Request 62250: AMBARI-21939 : Ambari HDFS Heatmaps are not showing data (Not Applicable) for bytes read, bytes written & DataNode Process Network I/O Utilization

2017-09-12 Thread Aravindan Vijayan


> On Sept. 12, 2017, 5:07 p.m., Dmytro Sen wrote:
> > ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/widgets.json
> > Line 340 (original), 340 (patched)
> > 
> >
> > Make sure to update the same for HDP 3.0 in trunk 
> > (../HDFS/3.0.0.3.0/widgets.json)

Dmytro, I have created a patch for trunk and attached to the jira. There were 
some differences in the widget definition in the trunk branch. I did not need 
to make changes to any of the HDFS stack widget definition files.


- Aravindan


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


On Sept. 12, 2017, 4:58 p.m., Aravindan Vijayan wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62250/
> ---
> 
> (Updated Sept. 12, 2017, 4:58 p.m.)
> 
> 
> Review request for Ambari, Dmytro Sen, Jayush Luniya, and Sid Wagle.
> 
> 
> Bugs: AMBARI-21939
> https://issues.apache.org/jira/browse/AMBARI-21939
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> PROBLEM: HDFS Heatmaps are not showing data (Not Applicable) for bytes read, 
> bytes written & DataNode Process Network I/O Utilization
> 
> EXPECTED BEHAVIOUR: Heatmaps should show data
> 
> ACTUAL BEHAVIOUR: Data is being shown as Not Applicable (Grey Box)
> 
> ANALYSIS
> This is reproducible in Ambari 2.2.2 and Ambari 2.5.1.0. If you go to HDFS, 
> then click on Heatmaps, you can see the API call go to
> fields=host_components/metrics/dfs/datanode/bytes_written._rate 
> however this returns no values. If you remove ._rate then you can see the 
> values which you would expect.
> Attach one or more files to this issue
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
>  9e145c0 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/widgets.json 
> bcfb2cc 
>   ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json 
> eeb9ff8 
>   
> ambari-server/src/main/resources/stacks/PERF/1.0/services/FAKEHDFS/widgets.json
>  7a793f8 
>   
> ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
>  db6ebc1 
> 
> 
> Diff: https://reviews.apache.org/r/62250/diff/1/
> 
> 
> Testing
> ---
> 
> Manually tested.
> UpgradeCatalog260 test added.
> 
> 
> Thanks,
> 
> Aravindan Vijayan
> 
>



Re: Review Request 62250: AMBARI-21939 : Ambari HDFS Heatmaps are not showing data (Not Applicable) for bytes read, bytes written & DataNode Process Network I/O Utilization

2017-09-12 Thread Dmytro Sen

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




ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/widgets.json
Line 340 (original), 340 (patched)


Make sure to update the same for HDP 3.0 in trunk 
(../HDFS/3.0.0.3.0/widgets.json)


- Dmytro Sen


On Sept. 12, 2017, 4:58 p.m., Aravindan Vijayan wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62250/
> ---
> 
> (Updated Sept. 12, 2017, 4:58 p.m.)
> 
> 
> Review request for Ambari, Dmytro Sen, Jayush Luniya, and Sid Wagle.
> 
> 
> Bugs: AMBARI-21939
> https://issues.apache.org/jira/browse/AMBARI-21939
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> PROBLEM: HDFS Heatmaps are not showing data (Not Applicable) for bytes read, 
> bytes written & DataNode Process Network I/O Utilization
> 
> EXPECTED BEHAVIOUR: Heatmaps should show data
> 
> ACTUAL BEHAVIOUR: Data is being shown as Not Applicable (Grey Box)
> 
> ANALYSIS
> This is reproducible in Ambari 2.2.2 and Ambari 2.5.1.0. If you go to HDFS, 
> then click on Heatmaps, you can see the API call go to
> fields=host_components/metrics/dfs/datanode/bytes_written._rate 
> however this returns no values. If you remove ._rate then you can see the 
> values which you would expect.
> Attach one or more files to this issue
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
>  9e145c0 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/widgets.json 
> bcfb2cc 
>   ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json 
> eeb9ff8 
>   
> ambari-server/src/main/resources/stacks/PERF/1.0/services/FAKEHDFS/widgets.json
>  7a793f8 
>   
> ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
>  db6ebc1 
> 
> 
> Diff: https://reviews.apache.org/r/62250/diff/1/
> 
> 
> Testing
> ---
> 
> Manually tested.
> UpgradeCatalog260 test added.
> 
> 
> Thanks,
> 
> Aravindan Vijayan
> 
>



Re: Review Request 62245: Auto fix enhancement to remove more than 1 selected configs

2017-09-12 Thread Nate Cole

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


Ship it!




Ship It!

- Nate Cole


On Sept. 12, 2017, 10:28 a.m., Dmitro Lisnichenko wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62245/
> ---
> 
> (Updated Sept. 12, 2017, 10:28 a.m.)
> 
> 
> Review request for Ambari, Jonathan Hurley and Nate Cole.
> 
> 
> Bugs: AMBARI-21935
> https://issues.apache.org/jira/browse/AMBARI-21935
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Sometimes Ambari is coming up with issues like more than 1 selected configs.
> 
> Error:
> {noformat}
> ERROR - You have config(s), in cluster BMOHDPQA01, that is(are) selected more 
> than once in clusterconfigmapping table: 
> falcon-startup.properties,zoo.cfg,zeppelin-config,zookeeper-log4j,tagsync-application-properties,storm-worker-log4j,hive-log4j2,admin-properties,oozie-env,ssl-server,hadoop-policy,infra-solr-log4j,oozie-log4j,core-site,mahout-log4j,kafka-broker,pig-log4j,livy-env,zeppelin-env,hive-log4j,slider-client,tez-env,storm-env,ranger-storm-plugin-properties,oozie-site,falcon-env,beeline-log4j2,ranger-storm-policymgr-ssl,falcon-runtime.properties,ranger-storm-security,hbase-policy,ams-env,capacity-scheduler,webhcat-log4j,atlas-log4j,livy-log4j-properties,spark-metrics-properties,hbase-env,ranger-atlas-security,flume-env,sqoop-atlas-application.properties,admin-log4j,hiveserver2-interactive-site,ranger-tagsync-site,application-properties,ranger-kafka-policymgr-ssl,ranger-admin-site,ranger-env,ranger-storm-audit,ranger-hbase-policymgr-ssl,hdfs-log4j
> {noformat}
> 
> It is very difficult to fix these kind of issues with queries. including auto 
> fix for this will be very helpful.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
>  575485bd54 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClusterDAO.java 
> a23b914f34 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterConfigEntity.java
>  9bf03b343f 
>   
> ambari-server/src/test/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelperTest.java
>  6c6c00f947 
> 
> 
> Diff: https://reviews.apache.org/r/62245/diff/1/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Dmitro Lisnichenko
> 
>



Re: Review Request 62245: Auto fix enhancement to remove more than 1 selected configs

2017-09-12 Thread Nate Cole

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




ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
Lines 415-449 (patched)


+1 for this.  Fix-then-ship


- Nate Cole


On Sept. 12, 2017, 10:28 a.m., Dmitro Lisnichenko wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62245/
> ---
> 
> (Updated Sept. 12, 2017, 10:28 a.m.)
> 
> 
> Review request for Ambari, Jonathan Hurley and Nate Cole.
> 
> 
> Bugs: AMBARI-21935
> https://issues.apache.org/jira/browse/AMBARI-21935
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Sometimes Ambari is coming up with issues like more than 1 selected configs.
> 
> Error:
> {noformat}
> ERROR - You have config(s), in cluster BMOHDPQA01, that is(are) selected more 
> than once in clusterconfigmapping table: 
> falcon-startup.properties,zoo.cfg,zeppelin-config,zookeeper-log4j,tagsync-application-properties,storm-worker-log4j,hive-log4j2,admin-properties,oozie-env,ssl-server,hadoop-policy,infra-solr-log4j,oozie-log4j,core-site,mahout-log4j,kafka-broker,pig-log4j,livy-env,zeppelin-env,hive-log4j,slider-client,tez-env,storm-env,ranger-storm-plugin-properties,oozie-site,falcon-env,beeline-log4j2,ranger-storm-policymgr-ssl,falcon-runtime.properties,ranger-storm-security,hbase-policy,ams-env,capacity-scheduler,webhcat-log4j,atlas-log4j,livy-log4j-properties,spark-metrics-properties,hbase-env,ranger-atlas-security,flume-env,sqoop-atlas-application.properties,admin-log4j,hiveserver2-interactive-site,ranger-tagsync-site,application-properties,ranger-kafka-policymgr-ssl,ranger-admin-site,ranger-env,ranger-storm-audit,ranger-hbase-policymgr-ssl,hdfs-log4j
> {noformat}
> 
> It is very difficult to fix these kind of issues with queries. including auto 
> fix for this will be very helpful.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
>  575485bd54 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClusterDAO.java 
> a23b914f34 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterConfigEntity.java
>  9bf03b343f 
>   
> ambari-server/src/test/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelperTest.java
>  6c6c00f947 
> 
> 
> Diff: https://reviews.apache.org/r/62245/diff/1/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Dmitro Lisnichenko
> 
>



Re: Review Request 62249: Do not export YARN_CONF_DIR in 'yarn-env.sh' file

2017-09-12 Thread Jayush Luniya

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


Ship it!




Ship It!

- Jayush Luniya


On Sept. 12, 2017, 4:47 p.m., Vitalyi Brodetskyi wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62249/
> ---
> 
> (Updated Sept. 12, 2017, 4:47 p.m.)
> 
> 
> Review request for Ambari, Jayush Luniya and Swapan Shridhar.
> 
> 
> Bugs: AMBARI-21936
> https://issues.apache.org/jira/browse/AMBARI-21936
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> yarn-env.sh exports YARN_CONF_DIR 
> {code:title=yarn-env.sh}
># resolve links - $0 may be a softlink
>   export YARN_CONF_DIR="${YARN_CONF_DIR:-$HADOOP_YARN_HOME/conf}"
> {code}
> 
> This causes in not respecting --config option for yarn daemon.
> Hence please remove the export
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/configuration/yarn-env.xml
>  aaa72d1 
> 
> 
> Diff: https://reviews.apache.org/r/62249/diff/2/
> 
> 
> Testing
> ---
> 
> TODO
> 
> 
> Thanks,
> 
> Vitalyi Brodetskyi
> 
>



Review Request 62250: AMBARI-21939 : Ambari HDFS Heatmaps are not showing data (Not Applicable) for bytes read, bytes written & DataNode Process Network I/O Utilization

2017-09-12 Thread Aravindan Vijayan

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

Review request for Ambari, Dmytro Sen, Jayush Luniya, and Sid Wagle.


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


Repository: ambari


Description
---

PROBLEM: HDFS Heatmaps are not showing data (Not Applicable) for bytes read, 
bytes written & DataNode Process Network I/O Utilization

EXPECTED BEHAVIOUR: Heatmaps should show data

ACTUAL BEHAVIOUR: Data is being shown as Not Applicable (Grey Box)

ANALYSIS
This is reproducible in Ambari 2.2.2 and Ambari 2.5.1.0. If you go to HDFS, 
then click on Heatmaps, you can see the API call go to
fields=host_components/metrics/dfs/datanode/bytes_written._rate 
however this returns no values. If you remove ._rate then you can see the 
values which you would expect.
Attach one or more files to this issue


Diffs
-

  
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog260.java
 9e145c0 
  ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/widgets.json 
bcfb2cc 
  ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json 
eeb9ff8 
  
ambari-server/src/main/resources/stacks/PERF/1.0/services/FAKEHDFS/widgets.json 
7a793f8 
  
ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
 db6ebc1 


Diff: https://reviews.apache.org/r/62250/diff/1/


Testing
---

Manually tested.
UpgradeCatalog260 test added.


Thanks,

Aravindan Vijayan



Re: Review Request 62249: Do not export YARN_CONF_DIR in 'yarn-env.sh' file

2017-09-12 Thread Vitalyi Brodetskyi

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

(Updated Вер. 12, 2017, 4:47 після полудня)


Review request for Ambari, Jayush Luniya and Swapan Shridhar.


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


Repository: ambari


Description
---

yarn-env.sh exports YARN_CONF_DIR 
{code:title=yarn-env.sh}
   # resolve links - $0 may be a softlink
  export YARN_CONF_DIR="${YARN_CONF_DIR:-$HADOOP_YARN_HOME/conf}"
{code}

This causes in not respecting --config option for yarn daemon.
Hence please remove the export


Diffs (updated)
-

  
ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/configuration/yarn-env.xml
 aaa72d1 


Diff: https://reviews.apache.org/r/62249/diff/2/

Changes: https://reviews.apache.org/r/62249/diff/1-2/


Testing
---

TODO


Thanks,

Vitalyi Brodetskyi



Re: Review Request 62235: Some clients are being additionally installed via Add service wizard

2017-09-12 Thread Jaimin Jetly

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

(Updated Sept. 12, 2017, 4:38 p.m.)


Review request for Ambari, Ishan Bhatt, Vivek Ratnavel Subramanian, and Yusaku 
Sako.


Summary (updated)
-

Some clients are being additionally installed via Add service wizard 


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


Repository: ambari


Description
---

Some clients are shown as installed for a hosts page even when they have not 
been installed through ambari

On an installed cluster:
1) Add a host with no clients
2) Now add a service with clients on all hosts (including the newely added host)
3) On the newely added host, only one client is expected(from the newely added 
service) to be shown but actually other clients are also present as well


Diffs
-

  ambari-web/app/controllers/wizard/step8_controller.js e0c2f5d1d0 


Diff: https://reviews.apache.org/r/62235/diff/1/


Testing
---

Manually tested that the patch fixes the issue.

ambari-web unit test result:

  30489 passing (20s)
  157 pending


Thanks,

Jaimin Jetly



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Jonathan Hurley


> On Sept. 12, 2017, 12:02 p.m., Dmytro Grinenko wrote:
> > ambari-server/src/test/python/stacks/utils/RMFTestCase.py
> > Line 142 (original), 142 (patched)
> > 
> >
> > i like this way more than that big "stairs"

Eventually, we'd be off the page, so I figured I'd just fix it now...


- Jonathan


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


On Sept. 12, 2017, 11:50 a.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 12, 2017, 11:50 a.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java
>  6a2d58d24c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/4/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Dmytro Grinenko

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


Ship it!




Ship It!

- Dmytro Grinenko


On Sept. 12, 2017, 3:50 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 12, 2017, 3:50 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java
>  6a2d58d24c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/4/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Dmytro Grinenko

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




ambari-server/src/test/python/stacks/utils/RMFTestCase.py
Line 142 (original), 142 (patched)


i like this way more than that big "stairs"


- Dmytro Grinenko


On Sept. 12, 2017, 3:50 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 12, 2017, 3:50 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java
>  6a2d58d24c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/4/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62182: Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead it should set the zookeeper quorum.

2017-09-12 Thread Robert Levas

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


Ship it!




Ship It!

- Robert Levas


On Sept. 12, 2017, 11:18 a.m., Sebastian Toader wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62182/
> ---
> 
> (Updated Sept. 12, 2017, 11:18 a.m.)
> 
> 
> Review request for Ambari, Attila Magyar, Ayub Pathan, Robert Levas, and 
> Sandor Magyari.
> 
> 
> Bugs: AMBARI-21902
> https://issues.apache.org/jira/browse/AMBARI-21902
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead 
> it should set to zookeeper quorum. The property updater in the blueprint 
> processor responsible for resolving this property needed to be reconfigured 
> to set this property to zookeeper server host name.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
>  3538945 
>   
> ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java
>  734dd7e 
> 
> 
> Diff: https://reviews.apache.org/r/62182/diff/2/
> 
> 
> Testing
> ---
> 
> Manual testing cluster creation using blueprints.
> Testing Blueprint export.
> 
> Unit tests:
> [INFO] Results:
> [INFO] 
> [WARNING] Tests run: 4870, Failures: 0, Errors: 0, Skipped: 37
> 
> 
> Thanks,
> 
> Sebastian Toader
> 
>



Re: Review Request 62182: Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead it should set the zookeeper quorum.

2017-09-12 Thread Ayub Pathan

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


Ship it!




- Ayub Pathan


On Sept. 12, 2017, 3:18 p.m., Sebastian Toader wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62182/
> ---
> 
> (Updated Sept. 12, 2017, 3:18 p.m.)
> 
> 
> Review request for Ambari, Attila Magyar, Ayub Pathan, Robert Levas, and 
> Sandor Magyari.
> 
> 
> Bugs: AMBARI-21902
> https://issues.apache.org/jira/browse/AMBARI-21902
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead 
> it should set to zookeeper quorum. The property updater in the blueprint 
> processor responsible for resolving this property needed to be reconfigured 
> to set this property to zookeeper server host name.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
>  3538945 
>   
> ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java
>  734dd7e 
> 
> 
> Diff: https://reviews.apache.org/r/62182/diff/2/
> 
> 
> Testing
> ---
> 
> Manual testing cluster creation using blueprints.
> Testing Blueprint export.
> 
> Unit tests:
> [INFO] Results:
> [INFO] 
> [WARNING] Tests run: 4870, Failures: 0, Errors: 0, Skipped: 37
> 
> 
> Thanks,
> 
> Sebastian Toader
> 
>



Re: Review Request 62245: Auto fix enhancement to remove more than 1 selected configs

2017-09-12 Thread Jonathan Hurley

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




ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
Lines 415-449 (patched)


Does it make sense to just query for all configuration types which are 
selected more than once directly?

```SELECT COUNT(type_name), type_name FROM clusterconfig WHERE selected = 1 
GROUP BY type_name HAVING COUNT(type_name) > 1```


- Jonathan Hurley


On Sept. 12, 2017, 10:28 a.m., Dmitro Lisnichenko wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62245/
> ---
> 
> (Updated Sept. 12, 2017, 10:28 a.m.)
> 
> 
> Review request for Ambari, Jonathan Hurley and Nate Cole.
> 
> 
> Bugs: AMBARI-21935
> https://issues.apache.org/jira/browse/AMBARI-21935
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Sometimes Ambari is coming up with issues like more than 1 selected configs.
> 
> Error:
> {noformat}
> ERROR - You have config(s), in cluster BMOHDPQA01, that is(are) selected more 
> than once in clusterconfigmapping table: 
> falcon-startup.properties,zoo.cfg,zeppelin-config,zookeeper-log4j,tagsync-application-properties,storm-worker-log4j,hive-log4j2,admin-properties,oozie-env,ssl-server,hadoop-policy,infra-solr-log4j,oozie-log4j,core-site,mahout-log4j,kafka-broker,pig-log4j,livy-env,zeppelin-env,hive-log4j,slider-client,tez-env,storm-env,ranger-storm-plugin-properties,oozie-site,falcon-env,beeline-log4j2,ranger-storm-policymgr-ssl,falcon-runtime.properties,ranger-storm-security,hbase-policy,ams-env,capacity-scheduler,webhcat-log4j,atlas-log4j,livy-log4j-properties,spark-metrics-properties,hbase-env,ranger-atlas-security,flume-env,sqoop-atlas-application.properties,admin-log4j,hiveserver2-interactive-site,ranger-tagsync-site,application-properties,ranger-kafka-policymgr-ssl,ranger-admin-site,ranger-env,ranger-storm-audit,ranger-hbase-policymgr-ssl,hdfs-log4j
> {noformat}
> 
> It is very difficult to fix these kind of issues with queries. including auto 
> fix for this will be very helpful.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
>  575485bd54 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClusterDAO.java 
> a23b914f34 
>   
> ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterConfigEntity.java
>  9bf03b343f 
>   
> ambari-server/src/test/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelperTest.java
>  6c6c00f947 
> 
> 
> Diff: https://reviews.apache.org/r/62245/diff/1/
> 
> 
> Testing
> ---
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Dmitro Lisnichenko
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Jonathan Hurley

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

(Updated Sept. 12, 2017, 11:50 a.m.)


Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.


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


Repository: ambari


Description
---

There are several "INVALID" types listed in the stack_packages.json file. These 
were placeholders that need to be updated with the packages exposed by the 
stack-select tool. 

{code}
...
"HDFS_CLIENT": {
  "STACK-SELECT-PACKAGE": "hadoop-client",
  "INSTALL": [
"hadoop-client"
  ],
  "PATCH": [
"INVALID"
  ],
  "STANDARD": [
"hadoop-client"
  ]
},
...
{code}


Diffs (updated)
-

  
ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
 eac1bef13c 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java
 6a2d58d24c 
  
ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
 704fb54293 
  ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
  ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 


Diff: https://reviews.apache.org/r/62226/diff/4/

Changes: https://reviews.apache.org/r/62226/diff/3-4/


Testing
---

--
Total run:1191
Total errors:0
Total failures:0
OK
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 58.379 s
[INFO] Finished at: 2017-09-11T16:25:26-04:00
[INFO] Final Memory: 21M/619M
[INFO] 


Thanks,

Jonathan Hurley



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Jonathan Hurley


> On Sept. 12, 2017, 11:42 a.m., Dmytro Grinenko wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
> > Lines 126 (patched)
> > 
> >
> > if not supported_packages:
> >supported_packages = get_supported_packages()
> >
> >
> >  else no sence on this
> 
> Dmytro Grinenko wrote:
> sense*

Ugh - stupid patch didn't have staged changes ... 1 sec.


- Jonathan


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


On Sept. 12, 2017, 10:21 a.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 12, 2017, 10:21 a.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/3/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Dmytro Grinenko


> On Sept. 12, 2017, 3:42 p.m., Dmytro Grinenko wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
> > Lines 126 (patched)
> > 
> >
> > if not supported_packages:
> >supported_packages = get_supported_packages()
> >
> >
> >  else no sence on this

sense*


- Dmytro


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


On Sept. 12, 2017, 2:21 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 12, 2017, 2:21 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/3/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Dmytro Grinenko

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




ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
Lines 126 (patched)


if not supported_packages:
   supported_packages = get_supported_packages()
   
   
 else no sence on this


- Dmytro Grinenko


On Sept. 12, 2017, 2:21 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 12, 2017, 2:21 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/3/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Dmytro Grinenko

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


Ship it!




Ship It!

- Dmytro Grinenko


On Sept. 12, 2017, 2:21 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 12, 2017, 2:21 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/3/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Dmytro Grinenko


> On Sept. 12, 2017, 1:07 p.m., Dmytro Grinenko wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
> > Lines 145 (patched)
> > 
> >
> > while map function is present in python, using generators is more 
> > prefferable
> 
> Jonathan Hurley wrote:
> I've never used generators before - the syntax looks a bit cumbersome for 
> what's needed here. Can you provide an example of what a generator to trim a 
> string would look like?
> 
> Dmytro Grinenko wrote:
> return (s.strip() for s in stdout.splitlines())# this would return 
> gerator, which supports iterative interface
> 
> pros:
>  - actuall method execution would be issues only when you will call 
> iterator, each result would return via "yield" (code would run only once)
> 
> cons:
>  - this would be not list, so no index accessing and only one cycle
> 
> return [s.strip() for s in stdout.splitlines()]# this would return 
> list
>  - this will return list
> 
> Dmytro Grinenko wrote:
> however for python36, it looks that map is faster that list comphersation 
> :)
> 
> Jonathan Hurley wrote:
> Hah! I changed it. If you'd like me to switch it back, let me know.

sience the day, when we will move to python 3.x is even not on horizon, it is 
fine to stay with generators/list comphersation


- Dmytro


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


On Sept. 12, 2017, 2:21 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 12, 2017, 2:21 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/3/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 61898: Create Utility Script to support Solr Collection Data Retention/Purging/Archiving

2017-09-12 Thread Miklos Gergely

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

(Updated Sept. 12, 2017, 3:30 p.m.)


Review request for Ambari, Oliver Szabo and Robert Nettleton.


Changes
---

allow user to add additional filters
allow user to specify the name of the archive
support tar.bz2
generate data with json.dumps
fix typos


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


Repository: ambari


Description
---

This script allows the user to set an end date, and save all the previous log 
entries into HDFS or S3


Diffs (updated)
-

  ambari-infra/ambari-infra-solr-client/build.xml 9b8b6cc 
  ambari-infra/ambari-infra-solr-client/pom.xml 3818aba 
  
ambari-infra/ambari-infra-solr-client/src/main/java/org/apache/ambari/infra/solr/S3Uploader.java
 PRE-CREATION 
  ambari-infra/ambari-infra-solr-client/src/main/python/solrDataManager.py 
PRE-CREATION 


Diff: https://reviews.apache.org/r/61898/diff/7/

Changes: https://reviews.apache.org/r/61898/diff/6-7/


Testing
---

Tested on local cluster with
- SSL
- kerberos
- interrupted, then restarted script
- HDFS
- S3
- the combinations of the above


Thanks,

Miklos Gergely



Re: Review Request 62182: Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead it should set the zookeeper quorum.

2017-09-12 Thread Sebastian Toader

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

(Updated Sept. 12, 2017, 5:18 p.m.)


Review request for Ambari, Attila Magyar, Ayub Pathan, Robert Levas, and Sandor 
Magyari.


Changes
---

Uploaded newer version of the patch.


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


Repository: ambari


Description
---

Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead it 
should set to zookeeper quorum. The property updater in the blueprint processor 
responsible for resolving this property needed to be reconfigured to set this 
property to zookeeper server host name.


Diffs (updated)
-

  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
 3538945 
  
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java
 734dd7e 


Diff: https://reviews.apache.org/r/62182/diff/2/

Changes: https://reviews.apache.org/r/62182/diff/1-2/


Testing
---

Manual testing cluster creation using blueprints.
Testing Blueprint export.

Unit tests:
[INFO] Results:
[INFO] 
[WARNING] Tests run: 4870, Failures: 0, Errors: 0, Skipped: 37


Thanks,

Sebastian Toader



Review Request 62249: Do not export YARN_CONF_DIR in 'yarn-env.sh' file

2017-09-12 Thread Vitalyi Brodetskyi

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

Review request for Ambari, Jayush Luniya and Swapan Shridhar.


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


Repository: ambari


Description
---

yarn-env.sh exports YARN_CONF_DIR 
{code:title=yarn-env.sh}
   # resolve links - $0 may be a softlink
  export YARN_CONF_DIR="${YARN_CONF_DIR:-$HADOOP_YARN_HOME/conf}"
{code}

This causes in not respecting --config option for yarn daemon.
Hence please remove the export


Diffs
-

  
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog300.java
 bfe2a13 
  
ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/configuration/yarn-env.xml
 aaa72d1 
  
ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-env.xml
 121a81d 


Diff: https://reviews.apache.org/r/62249/diff/1/


Testing
---

TODO


Thanks,

Vitalyi Brodetskyi



Re: Review Request 62182: Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead it should set the zookeeper quorum.

2017-09-12 Thread Ayub Pathan

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



I dont see UTs added for BlueprintConfigurationProcessor.java. But the patch 
attached to the jira has the tests changes as well. Please check.

- Ayub Pathan


On Sept. 12, 2017, 2:57 p.m., Sebastian Toader wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62182/
> ---
> 
> (Updated Sept. 12, 2017, 2:57 p.m.)
> 
> 
> Review request for Ambari, Attila Magyar, Ayub Pathan, Robert Levas, and 
> Sandor Magyari.
> 
> 
> Bugs: AMBARI-21902
> https://issues.apache.org/jira/browse/AMBARI-21902
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead 
> it should set to zookeeper quorum. The property updater in the blueprint 
> processor responsible for resolving this property needed to be reconfigured 
> to set this property to zookeeper server host name.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
>  ab6a586 
> 
> 
> Diff: https://reviews.apache.org/r/62182/diff/1/
> 
> 
> Testing
> ---
> 
> Manual testing cluster creation using blueprints.
> Testing Blueprint export.
> 
> Unit tests:
> [INFO] Results:
> [INFO] 
> [WARNING] Tests run: 4870, Failures: 0, Errors: 0, Skipped: 37
> 
> 
> Thanks,
> 
> Sebastian Toader
> 
>



Re: Review Request 62182: Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead it should set the zookeeper quorum.

2017-09-12 Thread Robert Levas

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


Ship it!




Ship It!

- Robert Levas


On Sept. 12, 2017, 10:57 a.m., Sebastian Toader wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62182/
> ---
> 
> (Updated Sept. 12, 2017, 10:57 a.m.)
> 
> 
> Review request for Ambari, Attila Magyar, Ayub Pathan, Robert Levas, and 
> Sandor Magyari.
> 
> 
> Bugs: AMBARI-21902
> https://issues.apache.org/jira/browse/AMBARI-21902
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead 
> it should set to zookeeper quorum. The property updater in the blueprint 
> processor responsible for resolving this property needed to be reconfigured 
> to set this property to zookeeper server host name.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
>  ab6a586 
> 
> 
> Diff: https://reviews.apache.org/r/62182/diff/1/
> 
> 
> Testing
> ---
> 
> Manual testing cluster creation using blueprints.
> Testing Blueprint export.
> 
> Unit tests:
> [INFO] Results:
> [INFO] 
> [WARNING] Tests run: 4870, Failures: 0, Errors: 0, Skipped: 37
> 
> 
> Thanks,
> 
> Sebastian Toader
> 
>



Re: Review Request 62182: Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead it should set the zookeeper quorum.

2017-09-12 Thread Attila Magyar

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


Ship it!




Ship It!

- Attila Magyar


On Sept. 12, 2017, 2:57 p.m., Sebastian Toader wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62182/
> ---
> 
> (Updated Sept. 12, 2017, 2:57 p.m.)
> 
> 
> Review request for Ambari, Attila Magyar, Ayub Pathan, Robert Levas, and 
> Sandor Magyari.
> 
> 
> Bugs: AMBARI-21902
> https://issues.apache.org/jira/browse/AMBARI-21902
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead 
> it should set to zookeeper quorum. The property updater in the blueprint 
> processor responsible for resolving this property needed to be reconfigured 
> to set this property to zookeeper server host name.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
>  ab6a586 
> 
> 
> Diff: https://reviews.apache.org/r/62182/diff/1/
> 
> 
> Testing
> ---
> 
> Manual testing cluster creation using blueprints.
> Testing Blueprint export.
> 
> Unit tests:
> [INFO] Results:
> [INFO] 
> [WARNING] Tests run: 4870, Failures: 0, Errors: 0, Skipped: 37
> 
> 
> Thanks,
> 
> Sebastian Toader
> 
>



Re: Review Request 62182: Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead it should set the zookeeper quorum.

2017-09-12 Thread Sandor Magyari

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


Ship it!




Ship It!

- Sandor Magyari


On Sept. 12, 2017, 2:57 p.m., Sebastian Toader wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62182/
> ---
> 
> (Updated Sept. 12, 2017, 2:57 p.m.)
> 
> 
> Review request for Ambari, Attila Magyar, Ayub Pathan, Robert Levas, and 
> Sandor Magyari.
> 
> 
> Bugs: AMBARI-21902
> https://issues.apache.org/jira/browse/AMBARI-21902
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead 
> it should set to zookeeper quorum. The property updater in the blueprint 
> processor responsible for resolving this property needed to be reconfigured 
> to set this property to zookeeper server host name.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
>  ab6a586 
> 
> 
> Diff: https://reviews.apache.org/r/62182/diff/1/
> 
> 
> Testing
> ---
> 
> Manual testing cluster creation using blueprints.
> Testing Blueprint export.
> 
> Unit tests:
> [INFO] Results:
> [INFO] 
> [WARNING] Tests run: 4870, Failures: 0, Errors: 0, Skipped: 37
> 
> 
> Thanks,
> 
> Sebastian Toader
> 
>



Review Request 62182: Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead it should set the zookeeper quorum.

2017-09-12 Thread Sebastian Toader

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

Review request for Ambari, Attila Magyar, Ayub Pathan, Robert Levas, and Sandor 
Magyari.


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


Repository: ambari


Description
---

Ambari is setting "atlas.graph.storage.hostname" to hbase hostname, instead it 
should set to zookeeper quorum. The property updater in the blueprint processor 
responsible for resolving this property needed to be reconfigured to set this 
property to zookeeper server host name.


Diffs
-

  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
 ab6a586 


Diff: https://reviews.apache.org/r/62182/diff/1/


Testing
---

Manual testing cluster creation using blueprints.
Testing Blueprint export.

Unit tests:
[INFO] Results:
[INFO] 
[WARNING] Tests run: 4870, Failures: 0, Errors: 0, Skipped: 37


Thanks,

Sebastian Toader



Re: Review Request 62235: Some clients are shown as installed for a hosts page even when they have not been installed through ambari

2017-09-12 Thread Ishan Bhatt

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


Ship it!




Ship It!

- Ishan Bhatt


On Sept. 12, 2017, 4:24 a.m., Jaimin Jetly wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62235/
> ---
> 
> (Updated Sept. 12, 2017, 4:24 a.m.)
> 
> 
> Review request for Ambari, Ishan Bhatt, Vivek Ratnavel Subramanian, and 
> Yusaku Sako.
> 
> 
> Bugs: AMBARI-21932
> https://issues.apache.org/jira/browse/AMBARI-21932
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Some clients are shown as installed for a hosts page even when they have not 
> been installed through ambari
> 
> On an installed cluster:
> 1) Add a host with no clients
> 2) Now add a service with clients on all hosts (including the newely added 
> host)
> 3) On the newely added host, only one client is expected(from the newely 
> added service) to be shown but actually other clients are also present as well
> 
> 
> Diffs
> -
> 
>   ambari-web/app/controllers/wizard/step8_controller.js e0c2f5d1d0 
> 
> 
> Diff: https://reviews.apache.org/r/62235/diff/1/
> 
> 
> Testing
> ---
> 
> Manually tested that the patch fixes the issue.
> 
> ambari-web unit test result:
> 
>   30489 passing (20s)
>   157 pending
> 
> 
> Thanks,
> 
> Jaimin Jetly
> 
>



Review Request 62245: Auto fix enhancement to remove more than 1 selected configs

2017-09-12 Thread Dmitro Lisnichenko

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

Review request for Ambari, Jonathan Hurley and Nate Cole.


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


Repository: ambari


Description
---

Sometimes Ambari is coming up with issues like more than 1 selected configs.

Error:
{noformat}
ERROR - You have config(s), in cluster BMOHDPQA01, that is(are) selected more 
than once in clusterconfigmapping table: 
falcon-startup.properties,zoo.cfg,zeppelin-config,zookeeper-log4j,tagsync-application-properties,storm-worker-log4j,hive-log4j2,admin-properties,oozie-env,ssl-server,hadoop-policy,infra-solr-log4j,oozie-log4j,core-site,mahout-log4j,kafka-broker,pig-log4j,livy-env,zeppelin-env,hive-log4j,slider-client,tez-env,storm-env,ranger-storm-plugin-properties,oozie-site,falcon-env,beeline-log4j2,ranger-storm-policymgr-ssl,falcon-runtime.properties,ranger-storm-security,hbase-policy,ams-env,capacity-scheduler,webhcat-log4j,atlas-log4j,livy-log4j-properties,spark-metrics-properties,hbase-env,ranger-atlas-security,flume-env,sqoop-atlas-application.properties,admin-log4j,hiveserver2-interactive-site,ranger-tagsync-site,application-properties,ranger-kafka-policymgr-ssl,ranger-admin-site,ranger-env,ranger-storm-audit,ranger-hbase-policymgr-ssl,hdfs-log4j
{noformat}

It is very difficult to fix these kind of issues with queries. including auto 
fix for this will be very helpful.


Diffs
-

  
ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
 575485bd54 
  ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClusterDAO.java 
a23b914f34 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterConfigEntity.java
 9bf03b343f 
  
ambari-server/src/test/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelperTest.java
 6c6c00f947 


Diff: https://reviews.apache.org/r/62245/diff/1/


Testing
---

mvn clean test


Thanks,

Dmitro Lisnichenko



Re: Review Request 60358: Hivesevers's status shows issue for the thrift's port conflict, when hiveservers and spark thrift server installed in the same host.

2017-09-12 Thread Nate Cole

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



What is the status of this review?

- Nate Cole


On June 22, 2017, 1:55 a.m., zhangxiaolu zhangxiaolu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60358/
> ---
> 
> (Updated June 22, 2017, 1:55 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Dmitro Lisnichenko, Dmytro 
> Sen, Jaimin Jetly, Nate Cole, Srimanth Gunturi, Sid Wagle, and Vitalyi 
> Brodetskyi.
> 
> 
> Bugs: AMBARI-21305
> https://issues.apache.org/jira/browse/AMBARI-21305
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Hivesevers's status shows issue for the thrift's port conflict, when 
> hiveservers and spark thrift server installed in the same host.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/SPARK/1.2.1/package/scripts/params.py
>  74fd76a 
>   
> ambari-server/src/main/resources/common-services/SPARK/1.2.1/package/scripts/spark_service.py
>  31a296a 
> 
> 
> Diff: https://reviews.apache.org/r/60358/diff/1/
> 
> 
> Testing
> ---
> 
> done
> 
> 
> Thanks,
> 
> zhangxiaolu zhangxiaolu
> 
>



Re: Review Request 61453: AMBARI-21634 Make sure Ambari also considers NIS users

2017-09-12 Thread Nate Cole

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



This has been pushed.  Please resolve your JIRA and close this review.  Thanks!

- Nate Cole


On Aug. 7, 2017, 6:45 a.m., Aman Poonia wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/61453/
> ---
> 
> (Updated Aug. 7, 2017, 6:45 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jonathan Hurley, and Nate 
> Cole.
> 
> 
> Bugs: AMBARI-21634
> https://issues.apache.org/jira/browse/AMBARI-21634
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Make sure Ambari also considers NIS users
> 
> 
> Diffs
> -
> 
>   ambari-agent/src/main/python/ambari_agent/HostInfo.py 5f96df5b7a 
>   ambari-agent/src/test/python/ambari_agent/TestHostInfo.py 027a0a885c 
> 
> 
> Diff: https://reviews.apache.org/r/61453/diff/1/
> 
> 
> Testing
> ---
> 
> Changed the TestHostInfo.py to include one valid and one invalid user. Also 
> tried it with NIS users and it works as expected.
> 
> 
> Thanks,
> 
> Aman Poonia
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Jonathan Hurley

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

(Updated Sept. 12, 2017, 10:21 a.m.)


Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.


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


Repository: ambari


Description
---

There are several "INVALID" types listed in the stack_packages.json file. These 
were placeholders that need to be updated with the packages exposed by the 
stack-select tool. 

{code}
...
"HDFS_CLIENT": {
  "STACK-SELECT-PACKAGE": "hadoop-client",
  "INSTALL": [
"hadoop-client"
  ],
  "PATCH": [
"INVALID"
  ],
  "STANDARD": [
"hadoop-client"
  ]
},
...
{code}


Diffs (updated)
-

  
ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
 eac1bef13c 
  
ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
 704fb54293 
  ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
  ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 


Diff: https://reviews.apache.org/r/62226/diff/3/

Changes: https://reviews.apache.org/r/62226/diff/2-3/


Testing
---

--
Total run:1191
Total errors:0
Total failures:0
OK
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 58.379 s
[INFO] Finished at: 2017-09-11T16:25:26-04:00
[INFO] Final Memory: 21M/619M
[INFO] 


Thanks,

Jonathan Hurley



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Jonathan Hurley


> On Sept. 12, 2017, 9:07 a.m., Dmytro Grinenko wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
> > Lines 145 (patched)
> > 
> >
> > while map function is present in python, using generators is more 
> > prefferable
> 
> Jonathan Hurley wrote:
> I've never used generators before - the syntax looks a bit cumbersome for 
> what's needed here. Can you provide an example of what a generator to trim a 
> string would look like?
> 
> Dmytro Grinenko wrote:
> return (s.strip() for s in stdout.splitlines())# this would return 
> gerator, which supports iterative interface
> 
> pros:
>  - actuall method execution would be issues only when you will call 
> iterator, each result would return via "yield" (code would run only once)
> 
> cons:
>  - this would be not list, so no index accessing and only one cycle
> 
> return [s.strip() for s in stdout.splitlines()]# this would return 
> list
>  - this will return list
> 
> Dmytro Grinenko wrote:
> however for python36, it looks that map is faster that list comphersation 
> :)

Hah! I changed it. If you'd like me to switch it back, let me know.


- Jonathan


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


On Sept. 11, 2017, 3:43 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 11, 2017, 3:43 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/2/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Jonathan Hurley


> On Sept. 12, 2017, 9:07 a.m., Dmytro Grinenko wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
> > Lines 125 (patched)
> > 
> >
> > According to code below, this function would be called 
> > "get_supported_packages" each time in for cycle and would do/return the 
> > same. Can we optimize this?
> 
> Jonathan Hurley wrote:
> Yes, I thought about the fact it's called a lot. The problem is that 
> caching the result wouldn't work since we don't know when to clear the cache. 
> How would you recommend that we optimize this?
> 
> Dmytro Grinenko wrote:
> No need to cache it in the script-life cycle, it is enough only for 
> function-call lifetime, as i dont see any change, which may cause output 
> change per function call.
> 
> so it could be like:
> 
> def is_package_supported(package, pkgs=None):
>   if not pkgs:
> pkgs = get_supported_packages()
> 
>   ..
> 
> 
> def get_packages():
> 
>  ...
> 
>  pkgs = get_supported_packages()
> 
>  for .:
>   if not is_package_supported(package, pkgs)
>  .

Ah, I see - fair enough. I'll make the change.


- Jonathan


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


On Sept. 11, 2017, 3:43 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 11, 2017, 3:43 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/2/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Dmytro Grinenko


> On Sept. 12, 2017, 1:07 p.m., Dmytro Grinenko wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
> > Lines 145 (patched)
> > 
> >
> > while map function is present in python, using generators is more 
> > prefferable
> 
> Jonathan Hurley wrote:
> I've never used generators before - the syntax looks a bit cumbersome for 
> what's needed here. Can you provide an example of what a generator to trim a 
> string would look like?
> 
> Dmytro Grinenko wrote:
> return (s.strip() for s in stdout.splitlines())# this would return 
> gerator, which supports iterative interface
> 
> pros:
>  - actuall method execution would be issues only when you will call 
> iterator, each result would return via "yield" (code would run only once)
> 
> cons:
>  - this would be not list, so no index accessing and only one cycle
> 
> return [s.strip() for s in stdout.splitlines()]# this would return 
> list
>  - this will return list

however for python36, it looks that map is faster that list comphersation :)


- Dmytro


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


On Sept. 11, 2017, 7:43 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 11, 2017, 7:43 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/2/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Dmytro Grinenko


> On Sept. 12, 2017, 1:07 p.m., Dmytro Grinenko wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
> > Lines 125 (patched)
> > 
> >
> > According to code below, this function would be called 
> > "get_supported_packages" each time in for cycle and would do/return the 
> > same. Can we optimize this?
> 
> Jonathan Hurley wrote:
> Yes, I thought about the fact it's called a lot. The problem is that 
> caching the result wouldn't work since we don't know when to clear the cache. 
> How would you recommend that we optimize this?

No need to cache it in the script-life cycle, it is enough only for 
function-call lifetime, as i dont see any change, which may cause output change 
per function call.

so it could be like:

def is_package_supported(package, pkgs=None):
  if not pkgs:
pkgs = get_supported_packages()

  ..


def get_packages():

 ...

 pkgs = get_supported_packages()

 for .:
  if not is_package_supported(package, pkgs)
 .


> On Sept. 12, 2017, 1:07 p.m., Dmytro Grinenko wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
> > Lines 145 (patched)
> > 
> >
> > while map function is present in python, using generators is more 
> > prefferable
> 
> Jonathan Hurley wrote:
> I've never used generators before - the syntax looks a bit cumbersome for 
> what's needed here. Can you provide an example of what a generator to trim a 
> string would look like?

return (s.strip() for s in stdout.splitlines())# this would return gerator, 
which supports iterative interface

pros:
 - actuall method execution would be issues only when you will call iterator, 
each result would return via "yield" (code would run only once)

cons:
 - this would be not list, so no index accessing and only one cycle

return [s.strip() for s in stdout.splitlines()]# this would return list
 - this will return list


- Dmytro


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


On Sept. 11, 2017, 7:43 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 11, 2017, 7:43 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/2/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Jonathan Hurley


> On Sept. 12, 2017, 9:07 a.m., Dmytro Grinenko wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
> > Lines 125 (patched)
> > 
> >
> > According to code below, this function would be called 
> > "get_supported_packages" each time in for cycle and would do/return the 
> > same. Can we optimize this?

Yes, I thought about the fact it's called a lot. The problem is that caching 
the result wouldn't work since we don't know when to clear the cache. How would 
you recommend that we optimize this?


> On Sept. 12, 2017, 9:07 a.m., Dmytro Grinenko wrote:
> > ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
> > Lines 145 (patched)
> > 
> >
> > while map function is present in python, using generators is more 
> > prefferable

I've never used generators before - the syntax looks a bit cumbersome for 
what's needed here. Can you provide an example of what a generator to trim a 
string would look like?


- Jonathan


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


On Sept. 11, 2017, 3:43 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 11, 2017, 3:43 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/2/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Review Request 62242: Implement breadcrumbs in Background Operations modal

2017-09-12 Thread Jason Golieb

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

Review request for Ambari, Jaimin Jetly and Yusaku Sako.


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


Repository: ambari


Description
---

Implement breadcrumb navigation in the Background Operations modal and the 
drill-down views within it. This also affects the use of these views in the 
High Availability wizard. The breadcrumbs will provide a better navigation 
experience within this series of dialogs, helping the user to see the context 
of the current view and to navigate back up the hierarchy more easily. It will 
also be more consistent with the overall UX of Ambari 3.0.0.


Diffs
-

  ambari-web/app/controllers/global/background_operations_controller.js 
de420b5a131 
  
ambari-web/app/controllers/main/admin/highAvailability/progress_popup_controller.js
 4cbe59b020c 
  ambari-web/app/messages.js 87a5e97a68d 
  ambari-web/app/styles/modal_popups.less f7fe88be71d 
  ambari-web/app/templates/common/breadcrumbs.hbs 89353d9f065 
  ambari-web/app/templates/common/host_progress_popup.hbs 03c014cefa0 
  ambari-web/app/utils/host_progress_popup.js 5bd02cd76de 
  ambari-web/app/views/common/breadcrumbs_view.js e35a1965215 
  ambari-web/app/views/common/host_progress_popup_body_view.js 057f8bcf3c4 
  ambari-web/test/controllers/global/background_operations_test.js 4a8235c484b 
  
ambari-web/test/controllers/main/admin/highAvailability/progress_popup_controller_test.js
 364d9b0b451 
  ambari-web/test/utils/host_progress_popup_test.js dea2666fd47 
  ambari-web/test/views/common/breadcrumbs_view_test.js eff19f63b88 
  ambari-web/test/views/common/host_progress_popup_body_view_test.js 
5ccc0245101 


Diff: https://reviews.apache.org/r/62242/diff/1/


Testing
---

Pending


Thanks,

Jason Golieb



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Dmytro Grinenko

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


Fix it, then Ship it!




Ship It!


ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
Lines 125 (patched)


According to code below, this function would be called 
"get_supported_packages" each time in for cycle and would do/return the same. 
Can we optimize this?



ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
Lines 138 (patched)


No parentheses needed to define tuple in such way, just list variables 
using coma (it is pythonic way)



ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
Lines 145 (patched)


while map function is present in python, using generators is more 
prefferable


- Dmytro Grinenko


On Sept. 11, 2017, 7:43 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 11, 2017, 7:43 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/2/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62226: Use Correct Packages For Clients Where Stack Tools Support It

2017-09-12 Thread Dmitro Lisnichenko

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


Ship it!




Ship It!

- Dmitro Lisnichenko


On Sept. 11, 2017, 10:43 p.m., Jonathan Hurley wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62226/
> ---
> 
> (Updated Sept. 11, 2017, 10:43 p.m.)
> 
> 
> Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, and Nate Cole.
> 
> 
> Bugs: AMBARI-21931
> https://issues.apache.org/jira/browse/AMBARI-21931
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> There are several "INVALID" types listed in the stack_packages.json file. 
> These were placeholders that need to be updated with the packages exposed by 
> the stack-select tool. 
> 
> {code}
> ...
> "HDFS_CLIENT": {
>   "STACK-SELECT-PACKAGE": "hadoop-client",
>   "INSTALL": [
> "hadoop-client"
>   ],
>   "PATCH": [
> "INVALID"
>   ],
>   "STANDARD": [
> "hadoop-client"
>   ]
> },
> ...
> {code}
> 
> 
> Diffs
> -
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/stack_select.py
>  eac1bef13c 
>   
> ambari-server/src/main/resources/stacks/HDP/2.0.6/properties/stack_packages.json
>  704fb54293 
>   ambari-server/src/test/python/TestStackSelect.py 3d4e5b6a43 
>   ambari-server/src/test/python/stacks/utils/RMFTestCase.py 0341092b69 
> 
> 
> Diff: https://reviews.apache.org/r/62226/diff/2/
> 
> 
> Testing
> ---
> 
> --
> Total run:1191
> Total errors:0
> Total failures:0
> OK
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 58.379 s
> [INFO] Finished at: 2017-09-11T16:25:26-04:00
> [INFO] Final Memory: 21M/619M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>



Re: Review Request 62239: AMBARI-21925 : Facilitate a parameter to provide HBase conf directory for atlas-env configurations.

2017-09-12 Thread Mugdha Varadkar

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


Ship it!




Ship It!

- Mugdha Varadkar


On Sept. 12, 2017, 9:03 a.m., Vishal Suvagia wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62239/
> ---
> 
> (Updated Sept. 12, 2017, 9:03 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Gautam Borad, Jayush Luniya, 
> Madhan Neethiraj, Mugdha Varadkar, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-21925
> https://issues.apache.org/jira/browse/AMBARI-21925
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Current configuration for Atlas atlas-env contains hbase_conf_dir which is 
> set in environment as export HBASE_CONF_DIR=hbase_conf_dir
> However, hbase_conf_dir is currently not exposed in ambari and hence its not 
> possible to set just hbase_conf_dir instead through blueprints we need to 
> pass full atlas-env.sh content to set the hbase_conf_dir.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
>  96041e6 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.7.0.3.0/configuration/atlas-env.xml
>  f97ca98 
>   
> ambari-server/src/main/resources/common-services/ATLAS/0.7.0.3.0/package/scripts/params.py
>  61b41d6 
>   
> ambari-server/src/main/resources/stacks/HDP/2.6/services/ATLAS/configuration/atlas-env.xml
>  821fafa 
>   ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/config-upgrade.xml 
> 4764297 
>   
> ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/nonrolling-upgrade-2.6.xml
>  0d9a746 
>   ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/upgrade-2.6.xml 
> b5c88de 
> 
> 
> Diff: https://reviews.apache.org/r/62239/diff/1/
> 
> 
> Testing
> ---
> 
> Verified with fresh install on Cent-OS 6.
> 
> 
> Thanks,
> 
> Vishal Suvagia
> 
>



Review Request 62239: AMBARI-21925 : Facilitate a parameter to provide HBase conf directory for atlas-env configurations.

2017-09-12 Thread Vishal Suvagia via Review Board

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

Review request for Ambari, Alejandro Fernandez, Gautam Borad, Jayush Luniya, 
Madhan Neethiraj, Mugdha Varadkar, and Sumit Mohanty.


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


Repository: ambari


Description
---

Current configuration for Atlas atlas-env contains hbase_conf_dir which is set 
in environment as export HBASE_CONF_DIR=hbase_conf_dir
However, hbase_conf_dir is currently not exposed in ambari and hence its not 
possible to set just hbase_conf_dir instead through blueprints we need to pass 
full atlas-env.sh content to set the hbase_conf_dir.


Diffs
-

  
ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
 96041e6 
  
ambari-server/src/main/resources/common-services/ATLAS/0.7.0.3.0/configuration/atlas-env.xml
 f97ca98 
  
ambari-server/src/main/resources/common-services/ATLAS/0.7.0.3.0/package/scripts/params.py
 61b41d6 
  
ambari-server/src/main/resources/stacks/HDP/2.6/services/ATLAS/configuration/atlas-env.xml
 821fafa 
  ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/config-upgrade.xml 
4764297 
  
ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/nonrolling-upgrade-2.6.xml
 0d9a746 
  ambari-server/src/main/resources/stacks/HDP/2.6/upgrades/upgrade-2.6.xml 
b5c88de 


Diff: https://reviews.apache.org/r/62239/diff/1/


Testing
---

Verified with fresh install on Cent-OS 6.


Thanks,

Vishal Suvagia