You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2016/10/17 14:17:58 UTC
[1/6] ambari git commit: AMBARI-18546. Part_2.BP format does not
generate property oozie.service.JPAService.jdbc.url.(vbrodetskyi)
Repository: ambari
Updated Branches:
refs/heads/branch-feature-AMBARI-18456 5dff9acdc -> aa29f56cb
AMBARI-18546. Part_2.BP format does not generate property oozie.service.JPAService.jdbc.url.(vbrodetskyi)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/645b2fbe
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/645b2fbe
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/645b2fbe
Branch: refs/heads/branch-feature-AMBARI-18456
Commit: 645b2fbe4be05a754618aa0a4790e351813b026e
Parents: 61442de
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Mon Oct 17 00:36:44 2016 +0300
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Mon Oct 17 00:36:44 2016 +0300
----------------------------------------------------------------------
.../internal/BlueprintConfigurationProcessorTest.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/645b2fbe/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java
index b49abe9..15fd4e7 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java
@@ -1694,6 +1694,11 @@ public class BlueprintConfigurationProcessorTest {
hostGroups.add(group);
hostGroups.add(group2);
+ if (BlueprintConfigurationProcessor.singleHostTopologyUpdaters != null &&
+ BlueprintConfigurationProcessor.singleHostTopologyUpdaters.containsKey("oozie-site")) {
+ BlueprintConfigurationProcessor.singleHostTopologyUpdaters.get("oozie-site").remove("oozie.service.JPAService.jdbc.url");
+ }
+
ClusterTopology topology = createClusterTopology(bp, clusterConfig, hostGroups);
BlueprintConfigurationProcessor configProcessor = new BlueprintConfigurationProcessor(topology);
[4/6] ambari git commit: AMBARI-18607. Test and fix new tables styles
on Ambari (alexantonenko)
Posted by jo...@apache.org.
AMBARI-18607. Test and fix new tables styles on Ambari (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5c32fed7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5c32fed7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5c32fed7
Branch: refs/heads/branch-feature-AMBARI-18456
Commit: 5c32fed74cce667bacffbe7f0d549ceed709e3fc
Parents: 9eb64a5
Author: Alex Antonenko <hi...@gmail.com>
Authored: Mon Oct 17 15:24:55 2016 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Mon Oct 17 16:07:56 2016 +0300
----------------------------------------------------------------------
ambari-web/app/styles/alerts.less | 14 ------
ambari-web/app/styles/application.less | 40 ++-------------
ambari-web/app/styles/config_history_flow.less | 3 --
ambari-web/app/styles/modal_popups.less | 5 +-
.../app/styles/theme/bootstrap-ambari.css | 38 +++++++-------
.../templates/common/configs/overrideWindow.hbs | 34 +++++++------
.../common/configs/propertyDependence.hbs | 2 +-
.../config_recommendation_popup.hbs | 2 +-
.../modal_popups/dependent_configs_list.hbs | 4 +-
.../modal_popups/hosts_table_list_popup.hbs | 16 +++---
ambari-web/app/templates/common/settings.hbs | 2 +-
ambari-web/app/templates/experimental.hbs | 8 +--
.../templates/main/admin/serviceAccounts.hbs | 2 +-
.../main/admin/stack_upgrade/services.hbs | 2 +-
.../upgrade_configs_merge_table.hbs | 4 +-
.../admin/stack_upgrade/upgrade_history.hbs | 2 +-
ambari-web/app/templates/main/alerts.hbs | 2 +-
.../alerts/add_definition_to_group_popup.hbs | 52 ++++++++++----------
.../main/alerts/definition_details.hbs | 4 +-
.../templates/main/dashboard/config_history.hbs | 2 +-
ambari-web/app/templates/main/host.hbs | 2 +-
.../app/templates/main/host/addHost/step4.hbs | 2 +-
.../app/templates/main/host/host_alerts.hbs | 4 +-
ambari-web/app/templates/main/host/logs.hbs | 8 +--
.../app/templates/main/host/stack_versions.hbs | 2 +-
.../main/service/info/configs_save_popup.hbs | 20 +++++---
ambari-web/app/templates/main/views.hbs | 4 +-
ambari-web/app/templates/wizard/step1.hbs | 16 +++---
ambari-web/app/templates/wizard/step3.hbs | 2 +-
ambari-web/app/templates/wizard/step4.hbs | 4 +-
ambari-web/app/templates/wizard/step6.hbs | 2 +-
.../wizard/step9/step9_install_host_popup.hbs | 2 +-
.../app/views/main/alert_definitions_view.js | 4 +-
33 files changed, 136 insertions(+), 174 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/styles/alerts.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/alerts.less b/ambari-web/app/styles/alerts.less
index eb3f5a3..ceae728 100644
--- a/ambari-web/app/styles/alerts.less
+++ b/ambari-web/app/styles/alerts.less
@@ -67,24 +67,10 @@
margin-top: 10px;
margin-bottom: 10px;
- font-size: 13px \9;
.filter-input-width {
width: ~"calc(100% - 20px)";
}
-
- .filter-row {
- th {
- padding: 0;
- padding-left: 4px;
- }
- }
- thead {
- background: none repeat scroll 0 0 #F8F8F8;
- th {
- padding: 8px;
- }
- }
}
.alert-definition-review {
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/styles/application.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/application.less b/ambari-web/app/styles/application.less
index 3b2c10b..cd103eb 100644
--- a/ambari-web/app/styles/application.less
+++ b/ambari-web/app/styles/application.less
@@ -1577,15 +1577,6 @@ h1 {
}
}
-.running-host-components-table{
- width: 100%;
- margin-top: 10px;
- text-align: left;
- tbody {
- vertical-align: top;
- }
-}
-
a:focus {
outline: none;
}
@@ -3303,17 +3294,6 @@ table.graphs {
#hosts-table {
margin-top: 10px;
margin-bottom: 10px;
- font-size: 13px\9;
-
- .filter-row {
- th {
- padding: 0;
- padding-left: 4px;
- }
- }
- thead {
- background: none repeat scroll 0 0 #F8F8F8;
- }
.set-rack-id {
text-decoration: none;
@@ -3920,9 +3900,6 @@ table.graphs {
.host-tab-content,
.logs-tab-content {
margin-top: 20px;
- .table thead {
- background: none repeat scroll 0 0 #F8F8F8;
- }
}
.logs-tab-content {
a.external-link {
@@ -4709,19 +4686,7 @@ ul.list-inline li {
}
.advanced-header-table {
- th.first, td.first {
- border-left-width: 1px;
- }
table-layout: fixed;
- thead > tr > th {
- border-top: none;
- }
- thead > tr > th,
- tbody > tr > td {
- border-bottom: none;
- border-left: none;
- border-right: none;
- }
td {
&.rack-id {
@@ -5565,7 +5530,8 @@ input[type="radio"].align-checkbox, input[type="checkbox"].align-checkbox {
}
td.icon {
width: 6%;
- padding: 13px 5px 5px 20px;
+ padding-left: 20px;
+ padding-right: 5px;
.view-icon-image {
img {
height: 32px;
@@ -5666,7 +5632,7 @@ input[type="radio"].align-checkbox, input[type="checkbox"].align-checkbox {
}
.empty-label {
border-top: 1px solid #dddddd;
- text-align: center
+ text-align: center;
}
}
.wrapp-flume-status{
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/styles/config_history_flow.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/config_history_flow.less b/ambari-web/app/styles/config_history_flow.less
index a9d8a2d..e2806ea 100644
--- a/ambari-web/app/styles/config_history_flow.less
+++ b/ambari-web/app/styles/config_history_flow.less
@@ -349,9 +349,6 @@
#config_history {
.table {
- thead {
- background: none repeat scroll 0 0 #F8F8F8;
- }
.filter-input-width{
width: ~"calc(100% - 20px)";
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/styles/modal_popups.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/modal_popups.less b/ambari-web/app/styles/modal_popups.less
index 49fda07..cf16e1b 100644
--- a/ambari-web/app/styles/modal_popups.less
+++ b/ambari-web/app/styles/modal_popups.less
@@ -232,9 +232,6 @@
overflow: auto;
}
table{
- th {
- background-color: #d9edf7;
- }
margin: 0 auto;
}
.message{
@@ -350,7 +347,7 @@
#infinite-scroll-append {
text-align: center;
- .glyphicon glyphicon-spinner {
+ .glyphicon.glyphicon-spinner {
font-size: 24px;
}
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/styles/theme/bootstrap-ambari.css
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/theme/bootstrap-ambari.css b/ambari-web/app/styles/theme/bootstrap-ambari.css
index dc57b22..4d1f249 100644
--- a/ambari-web/app/styles/theme/bootstrap-ambari.css
+++ b/ambari-web/app/styles/theme/bootstrap-ambari.css
@@ -408,25 +408,6 @@ h2.table-title {
.table.table-hover > tbody > tr > td:last-of-type {
border-right-width: 1px;
}
-.table.table-hover > tbody > tr:hover {
- background-color: #E7F6FC;
-}
-.table.table-hover > tbody > tr:hover > td {
- background-color: #E7F6FC;
- border-color: #A7DFF2 transparent;
-}
-.table.table-hover > tbody > tr:hover > td:first-of-type {
- border-left-color: #A7DFF2;
-}
-.table.table-hover > tbody > tr:hover > td:last-of-type {
- border-right-color: #A7DFF2;
-}
-.table.table-hover > tbody > tr:hover + tr > td {
- border-top-color: transparent;
-}
-.table.table-hover > tbody > tr:hover > td .action {
- visibility: visible;
-}
.table.table-hover > tbody > tr.active {
background-color: #EEE;
}
@@ -446,6 +427,25 @@ h2.table-title {
.table.table-hover > tbody > tr.active + tr:hover > td {
border-top-color: #A7DFF2;
}
+.table.table-hover > tbody > tr:hover {
+ background-color: #E7F6FC;
+}
+.table.table-hover > tbody > tr:hover > td {
+ background-color: #E7F6FC;
+ border-color: #A7DFF2 transparent;
+}
+.table.table-hover > tbody > tr:hover > td:first-of-type {
+ border-left-color: #A7DFF2;
+}
+.table.table-hover > tbody > tr:hover > td:last-of-type {
+ border-right-color: #A7DFF2;
+}
+.table.table-hover > tbody > tr:hover + tr > td {
+ border-top-color: transparent;
+}
+.table.table-hover > tbody > tr:hover > td .action {
+ visibility: visible;
+}
h1,
h2,
h3,
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/common/configs/overrideWindow.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/common/configs/overrideWindow.hbs b/ambari-web/app/templates/common/configs/overrideWindow.hbs
index e618fb6..98213c3 100644
--- a/ambari-web/app/templates/common/configs/overrideWindow.hbs
+++ b/ambari-web/app/templates/common/configs/overrideWindow.hbs
@@ -89,9 +89,9 @@
</td>
</tr>
</table>
- <table class="table table-striped hosts-table">
+ <table class="table table-hover">
<thead>
- <tr class="success">
+ <tr>
<th width="10%">
{{view Ember.Checkbox checkedBinding="view.allHostsSelected" disabledBinding="view.isDisabled"}}
</th>
@@ -101,20 +101,22 @@
</thead>
</table>
<div class="hosts-table-container">
- <table class="table table-striped hosts-table">
- {{#each entry in view.pageContent}}
- <tr {{bindAttr class="entry.filtered::hidden"}}>
- <td width="10%">
- {{view Ember.Checkbox checkedBinding="entry.selected"}}
- </td>
- <td width="45%">
- {{entry.host.hostName}}
- </td>
- <td>
- {{entry.filterColumnValue}}
- </td>
- </tr>
- {{/each}}
+ <table class="table table-hover">
+ <tbody>
+ {{#each entry in view.pageContent}}
+ <tr {{bindAttr class="entry.filtered::hidden"}}>
+ <td width="10%">
+ {{view Ember.Checkbox checkedBinding="entry.selected"}}
+ </td>
+ <td width="45%">
+ {{entry.host.hostName}}
+ </td>
+ <td>
+ {{entry.filterColumnValue}}
+ </td>
+ </tr>
+ {{/each}}
+ </tbody>
</table>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/common/configs/propertyDependence.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/common/configs/propertyDependence.hbs b/ambari-web/app/templates/common/configs/propertyDependence.hbs
index bc04df4..b956d5e 100644
--- a/ambari-web/app/templates/common/configs/propertyDependence.hbs
+++ b/ambari-web/app/templates/common/configs/propertyDependence.hbs
@@ -16,7 +16,7 @@
* limitations under the License.
}}
-<table class="table table-bordered table-striped">
+<table class="table table-hover">
<thead>
<tr>
<th>{{t common.service}}</th>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/common/modal_popups/config_recommendation_popup.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/common/modal_popups/config_recommendation_popup.hbs b/ambari-web/app/templates/common/modal_popups/config_recommendation_popup.hbs
index 8100dff..1fe4d39 100644
--- a/ambari-web/app/templates/common/modal_popups/config_recommendation_popup.hbs
+++ b/ambari-web/app/templates/common/modal_popups/config_recommendation_popup.hbs
@@ -18,7 +18,7 @@
<p>{{view.messageBody}}</p>
<div id="config-validation-warnings" class="limited-height-2">
- <table class="table no-borders">
+ <table class="table table-hover">
<thead>
<tr>
<th>{{t common.type}}</th>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/common/modal_popups/dependent_configs_list.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/common/modal_popups/dependent_configs_list.hbs b/ambari-web/app/templates/common/modal_popups/dependent_configs_list.hbs
index fe78c2d..932d4a5 100644
--- a/ambari-web/app/templates/common/modal_popups/dependent_configs_list.hbs
+++ b/ambari-web/app/templates/common/modal_popups/dependent_configs_list.hbs
@@ -20,7 +20,7 @@
{{t popup.dependent.configs.title}}
</div>
<span id="config-dependencies" class="limited-height-2">
- <table class="table table-striped">
+ <table class="table table-hover">
<thead>
<tr>
<th class="check-box-col">{{view view.toggleAll}}</th>
@@ -28,7 +28,7 @@
<th>{{t common.service}}</th>
<th>{{t common.configGroup}}</th>
<th>{{t common.fileName}}</th>
- <th class="row-fliud">
+ <th class="row-fluid">
<div class="col-md-6">
{{t popup.dependent.configs.table.currentValue}}
</div>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/common/modal_popups/hosts_table_list_popup.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/common/modal_popups/hosts_table_list_popup.hbs b/ambari-web/app/templates/common/modal_popups/hosts_table_list_popup.hbs
index 3ae2e3e..2c5d655 100644
--- a/ambari-web/app/templates/common/modal_popups/hosts_table_list_popup.hbs
+++ b/ambari-web/app/templates/common/modal_popups/hosts_table_list_popup.hbs
@@ -19,13 +19,15 @@
{{view.hostName}}
<div class="host-elements">
{{#if view.isObjectsList}}
- <table>
- {{#each view.items}}
- <tr>
- <td>{{name}}</td>
- <td>{{status}}</td>
- </tr>
- {{/each}}
+ <table class="table table-hover">
+ <tbody>
+ {{#each view.items}}
+ <tr>
+ <td>{{name}}</td>
+ <td>{{status}}</td>
+ </tr>
+ {{/each}}
+ </tbody>
</table>
{{else}}
<ul class="list-unstyled">
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/common/settings.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/common/settings.hbs b/ambari-web/app/templates/common/settings.hbs
index 6c2a95c..31c20fa 100644
--- a/ambari-web/app/templates/common/settings.hbs
+++ b/ambari-web/app/templates/common/settings.hbs
@@ -43,7 +43,7 @@
</div>
<div>
{{#unless view.hidePrivileges}}
- <table class="table">
+ <table class="table table-hover">
<thead>
<tr>
<th>{{t common.cluster}}</th>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/experimental.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/experimental.hbs b/ambari-web/app/templates/experimental.hbs
index 862fa16..2d05897 100644
--- a/ambari-web/app/templates/experimental.hbs
+++ b/ambari-web/app/templates/experimental.hbs
@@ -30,12 +30,12 @@
{{#if App}}
{{#if App.supports}}
- <table class="table table-bordered table-striped">
+ <table class="table table-hover">
<thead>
<tr>
- <td style="width: 20%; font-weight: bold;">Experimental Functionality</td>
- <td style="width: 20%; font-weight: bold;">Enabled?</td>
- <td style="width: 60%; font-weight: bold;">Description</td>
+ <th style="width: 20%;">Experimental Functionality</th>
+ <th style="width: 20%;">Enabled?</th>
+ <th style="width: 60%;">Description</th>
</tr>
</thead>
<tbody>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/admin/serviceAccounts.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/admin/serviceAccounts.hbs b/ambari-web/app/templates/main/admin/serviceAccounts.hbs
index 3e103dd..40421e0 100644
--- a/ambari-web/app/templates/main/admin/serviceAccounts.hbs
+++ b/ambari-web/app/templates/main/admin/serviceAccounts.hbs
@@ -22,7 +22,7 @@
{{#if controller.dataIsLoaded}}
{{#if controller.users}}
<div class="col-md-6">
- <table class="table table-bordered table-striped">
+ <table class="table table-hover">
<thead>
<tr>
<th>{{t common.name}}</th>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/admin/stack_upgrade/services.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/admin/stack_upgrade/services.hbs b/ambari-web/app/templates/main/admin/stack_upgrade/services.hbs
index ed0dfce..5a4e64b 100644
--- a/ambari-web/app/templates/main/admin/stack_upgrade/services.hbs
+++ b/ambari-web/app/templates/main/admin/stack_upgrade/services.hbs
@@ -17,7 +17,7 @@
}}
-<table class="table table-striped">
+<table class="table table-hover">
<thead>
<tr>
<th>{{t common.service}}</th>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_configs_merge_table.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_configs_merge_table.hbs b/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_configs_merge_table.hbs
index 71ddbbf..28dfbb6 100644
--- a/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_configs_merge_table.hbs
+++ b/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_configs_merge_table.hbs
@@ -24,7 +24,7 @@
{{t popup.clusterCheck.Upgrade.configsMerge.alert}}
</div>
<div class="configs-table-header">
- <table class="configs-table table table-striped">
+ <table class="configs-table table table-hover">
<thead>
<tr>
<th>{{t popup.clusterCheck.Upgrade.configsMerge.configType}}</th>
@@ -36,7 +36,7 @@
</table>
</div>
<div class="limited-height-2">
- <table class="configs-table table table-striped">
+ <table class="configs-table table table-hover">
<tbody>
{{#each view.configs}}
<tr>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_history.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_history.hbs b/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_history.hbs
index f37f69a..9244298 100644
--- a/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_history.hbs
+++ b/ambari-web/app/templates/main/admin/stack_upgrade/upgrade_history.hbs
@@ -41,7 +41,7 @@
</div>
<br/>
<br/>
- <table class="table advanced-header-table table-striped" id="upgrade-summary-table">
+ <table class="table advanced-header-table table-hover" id="upgrade-summary-table">
<thead>
<th>{{t common.direction}}</th>
<th>{{t common.type}}</th>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/alerts.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/alerts.hbs b/ambari-web/app/templates/main/alerts.hbs
index 2c7f365..ed08943 100644
--- a/ambari-web/app/templates/main/alerts.hbs
+++ b/ambari-web/app/templates/main/alerts.hbs
@@ -31,7 +31,7 @@
<div id="alerts">
<div class="box-header row">
</div>
- <table class="table advanced-header-table table-bordered table-striped alerts-table" id="alert-definitions-table">
+ <table class="table advanced-header-table table-hover alerts-table" id="alert-definitions-table">
<thead>
{{#view view.sortView classNames="label-row" contentBinding="view.filteredContent"}}
{{view view.parentView.nameSort class="first name-sorting"}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/alerts/add_definition_to_group_popup.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/alerts/add_definition_to_group_popup.hbs b/ambari-web/app/templates/main/alerts/add_definition_to_group_popup.hbs
index e5e9abd..91cfe47 100644
--- a/ambari-web/app/templates/main/alerts/add_definition_to_group_popup.hbs
+++ b/ambari-web/app/templates/main/alerts/add_definition_to_group_popup.hbs
@@ -83,9 +83,9 @@
</div>
</div>
</div>
- <table class="table table-striped hosts-table">
+ <table class="table table-hover">
<thead>
- <tr class="success">
+ <tr>
<th width="10%">
{{view Ember.Checkbox checkedBinding="view.allDefsSelected" disabledBinding="view.isDisabled"}}
</th>
@@ -96,30 +96,32 @@
</thead>
</table>
<div class="hosts-table-container">
- <table class="table table-striped hosts-table">
- {{#if view.pageContent}}
- {{#each entry in view.pageContent}}
- <tr {{bindAttr class="entry.filtered::hidden"}}>
- <td width="10%">
- {{view Ember.Checkbox checkedBinding="entry.selected"}}
- </td>
- <td width="35%">
- {{entry.label}}
- </td>
- <td>
- {{entry.serviceNameDisplay}}
- </td>
- <td>
- {{entry.componentNameDisplay}}
- </td>
+ <table class="table table-hover">
+ <tbody>
+ {{#if view.pageContent}}
+ {{#each entry in view.pageContent}}
+ <tr {{bindAttr class="entry.filtered::hidden"}}>
+ <td width="10%">
+ {{view Ember.Checkbox checkedBinding="entry.selected"}}
+ </td>
+ <td width="35%">
+ {{entry.label}}
+ </td>
+ <td>
+ {{entry.serviceNameDisplay}}
+ </td>
+ <td>
+ {{entry.componentNameDisplay}}
+ </td>
+ </tr>
+ {{/each}}
+ {{else}}
+ <tr>
+ <td width="30%"></td>
+ <td>{{t alerts.actions.manage_alert_groups_popup.addDefinition.noDefinitions}}</td>
</tr>
- {{/each}}
- {{else}}
- <tr>
- <td width="30%"></td>
- <td>{{t alerts.actions.manage_alert_groups_popup.addDefinition.noDefinitions}}</td>
- </tr>
- {{/if}}
+ {{/if}}
+ </tbody>
</table>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/alerts/definition_details.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/alerts/definition_details.hbs b/ambari-web/app/templates/main/alerts/definition_details.hbs
index 0632ea5..558614a 100644
--- a/ambari-web/app/templates/main/alerts/definition_details.hbs
+++ b/ambari-web/app/templates/main/alerts/definition_details.hbs
@@ -201,9 +201,9 @@
{{#if App.router.mainAlertInstancesController.isLoaded}}
- <table class="table advanced-header-table table-bordered table-striped alerts-table" id="alert-instances-table">
+ <table class="table advanced-header-table table-hover alerts-table" id="alert-instances-table">
<thead>
- {{#view view.sortView classNames="label-row" contentBinding="view.filteredContent"}}
+ {{#view view.sortView contentBinding="view.filteredContent"}}
{{view view.parentView.serviceSort class="first service-sorting"}}
{{view view.parentView.hostNameSort class="host-sorting"}}
{{view view.parentView.stateSort class="state-sorting"}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/dashboard/config_history.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/dashboard/config_history.hbs b/ambari-web/app/templates/main/dashboard/config_history.hbs
index ced85ac..56480dd 100644
--- a/ambari-web/app/templates/main/dashboard/config_history.hbs
+++ b/ambari-web/app/templates/main/dashboard/config_history.hbs
@@ -17,7 +17,7 @@
}}
<div id="config_history">
- <table class="table advanced-header-table table-bordered table-striped" >
+ <table class="table advanced-header-table table-hover">
<thead>
{{#view view.sortView classNames="label-row config-history-sort-row"}}
{{view view.parentView.versionSort}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/host.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/host.hbs b/ambari-web/app/templates/main/host.hbs
index 94dcfe2..c5438e1 100644
--- a/ambari-web/app/templates/main/host.hbs
+++ b/ambari-web/app/templates/main/host.hbs
@@ -26,7 +26,7 @@
</div>
</div>
{{outlet}}
- <table class="table advanced-header-table table-bordered table-striped" id="hosts-table">
+ <table class="table advanced-header-table table-hover" id="hosts-table">
<thead>
{{#view view.sortView classNames="label-row" contentBinding="view.filteredContent"}}
<th class="first"><div class="ember-view view-wrapper">{{view Ember.Checkbox class="host-select-all" checkedBinding="view.parentView.selectAllHosts"}}</div></th>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/host/addHost/step4.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/host/addHost/step4.hbs b/ambari-web/app/templates/main/host/addHost/step4.hbs
index 56b16d7..305b5f4 100644
--- a/ambari-web/app/templates/main/host/addHost/step4.hbs
+++ b/ambari-web/app/templates/main/host/addHost/step4.hbs
@@ -21,7 +21,7 @@
{{t addHost.step4.title}}
</div>
<div class="pre-scrollable">
- <table class="table" id="host-configurations-table">
+ <table class="table table-hover" id="host-configurations-table">
<thead>
<tr>
<th>{{t common.service}}</th>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/host/host_alerts.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/host/host_alerts.hbs b/ambari-web/app/templates/main/host/host_alerts.hbs
index 8232efe..18eb387 100644
--- a/ambari-web/app/templates/main/host/host_alerts.hbs
+++ b/ambari-web/app/templates/main/host/host_alerts.hbs
@@ -22,9 +22,9 @@
{{#if App.router.mainAlertInstancesController.isLoaded}}
- <table class="table advanced-header-table table-bordered table-striped alerts-table" id="host-alerts-table">
+ <table class="table advanced-header-table table-hover alerts-table" id="host-alerts-table">
<thead>
- {{#view view.sortView classNames="label-row" contentBinding="view.filteredContent"}}
+ {{#view view.sortView contentBinding="view.filteredContent"}}
{{view view.parentView.serviceSort class="first service-sorting"}}
{{view view.parentView.nameSort class="name-sorting"}}
{{view view.parentView.statusSort class="status-sorting"}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/host/logs.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/host/logs.hbs b/ambari-web/app/templates/main/host/logs.hbs
index 3489cee..2cdee44 100644
--- a/ambari-web/app/templates/main/host/logs.hbs
+++ b/ambari-web/app/templates/main/host/logs.hbs
@@ -16,9 +16,9 @@
* limitations under the License.
}}
-<table class="table advanced-header-table table-bordered table-striped">
+<table class="table advanced-header-table table-hover">
<thead>
- {{#view view.sortView classNames="label-row" contentBinding="view.filteredContent"}}
+ {{#view view.sortView contentBinding="view.filteredContent"}}
{{view view.parentView.serviceNameSort classNames="first"}}
{{view view.parentView.componentNameSort}}
{{view view.parentView.fileExtensionsSort}}
@@ -37,7 +37,7 @@
<td>{{row.componentDisplayName}}</td>
<td>
{{#each file in row.fileNamesObject}}
- <p>
+ <div>
<a {{action openLogFile row file.filePath target="view.parentView"}} href="#" rel="log-file-name-tooltip" {{bindAttr data-original-title="file.filePath"}}>{{file.fileName}}</a>
{{#view App.LogSearchUILinkView linkQueryParamsBinding="file.linkTail" tagName="span"}}
<a {{bindAttr href="view.formatedLink"}} target="_blank" rel="log-file-name-tooltip" {{translateAttr title="popup.logTail.openInLogSearch"}} class="pull-right external-link">
@@ -45,7 +45,7 @@
{{t popup.logTail.openInLogSearch}}
</a>
{{/view}}
- </p>
+ </div>
{{/each}}
</td>
{{/view}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/host/stack_versions.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/host/stack_versions.hbs b/ambari-web/app/templates/main/host/stack_versions.hbs
index 1cf02fe..e1666cc 100644
--- a/ambari-web/app/templates/main/host/stack_versions.hbs
+++ b/ambari-web/app/templates/main/host/stack_versions.hbs
@@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
}}
-<table class="table advanced-header-table table-bordered table-striped">
+<table class="table advanced-header-table table-hover">
<thead>
{{#view view.sortView classNames="label-row" contentBinding="view.filteredContent"}}
{{view view.parentView.stackSort classNames="first"}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/service/info/configs_save_popup.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/service/info/configs_save_popup.hbs b/ambari-web/app/templates/main/service/info/configs_save_popup.hbs
index 7d786cd..2877a8c 100644
--- a/ambari-web/app/templates/main/service/info/configs_save_popup.hbs
+++ b/ambari-web/app/templates/main/service/info/configs_save_popup.hbs
@@ -31,20 +31,28 @@
{{#if view.isLoaded}}
{{#if view.runningHosts}}
<i class="glyphicon glyphicon-warning-sign"></i> {{view.runningHostsMessage}}
- <table class="table-striped running-host-components-table">
+ <table class="table table-hover">
+ <thead>
<tr><th>{{t common.host}}</th><th>{{t common.components}}</th></tr>
- {{#each host in view.runningHosts}}
+ </thead>
+ <tbody>
+ {{#each host in view.runningHosts}}
<tr><td>{{host.name}}</td><td>{{host.components}}</td></tr>
- {{/each}}
+ {{/each}}
+ </tbody>
</table>
{{/if}}
{{#if view.unknownHosts}}
<i class="glyphicon glyphicon-warning-sign"></i> {{view.unknownHostsMessage}}
- <table class="table-striped running-host-components-table">
+ <table class="table table-hover">
+ <thead>
<tr><th>{{t common.host}}</th><th>{{t common.components}}</th></tr>
- {{#each host in view.unknownHosts}}
+ </thead>
+ <tbody>
+ {{#each host in view.unknownHosts}}
<tr><td>{{host.name}}</td><td>{{host.components}}</td></tr>
- {{/each}}
+ {{/each}}
+ </tbody>
</table>
{{/if}}
{{else}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/main/views.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/views.hbs b/ambari-web/app/templates/main/views.hbs
index cbbaa52..7fb3bf8 100644
--- a/ambari-web/app/templates/main/views.hbs
+++ b/ambari-web/app/templates/main/views.hbs
@@ -17,9 +17,9 @@
}}
<div id="views">
- <h4 class="background-text">{{t views.main.yourViews}}</h4>
+ <h2 class="table-title">{{t views.main.yourViews}}</h2>
{{#if view.views.length}}
- <table class="table views-table">
+ <table class="table table-hover views-table">
<tbody>
{{#each instance in view.views}}
{{#if instance.visible}}
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/wizard/step1.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/wizard/step1.hbs b/ambari-web/app/templates/wizard/step1.hbs
index f78f01c..01d74e8 100644
--- a/ambari-web/app/templates/wizard/step1.hbs
+++ b/ambari-web/app/templates/wizard/step1.hbs
@@ -53,13 +53,15 @@
{{#unless servicesForSelectedStack}}
<div class="alert alert-info" role="alert">{{t installer.step1.useLocalRepo.infoForm.content.empty}}</div>
{{/unless}}
- <table class="table table-striped table-condensed">
- {{#each service in servicesForSelectedStack}}
- <tr>
- <td class="col-md-4">{{service.displayName}}</td>
- <td class="col-md-8">{{service.latestVersion}}</td>
- </tr>
- {{/each}}
+ <table class="table table-hover">
+ <tbody>
+ {{#each service in servicesForSelectedStack}}
+ <tr>
+ <td class="col-md-4">{{service.displayName}}</td>
+ <td class="col-md-8">{{service.latestVersion}}</td>
+ </tr>
+ {{/each}}
+ </tbody>
</table>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/wizard/step3.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/wizard/step3.hbs b/ambari-web/app/templates/wizard/step3.hbs
index 7255528..9ef401c 100644
--- a/ambari-web/app/templates/wizard/step3.hbs
+++ b/ambari-web/app/templates/wizard/step3.hbs
@@ -56,7 +56,7 @@
</div>
<div class="pre-scrollable" style="max-height: 440px;">
- <table id="confirm-hosts-table" class="table table-bordered table-striped">
+ <table id="confirm-hosts-table" class="table table-hover">
<thead>
<tr>
<th class="tinyspan">
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/wizard/step4.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/wizard/step4.hbs b/ambari-web/app/templates/wizard/step4.hbs
index 97f4104..1083c7d 100644
--- a/ambari-web/app/templates/wizard/step4.hbs
+++ b/ambari-web/app/templates/wizard/step4.hbs
@@ -22,7 +22,7 @@
<div class="alert alert-info">
{{t installer.step4.body}}
</div>
- <table class="table table-striped">
+ <table class="table table-hover">
<thead>
<tr>
<th class="col-md-3" id="service-name">
@@ -35,7 +35,7 @@
<tbody>
{{#each controller}}
{{#unless isHiddenOnSelectServicePage}}
- <tr {{bindAttr class="isSelected:success isSelected:service-selected"}}>
+ <tr {{bindAttr class="isSelected:active isSelected:service-selected"}}>
<td>
<div class="checkbox">
<label>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/wizard/step6.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/wizard/step6.hbs b/ambari-web/app/templates/wizard/step6.hbs
index cb1e575..a53c0b3 100644
--- a/ambari-web/app/templates/wizard/step6.hbs
+++ b/ambari-web/app/templates/wizard/step6.hbs
@@ -29,7 +29,7 @@
{{/if}}
<div class="pre-scrollable">
- <table class="table" id="component_assign_table">
+ <table class="table table-hover" id="component_assign_table">
<thead>
<tr>
<th class="host-column">{{t common.host}}</th>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/templates/wizard/step9/step9_install_host_popup.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/wizard/step9/step9_install_host_popup.hbs b/ambari-web/app/templates/wizard/step9/step9_install_host_popup.hbs
index 9dd6344..c852137 100644
--- a/ambari-web/app/templates/wizard/step9/step9_install_host_popup.hbs
+++ b/ambari-web/app/templates/wizard/step9/step9_install_host_popup.hbs
@@ -17,7 +17,7 @@
}}
<div id="install-fail-popup" class="pre-scrollable">
- <table class="table table-striped">
+ <table class="table table-hover">
<thead>
<tr>
<th class="col-md-3">{{t common.host}}</th>
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c32fed7/ambari-web/app/views/main/alert_definitions_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/alert_definitions_view.js b/ambari-web/app/views/main/alert_definitions_view.js
index f2b5f56..a4a2ee8 100644
--- a/ambari-web/app/views/main/alert_definitions_view.js
+++ b/ambari-web/app/views/main/alert_definitions_view.js
@@ -350,10 +350,10 @@ App.MainAlertDefinitionsView = App.TableView.extend({
fieldType: 'filter-input-width',
template: Ember.Handlebars.compile(
'<div class="btn-group display-inline-block">' +
- '<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">' +
+ '<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">' +
'<span class="filters-label">{{t common.groups}}: </span>' +
'<span>{{view.selected.label}} <span class="caret"></span></span>' +
- '</a>' +
+ '</button>' +
'<ul class="dropdown-menu alert-groups-dropdown">' +
'{{#each category in view.content}}' +
'<li {{bindAttr class=":category-item category.selected:active"}}>' +
[2/6] ambari git commit: AMBARI-18597. Rename service to "Microsoft R
Server" and component to "Microsoft R Node Client". (Balazs Bence Sari via
stoader)
Posted by jo...@apache.org.
AMBARI-18597. Rename service to "Microsoft R Server" and component to "Microsoft R Node Client". (Balazs Bence Sari via stoader)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/61442de4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/61442de4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/61442de4
Branch: refs/heads/branch-feature-AMBARI-18456
Commit: 61442de4c6d8690595a5b331cda3890b9e26b5b9
Parents: e8544ba
Author: Balazs Bence Sari <bs...@hortonworks.com>
Authored: Mon Oct 17 10:59:39 2016 +0200
Committer: Toader, Sebastian <st...@hortonworks.com>
Committed: Mon Oct 17 10:59:39 2016 +0200
----------------------------------------------------------------------
.../scripts/shared_initialization.py | 2 +-
.../MICROSOFT_R/8.0.5/kerberos.json | 15 ----
.../MICROSOFT_R/8.0.5/metainfo.xml | 53 ------------
.../package/files/microsoft_r_serviceCheck.r | 28 ------
.../8.0.5/package/scripts/microsoft_r.py | 38 ---------
.../MICROSOFT_R/8.0.5/package/scripts/params.py | 31 -------
.../8.0.5/package/scripts/params_linux.py | 79 -----------------
.../8.0.5/package/scripts/params_windows.py | 26 ------
.../8.0.5/package/scripts/service_check.py | 89 --------------------
.../MICROSOFT_R/8.0.5/role_command_order.json | 6 --
.../MICROSOFT_R/8.0.5/service_advisor.py | 73 ----------------
.../MICROSOFT_R_SERVER/8.0.5/kerberos.json | 15 ++++
.../MICROSOFT_R_SERVER/8.0.5/metainfo.xml | 53 ++++++++++++
.../files/microsoft_r_server_serviceCheck.r | 28 ++++++
.../8.0.5/package/scripts/microsoft_r_server.py | 38 +++++++++
.../8.0.5/package/scripts/params.py | 31 +++++++
.../8.0.5/package/scripts/params_linux.py | 79 +++++++++++++++++
.../8.0.5/package/scripts/params_windows.py | 26 ++++++
.../8.0.5/package/scripts/service_check.py | 89 ++++++++++++++++++++
.../8.0.5/role_command_order.json | 6 ++
.../MICROSOFT_R_SERVER/8.0.5/service_advisor.py | 73 ++++++++++++++++
.../MICROSOFT_R/8.0.5/metainfo.xml | 47 -----------
.../MICROSOFT_R/8.0.5/repos/repoinfo.xml | 40 ---------
.../MICROSOFT_R_SERVER/8.0.5/metainfo.xml | 47 +++++++++++
.../MICROSOFT_R_SERVER/8.0.5/repos/repoinfo.xml | 40 +++++++++
.../src/main/resources/mpack.json | 10 +--
26 files changed, 531 insertions(+), 531 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
index 397c22d..5dce8e0 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
@@ -177,7 +177,7 @@ def create_dirs():
def create_microsoft_r_dir():
import params
- if 'MICROSOFT_R_SERVER_CLIENT' in params.component_list and params.default_fs:
+ if 'MICROSOFT_R_NODE_CLIENT' in params.component_list and params.default_fs:
directory = '/user/RevoShare'
try:
params.HdfsResource(directory,
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/kerberos.json
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/kerberos.json b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/kerberos.json
deleted file mode 100644
index 86fab2d..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/kerberos.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "services": [
- {
- "name": "MICROSOFT_R",
- "identities": [
- {
- "name": "/HDFS/NAMENODE/hdfs"
- },
- {
- "name": "/smokeuser"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/metainfo.xml
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/metainfo.xml b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/metainfo.xml
deleted file mode 100644
index 6c5f062..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/metainfo.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<metainfo>
- <schemaVersion>2.0</schemaVersion>
- <services>
- <service>
- <name>MICROSOFT_R</name>
- <displayName>Microsoft R</displayName>
- <comment>Microsoft R Server</comment>
- <version>8.0.5</version>
-
- <components>
- <component>
- <name>MICROSOFT_R_SERVER_CLIENT</name>
- <displayName>Microsoft R Server Client</displayName>
- <category>CLIENT</category>
- <cardinality>1+</cardinality>
- <commandScript>
- <script>scripts/microsoft_r.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>1200</timeout>
- </commandScript>
- </component>
- </components>
-
- <commandScript>
- <script>scripts/service_check.py</script>
- <scriptType>PYTHON</scriptType>
- <timeout>300</timeout>
- </commandScript>
-
- <requiredServices>
- <service>YARN</service>
- </requiredServices>
- </service>
- </services>
-</metainfo>
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/files/microsoft_r_serviceCheck.r
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/files/microsoft_r_serviceCheck.r b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/files/microsoft_r_serviceCheck.r
deleted file mode 100644
index e75c598..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/files/microsoft_r_serviceCheck.r
+++ /dev/null
@@ -1,28 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License */
-
-bigDataDirRoot <- "/tmp/share"
-myHadoopCluster <- RxHadoopMR(consoleOutput=TRUE)
-rxSetComputeContext(myHadoopCluster)
-source <- system.file("SampleData/AirlineDemoSmall.csv", package="RevoScaleR")
-inputDir <- file.path(bigDataDirRoot,"AirlineDemoSmall")
-rxHadoopMakeDir(inputDir)
-rxHadoopCopyFromLocal(source, inputDir)
-hdfsFS <- RxHdfsFileSystem()
-colInfo <- list(DayOfWeek = list(type = "factor",
-levels = c("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")))
-airDS <- RxTextData(file = inputDir, missingValueString = "M", colInfo = colInfo, fileSystem = hdfsFS)
-adsSummary <- rxSummary(~ArrDelay+CRSDepTime+DayOfWeek, data = airDS)
-adsSummary
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/microsoft_r.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/microsoft_r.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/microsoft_r.py
deleted file mode 100644
index f6eb33e..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/microsoft_r.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-"""
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-"""
-from resource_management.libraries.script import Script
-from resource_management.core.logger import Logger
-from resource_management.core.resources import Package
-
-
-class MicrosoftR(Script):
-
- def install(self, env):
- Logger.info('Installing R Server Client...')
- tmp_dir = Script.tmp_dir
- Logger.debug('Using temp dir: {0}'.format(tmp_dir))
- self.install_packages(env)
- Logger.info('Installed R Server')
-
- def configure(self, env):
- Logger.info('Configure R Server. Nothing to do.')
-
-if __name__ == "__main__":
- MicrosoftR().execute()
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params.py
deleted file mode 100644
index aa20797..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params.py
+++ /dev/null
@@ -1,31 +0,0 @@
-"""
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Ambari Agent
-
-"""
-from ambari_commons import OSCheck
-from resource_management.libraries.functions.default import default
-
-if OSCheck.is_windows_family():
- from params_windows import *
-else:
- from params_linux import *
-
-host_sys_prepped = default("/hostLevelParams/host_sys_prepped", False)
-
-revo_share_hdfs_folder = "/user/RevoShare"
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params_linux.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params_linux.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params_linux.py
deleted file mode 100644
index 71f17b6..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params_linux.py
+++ /dev/null
@@ -1,79 +0,0 @@
-"""
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Ambari Agent
-
-"""
-
-from resource_management.libraries.script.script import Script
-from resource_management.libraries.resources.hdfs_resource import HdfsResource
-from resource_management.libraries.functions import conf_select
-from resource_management.libraries.functions import stack_select
-from resource_management.libraries.functions import StackFeature
-from resource_management.libraries.functions.stack_features import check_stack_feature
-from resource_management.libraries.functions.version import format_stack_version
-from resource_management.libraries.functions.format import format
-from resource_management.libraries.functions.default import default
-from resource_management.libraries.functions import get_kinit_path
-from resource_management.libraries.functions.get_not_managed_resources import get_not_managed_resources
-
-# server configurations
-config = Script.get_config()
-tmp_dir = Script.get_tmp_dir()
-
-# New Cluster Stack Version that is defined during the RESTART of a Rolling Upgrade
-version = default("/commandParams/version", None)
-
-smokeuser = config['configurations']['cluster-env']['smokeuser']
-smokeuser_principal = config['configurations']['cluster-env']['smokeuser_principal_name']
-smoke_hdfs_user_mode = 0770
-user_group = config['configurations']['cluster-env']['user_group']
-security_enabled = config['configurations']['cluster-env']['security_enabled']
-smoke_user_keytab = config['configurations']['cluster-env']['smokeuser_keytab']
-hdfs_user_keytab = config['configurations']['hadoop-env']['hdfs_user_keytab']
-hdfs_user = config['configurations']['hadoop-env']['hdfs_user']
-kinit_path_local = get_kinit_path(default('/configurations/kerberos-env/executable_search_paths', None))
-
-# not supporting 32 bit jdk.
-java64_home = config['hostLevelParams']['java_home']
-
-hadoop_bin_dir = stack_select.get_hadoop_dir("bin")
-hdfs_user_principal = default('/configurations/hadoop-env/hdfs_principal_name', None)
-hdfs_site = config['configurations']['hdfs-site']
-default_fs = config['configurations']['core-site']['fs.defaultFS']
-dfs_type = default("/commandParams/dfs_type", "")
-hadoop_conf_dir = "/etc/hadoop/conf"
-
-
-import functools
-#create partial functions with common arguments for every HdfsResource call
-#to create/delete/copyfromlocal hdfs directories/files we need to call params.HdfsResource in code
-HdfsResource = functools.partial(
- HdfsResource,
- user=hdfs_user,
- hdfs_resource_ignore_file = "/var/lib/ambari-agent/data/.hdfs_resource_ignore",
- security_enabled = security_enabled,
- keytab = hdfs_user_keytab,
- kinit_path_local = kinit_path_local,
- hadoop_bin_dir = hadoop_bin_dir,
- hadoop_conf_dir = hadoop_conf_dir,
- principal_name = hdfs_user_principal,
- hdfs_site = hdfs_site,
- default_fs = default_fs,
- immutable_paths = get_not_managed_resources(),
- dfs_type = dfs_type
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params_windows.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params_windows.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params_windows.py
deleted file mode 100644
index 3eca213..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/params_windows.py
+++ /dev/null
@@ -1,26 +0,0 @@
-"""
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Ambari Agent
-
-"""
-from resource_management.libraries.script.script import Script
-
-# server configurations
-config = Script.get_config()
-
-stack_root = None
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/service_check.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/service_check.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/service_check.py
deleted file mode 100644
index 5368e94..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/package/scripts/service_check.py
+++ /dev/null
@@ -1,89 +0,0 @@
-"""
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Ambari Agent
-
-"""
-
-import os
-
-from resource_management.core.exceptions import Fail
-from resource_management.core.logger import Logger
-from resource_management.core.resources.system import Execute, File
-from resource_management.core.source import InlineTemplate, StaticFile
-from resource_management.libraries.functions.format import format
-from resource_management.libraries.script.script import Script
-from ambari_commons.os_family_impl import OsFamilyFuncImpl, OsFamilyImpl
-
-
-class MicrosoftRServiceCheck(Script):
- pass
-
-@OsFamilyImpl(os_family=OsFamilyImpl.DEFAULT)
-class MicrosoftRServiceCheckLinux(MicrosoftRServiceCheck):
- def service_check(self, env):
- import params
- env.set_params(params)
-
- try:
- params.HdfsResource(params.revo_share_hdfs_folder,
- type="directory",
- action="create_on_execute",
- owner=params.hdfs_user,
- mode=0777)
- params.HdfsResource(None, action="execute")
- except Exception as exception:
- Logger.warning("Could not check the existence of /user/RevoShare on HDFS, exception: {0}".format(str(exception)))
-
- if params.security_enabled:
- kinit_cmd = format("{kinit_path_local} -kt {smoke_user_keytab} {smokeuser_principal};")
- Execute(kinit_cmd,
- user=params.smokeuser
- )
-
- output_file = format('{tmp_dir}/microsoft_r_serviceCheck.out')
-
- File( format("{tmp_dir}/microsoft_r_serviceCheck.r"),
- content = StaticFile("microsoft_r_serviceCheck.r"),
- mode = 0755
- )
-
- Execute( format("Revo64 --no-save < {tmp_dir}/microsoft_r_serviceCheck.r | tee {output_file}"),
- tries = 1,
- try_sleep = 1,
- path = format('/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'),
- user = params.smokeuser,
- logoutput = True
- )
-
- # Verify correct output
- from resource_management.core import sudo
- output_content = sudo.read_file(format('{output_file}'))
- import re
- values_list = re.findall(r"\s(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday)\s+(\d*)", output_content)
- if 7 != len(values_list):
- Logger.info("Unable to verify output of service check run")
- raise Fail("Unable to verify output of service check run")
- dayCountDictionary = {'Monday': '97975', 'Tuesday': '77725', 'Wednesday': '78875', 'Thursday': '81304', 'Friday': '82987', 'Saturday': '86159', 'Sunday': '94975'}
- for (day, count) in values_list:
- if count != dayCountDictionary[day]:
- Logger.info("Service check produced incorrect output for {0}. Was expecting {1} but encountered {2}".format(day, dayCountDictionary[day], count))
- raise Fail("Service check produced incorrect output for {0}. Was expecting {1} but encountered {2}".format(day, dayCountDictionary[day], count))
-
-
-if __name__ == "__main__":
- MicrosoftRServiceCheck().execute()
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/role_command_order.json
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/role_command_order.json b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/role_command_order.json
deleted file mode 100755
index 6edbc2c..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/role_command_order.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "general_deps" : {
- "_comment" : "dependencies for Microsoft R",
- "MICROSOFT_R_SERVICE_CHECK-SERVICE_CHECK": ["NODEMANAGER-START"]
- }
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/service_advisor.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/service_advisor.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/service_advisor.py
deleted file mode 100644
index d48afec..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R/8.0.5/service_advisor.py
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/usr/bin/env ambari-python-wrap
-"""
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-"""
-import os
-import fnmatch
-import imp
-import socket
-import sys
-import traceback
-
-SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-STACKS_DIR = os.path.join(SCRIPT_DIR, '../../../../../stacks/')
-PARENT_FILE = os.path.join(STACKS_DIR, 'service_advisor.py')
-
-try:
- with open(PARENT_FILE, 'rb') as fp:
- service_advisor = imp.load_module('service_advisor', fp, PARENT_FILE, ('.py', 'rb', imp.PY_SOURCE))
-except Exception as e:
- traceback.print_exc()
- print "Failed to load parent"
-
-class MICROSOFT_R805ServiceAdvisor(service_advisor.ServiceAdvisor):
-
- def colocateService(self, hostsComponentsMap, serviceComponents):
- # colocate R_SERVER_CLIENT with NODEMANAGERs and YARN_CLIENTs
- rClientComponent = [component for component in serviceComponents if component["StackServiceComponents"]["component_name"] == "MICROSOFT_R_SERVER_CLIENT"]
- traceback.print_tb(None)
- rClientComponent = rClientComponent[0]
- if not self.isComponentHostsPopulated(rClientComponent):
- for hostName in hostsComponentsMap.keys():
- hostComponents = hostsComponentsMap[hostName]
- if ({"name": "NODEMANAGER"} in hostComponents or {"name": "YARN_CLIENT"} in hostComponents) \
- and {"name": "MICROSOFT_R_SERVER_CLIENT"} not in hostComponents:
- hostsComponentsMap[hostName].append({ "name": "MICROSOFT_R_SERVER_CLIENT" })
- if ({"name": "NODEMANAGER"} not in hostComponents and {"name": "YARN_CLIENT"} not in hostComponents) \
- and {"name": "MICROSOFT_R_SERVER_CLIENT"} in hostComponents:
- hostsComponentsMap[hostName].remove({"name": "MICROSOFT_R_SERVER_CLIENT"})
-
- def getServiceComponentLayoutValidations(self, services, hosts):
- componentsListList = [service["components"] for service in services["services"]]
- componentsList = [item["StackServiceComponents"] for sublist in componentsListList for item in sublist]
- hostsList = [host["Hosts"]["host_name"] for host in hosts["items"]]
- hostsCount = len(hostsList)
-
- rClientHosts = self.getHosts(componentsList, "MICROSOFT_R_SERVER_CLIENT")
- expectedrClientHosts = set(self.getHosts(componentsList, "NODEMANAGER")) | set(self.getHosts(componentsList, "YARN_CLIENT"))
-
- items = []
-
- # Generate WARNING if any R_SERVER_CLIENT is not colocated with NODEMANAGER or YARN_CLIENT
- mismatchHosts = sorted(expectedrClientHosts.symmetric_difference(set(rClientHosts)))
- if len(mismatchHosts) > 0:
- hostsString = ', '.join(mismatchHosts)
- message = "Microsoft R Server Client must be installed on NodeManagers and YARN Clients. " \
- "The following {0} host(s) do not satisfy the colocation recommendation: {1}".format(len(mismatchHosts), hostsString)
- items.append( { "type": 'host-component', "level": 'WARN', "message": message, "component-name": 'MICROSOFT_R_SERVER_CLIENT' } )
-
- return items
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/kerberos.json
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/kerberos.json b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/kerberos.json
new file mode 100644
index 0000000..6e4aa4c
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/kerberos.json
@@ -0,0 +1,15 @@
+{
+ "services": [
+ {
+ "name": "MICROSOFT_R_SERVER",
+ "identities": [
+ {
+ "name": "/HDFS/NAMENODE/hdfs"
+ },
+ {
+ "name": "/smokeuser"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/metainfo.xml
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/metainfo.xml b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/metainfo.xml
new file mode 100644
index 0000000..9f29864
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/metainfo.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<metainfo>
+ <schemaVersion>2.0</schemaVersion>
+ <services>
+ <service>
+ <name>MICROSOFT_R_SERVER</name>
+ <displayName>Microsoft R Server</displayName>
+ <comment>Microsoft R Server</comment>
+ <version>8.0.5</version>
+
+ <components>
+ <component>
+ <name>MICROSOFT_R_NODE_CLIENT</name>
+ <displayName>Microsoft R Node Client</displayName>
+ <category>CLIENT</category>
+ <cardinality>1+</cardinality>
+ <commandScript>
+ <script>scripts/microsoft_r_server.py</script>
+ <scriptType>PYTHON</scriptType>
+ <timeout>1200</timeout>
+ </commandScript>
+ </component>
+ </components>
+
+ <commandScript>
+ <script>scripts/service_check.py</script>
+ <scriptType>PYTHON</scriptType>
+ <timeout>300</timeout>
+ </commandScript>
+
+ <requiredServices>
+ <service>YARN</service>
+ </requiredServices>
+ </service>
+ </services>
+</metainfo>
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/files/microsoft_r_server_serviceCheck.r
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/files/microsoft_r_server_serviceCheck.r b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/files/microsoft_r_server_serviceCheck.r
new file mode 100644
index 0000000..e75c598
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/files/microsoft_r_server_serviceCheck.r
@@ -0,0 +1,28 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License */
+
+bigDataDirRoot <- "/tmp/share"
+myHadoopCluster <- RxHadoopMR(consoleOutput=TRUE)
+rxSetComputeContext(myHadoopCluster)
+source <- system.file("SampleData/AirlineDemoSmall.csv", package="RevoScaleR")
+inputDir <- file.path(bigDataDirRoot,"AirlineDemoSmall")
+rxHadoopMakeDir(inputDir)
+rxHadoopCopyFromLocal(source, inputDir)
+hdfsFS <- RxHdfsFileSystem()
+colInfo <- list(DayOfWeek = list(type = "factor",
+levels = c("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")))
+airDS <- RxTextData(file = inputDir, missingValueString = "M", colInfo = colInfo, fileSystem = hdfsFS)
+adsSummary <- rxSummary(~ArrDelay+CRSDepTime+DayOfWeek, data = airDS)
+adsSummary
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/microsoft_r_server.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/microsoft_r_server.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/microsoft_r_server.py
new file mode 100644
index 0000000..223cbd8
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/microsoft_r_server.py
@@ -0,0 +1,38 @@
+#!/usr/bin/env python
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+"""
+from resource_management.libraries.script import Script
+from resource_management.core.logger import Logger
+from resource_management.core.resources import Package
+
+
+class MicrosoftRServer(Script):
+
+ def install(self, env):
+ Logger.info('Installing R Node Client...')
+ tmp_dir = Script.tmp_dir
+ Logger.debug('Using temp dir: {0}'.format(tmp_dir))
+ self.install_packages(env)
+ Logger.info('Installed R Node Client')
+
+ def configure(self, env):
+ Logger.info('Configure R Server. Nothing to do.')
+
+if __name__ == "__main__":
+ MicrosoftRServer().execute()
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params.py
new file mode 100644
index 0000000..aa20797
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params.py
@@ -0,0 +1,31 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Ambari Agent
+
+"""
+from ambari_commons import OSCheck
+from resource_management.libraries.functions.default import default
+
+if OSCheck.is_windows_family():
+ from params_windows import *
+else:
+ from params_linux import *
+
+host_sys_prepped = default("/hostLevelParams/host_sys_prepped", False)
+
+revo_share_hdfs_folder = "/user/RevoShare"
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_linux.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_linux.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_linux.py
new file mode 100644
index 0000000..71f17b6
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_linux.py
@@ -0,0 +1,79 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Ambari Agent
+
+"""
+
+from resource_management.libraries.script.script import Script
+from resource_management.libraries.resources.hdfs_resource import HdfsResource
+from resource_management.libraries.functions import conf_select
+from resource_management.libraries.functions import stack_select
+from resource_management.libraries.functions import StackFeature
+from resource_management.libraries.functions.stack_features import check_stack_feature
+from resource_management.libraries.functions.version import format_stack_version
+from resource_management.libraries.functions.format import format
+from resource_management.libraries.functions.default import default
+from resource_management.libraries.functions import get_kinit_path
+from resource_management.libraries.functions.get_not_managed_resources import get_not_managed_resources
+
+# server configurations
+config = Script.get_config()
+tmp_dir = Script.get_tmp_dir()
+
+# New Cluster Stack Version that is defined during the RESTART of a Rolling Upgrade
+version = default("/commandParams/version", None)
+
+smokeuser = config['configurations']['cluster-env']['smokeuser']
+smokeuser_principal = config['configurations']['cluster-env']['smokeuser_principal_name']
+smoke_hdfs_user_mode = 0770
+user_group = config['configurations']['cluster-env']['user_group']
+security_enabled = config['configurations']['cluster-env']['security_enabled']
+smoke_user_keytab = config['configurations']['cluster-env']['smokeuser_keytab']
+hdfs_user_keytab = config['configurations']['hadoop-env']['hdfs_user_keytab']
+hdfs_user = config['configurations']['hadoop-env']['hdfs_user']
+kinit_path_local = get_kinit_path(default('/configurations/kerberos-env/executable_search_paths', None))
+
+# not supporting 32 bit jdk.
+java64_home = config['hostLevelParams']['java_home']
+
+hadoop_bin_dir = stack_select.get_hadoop_dir("bin")
+hdfs_user_principal = default('/configurations/hadoop-env/hdfs_principal_name', None)
+hdfs_site = config['configurations']['hdfs-site']
+default_fs = config['configurations']['core-site']['fs.defaultFS']
+dfs_type = default("/commandParams/dfs_type", "")
+hadoop_conf_dir = "/etc/hadoop/conf"
+
+
+import functools
+#create partial functions with common arguments for every HdfsResource call
+#to create/delete/copyfromlocal hdfs directories/files we need to call params.HdfsResource in code
+HdfsResource = functools.partial(
+ HdfsResource,
+ user=hdfs_user,
+ hdfs_resource_ignore_file = "/var/lib/ambari-agent/data/.hdfs_resource_ignore",
+ security_enabled = security_enabled,
+ keytab = hdfs_user_keytab,
+ kinit_path_local = kinit_path_local,
+ hadoop_bin_dir = hadoop_bin_dir,
+ hadoop_conf_dir = hadoop_conf_dir,
+ principal_name = hdfs_user_principal,
+ hdfs_site = hdfs_site,
+ default_fs = default_fs,
+ immutable_paths = get_not_managed_resources(),
+ dfs_type = dfs_type
+)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_windows.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_windows.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_windows.py
new file mode 100644
index 0000000..3eca213
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/params_windows.py
@@ -0,0 +1,26 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Ambari Agent
+
+"""
+from resource_management.libraries.script.script import Script
+
+# server configurations
+config = Script.get_config()
+
+stack_root = None
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/service_check.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/service_check.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/service_check.py
new file mode 100644
index 0000000..57b6681
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/package/scripts/service_check.py
@@ -0,0 +1,89 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Ambari Agent
+
+"""
+
+import os
+
+from resource_management.core.exceptions import Fail
+from resource_management.core.logger import Logger
+from resource_management.core.resources.system import Execute, File
+from resource_management.core.source import InlineTemplate, StaticFile
+from resource_management.libraries.functions.format import format
+from resource_management.libraries.script.script import Script
+from ambari_commons.os_family_impl import OsFamilyFuncImpl, OsFamilyImpl
+
+
+class MicrosoftRServerServiceCheck(Script):
+ pass
+
+@OsFamilyImpl(os_family=OsFamilyImpl.DEFAULT)
+class MicrosoftRServerServiceCheckLinux(MicrosoftRServerServiceCheck):
+ def service_check(self, env):
+ import params
+ env.set_params(params)
+
+ try:
+ params.HdfsResource(params.revo_share_hdfs_folder,
+ type="directory",
+ action="create_on_execute",
+ owner=params.hdfs_user,
+ mode=0777)
+ params.HdfsResource(None, action="execute")
+ except Exception as exception:
+ Logger.warning("Could not check the existence of /user/RevoShare on HDFS, exception: {0}".format(str(exception)))
+
+ if params.security_enabled:
+ kinit_cmd = format("{kinit_path_local} -kt {smoke_user_keytab} {smokeuser_principal};")
+ Execute(kinit_cmd,
+ user=params.smokeuser
+ )
+
+ output_file = format('{tmp_dir}/microsoft_r_server_serviceCheck.out')
+
+ File( format("{tmp_dir}/microsoft_r_server_serviceCheck.r"),
+ content = StaticFile("microsoft_r_server_serviceCheck.r"),
+ mode = 0755
+ )
+
+ Execute( format("Revo64 --no-save < {tmp_dir}/microsoft_r_server_serviceCheck.r | tee {output_file}"),
+ tries = 1,
+ try_sleep = 1,
+ path = format('/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'),
+ user = params.smokeuser,
+ logoutput = True
+ )
+
+ # Verify correct output
+ from resource_management.core import sudo
+ output_content = sudo.read_file(format('{output_file}'))
+ import re
+ values_list = re.findall(r"\s(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday)\s+(\d*)", output_content)
+ if 7 != len(values_list):
+ Logger.info("Unable to verify output of service check run")
+ raise Fail("Unable to verify output of service check run")
+ dayCountDictionary = {'Monday': '97975', 'Tuesday': '77725', 'Wednesday': '78875', 'Thursday': '81304', 'Friday': '82987', 'Saturday': '86159', 'Sunday': '94975'}
+ for (day, count) in values_list:
+ if count != dayCountDictionary[day]:
+ Logger.info("Service check produced incorrect output for {0}. Was expecting {1} but encountered {2}".format(day, dayCountDictionary[day], count))
+ raise Fail("Service check produced incorrect output for {0}. Was expecting {1} but encountered {2}".format(day, dayCountDictionary[day], count))
+
+
+if __name__ == "__main__":
+ MicrosoftRServerServiceCheck().execute()
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/role_command_order.json
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/role_command_order.json b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/role_command_order.json
new file mode 100755
index 0000000..c24ae31
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/role_command_order.json
@@ -0,0 +1,6 @@
+{
+ "general_deps" : {
+ "_comment" : "dependencies for Microsoft R Server",
+ "MICROSOFT_R_SERVER_SERVICE_CHECK-SERVICE_CHECK": ["NODEMANAGER-START"]
+ }
+}
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/service_advisor.py
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/service_advisor.py b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/service_advisor.py
new file mode 100644
index 0000000..0ecc310
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/common-services/MICROSOFT_R_SERVER/8.0.5/service_advisor.py
@@ -0,0 +1,73 @@
+#!/usr/bin/env ambari-python-wrap
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+import os
+import fnmatch
+import imp
+import socket
+import sys
+import traceback
+
+SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
+STACKS_DIR = os.path.join(SCRIPT_DIR, '../../../../../stacks/')
+PARENT_FILE = os.path.join(STACKS_DIR, 'service_advisor.py')
+
+try:
+ with open(PARENT_FILE, 'rb') as fp:
+ service_advisor = imp.load_module('service_advisor', fp, PARENT_FILE, ('.py', 'rb', imp.PY_SOURCE))
+except Exception as e:
+ traceback.print_exc()
+ print "Failed to load parent"
+
+class MICROSOFT_R_SERVER805ServiceAdvisor(service_advisor.ServiceAdvisor):
+
+ def colocateService(self, hostsComponentsMap, serviceComponents):
+ # colocate R_NODE_CLIENT with NODEMANAGERs and YARN_CLIENTs
+ rClientComponent = [component for component in serviceComponents if component["StackServiceComponents"]["component_name"] == "MICROSOFT_R_NODE_CLIENT"]
+ traceback.print_tb(None)
+ rClientComponent = rClientComponent[0]
+ if not self.isComponentHostsPopulated(rClientComponent):
+ for hostName in hostsComponentsMap.keys():
+ hostComponents = hostsComponentsMap[hostName]
+ if ({"name": "NODEMANAGER"} in hostComponents or {"name": "YARN_CLIENT"} in hostComponents) \
+ and {"name": "MICROSOFT_R_NODE_CLIENT"} not in hostComponents:
+ hostsComponentsMap[hostName].append({ "name": "MICROSOFT_R_NODE_CLIENT" })
+ if ({"name": "NODEMANAGER"} not in hostComponents and {"name": "YARN_CLIENT"} not in hostComponents) \
+ and {"name": "MICROSOFT_R_NODE_CLIENT"} in hostComponents:
+ hostsComponentsMap[hostName].remove({"name": "MICROSOFT_R_NODE_CLIENT"})
+
+ def getServiceComponentLayoutValidations(self, services, hosts):
+ componentsListList = [service["components"] for service in services["services"]]
+ componentsList = [item["StackServiceComponents"] for sublist in componentsListList for item in sublist]
+ hostsList = [host["Hosts"]["host_name"] for host in hosts["items"]]
+ hostsCount = len(hostsList)
+
+ rClientHosts = self.getHosts(componentsList, "MICROSOFT_R_NODE_CLIENT")
+ expectedrClientHosts = set(self.getHosts(componentsList, "NODEMANAGER")) | set(self.getHosts(componentsList, "YARN_CLIENT"))
+
+ items = []
+
+ # Generate WARNING if any R_NODE_CLIENT is not colocated with NODEMANAGER or YARN_CLIENT
+ mismatchHosts = sorted(expectedrClientHosts.symmetric_difference(set(rClientHosts)))
+ if len(mismatchHosts) > 0:
+ hostsString = ', '.join(mismatchHosts)
+ message = "Microsoft R Node Client must be installed on NodeManagers and YARN Clients. " \
+ "The following {0} host(s) do not satisfy the colocation recommendation: {1}".format(len(mismatchHosts), hostsString)
+ items.append( { "type": 'host-component', "level": 'WARN', "message": message, "component-name": 'MICROSOFT_R_NODE_CLIENT' } )
+
+ return items
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R/8.0.5/metainfo.xml
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R/8.0.5/metainfo.xml b/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R/8.0.5/metainfo.xml
deleted file mode 100644
index 9470d22..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R/8.0.5/metainfo.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<metainfo>
- <schemaVersion>2.0</schemaVersion>
- <services>
- <service>
- <name>MICROSOFT_R</name>
- <extends>common-services/MICROSOFT_R/8.0.5</extends>
- <version>8.0.5.0</version>
- <osSpecifics>
- <osSpecific>
- <osFamily>redhat6,redhat7,suse11</osFamily>
- <packages>
- <package>
- <name>microsoft-r-server-mro-8.0</name>
- </package>
- <package>
- <name>microsoft-r-server-intel-mkl-8.0</name>
- </package>
- <package>
- <name>microsoft-r-server-packages-8.0</name>
- </package>
- <package>
- <name>microsoft-r-server-hadoop-8.0</name>
- </package>
- </packages>
- </osSpecific>
- </osSpecifics>
- </service>
- </services>
-</metainfo>
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R/8.0.5/repos/repoinfo.xml
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R/8.0.5/repos/repoinfo.xml b/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R/8.0.5/repos/repoinfo.xml
deleted file mode 100644
index fac533d..0000000
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R/8.0.5/repos/repoinfo.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<reposinfo>
- <os family="redhat6">
- <repo>
- <baseurl>http://PLEASE_ENTER_REPO_URL</baseurl>
- <repoid>MSFT_R-8.0</repoid>
- <reponame>MSFT_R</reponame>
- </repo>
- </os>
- <os family="redhat7">
- <repo>
- <baseurl>http://PLEASE_ENTER_REPO_URL</baseurl>
- <repoid>MSFT_R-8.0</repoid>
- <reponame>MSFT_R</reponame>
- </repo>
- </os>
- <os family="suse11">
- <repo>
- <baseurl>http://PLEASE_ENTER_REPO_URL</baseurl>
- <repoid>MSFT_R-8.0</repoid>
- <reponame>MSFT_R</reponame>
- </repo>
- </os>
-</reposinfo>
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R_SERVER/8.0.5/metainfo.xml
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R_SERVER/8.0.5/metainfo.xml b/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R_SERVER/8.0.5/metainfo.xml
new file mode 100644
index 0000000..9d4f920
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R_SERVER/8.0.5/metainfo.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<metainfo>
+ <schemaVersion>2.0</schemaVersion>
+ <services>
+ <service>
+ <name>MICROSOFT_R_SERVER</name>
+ <extends>common-services/MICROSOFT_R_SERVER/8.0.5</extends>
+ <version>8.0.5.0</version>
+ <osSpecifics>
+ <osSpecific>
+ <osFamily>redhat6,redhat7,suse11</osFamily>
+ <packages>
+ <package>
+ <name>microsoft-r-server-mro-8.0</name>
+ </package>
+ <package>
+ <name>microsoft-r-server-intel-mkl-8.0</name>
+ </package>
+ <package>
+ <name>microsoft-r-server-packages-8.0</name>
+ </package>
+ <package>
+ <name>microsoft-r-server-hadoop-8.0</name>
+ </package>
+ </packages>
+ </osSpecific>
+ </osSpecifics>
+ </service>
+ </services>
+</metainfo>
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R_SERVER/8.0.5/repos/repoinfo.xml
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R_SERVER/8.0.5/repos/repoinfo.xml b/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R_SERVER/8.0.5/repos/repoinfo.xml
new file mode 100644
index 0000000..fac533d
--- /dev/null
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/custom-services/MICROSOFT_R_SERVER/8.0.5/repos/repoinfo.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<reposinfo>
+ <os family="redhat6">
+ <repo>
+ <baseurl>http://PLEASE_ENTER_REPO_URL</baseurl>
+ <repoid>MSFT_R-8.0</repoid>
+ <reponame>MSFT_R</reponame>
+ </repo>
+ </os>
+ <os family="redhat7">
+ <repo>
+ <baseurl>http://PLEASE_ENTER_REPO_URL</baseurl>
+ <repoid>MSFT_R-8.0</repoid>
+ <reponame>MSFT_R</reponame>
+ </repo>
+ </os>
+ <os family="suse11">
+ <repo>
+ <baseurl>http://PLEASE_ENTER_REPO_URL</baseurl>
+ <repoid>MSFT_R-8.0</repoid>
+ <reponame>MSFT_R</reponame>
+ </repo>
+ </os>
+</reposinfo>
http://git-wip-us.apache.org/repos/asf/ambari/blob/61442de4/contrib/management-packs/microsoft-r_mpack/src/main/resources/mpack.json
----------------------------------------------------------------------
diff --git a/contrib/management-packs/microsoft-r_mpack/src/main/resources/mpack.json b/contrib/management-packs/microsoft-r_mpack/src/main/resources/mpack.json
index eb7076c..d874db3 100644
--- a/contrib/management-packs/microsoft-r_mpack/src/main/resources/mpack.json
+++ b/contrib/management-packs/microsoft-r_mpack/src/main/resources/mpack.json
@@ -1,8 +1,8 @@
{
"type": "full-release",
- "name": "microsoft_r-ambari.mpack",
+ "name": "microsoft_r_server-ambari.mpack",
"version": "1.0.0.0",
- "description": "Ambari Management Pack for Microsoft R",
+ "description": "Ambari Management Pack for Microsoft R Server",
"prerequisites": {
"min-ambari-version": "2.2.0.0",
"min-stack-versions": [
@@ -14,17 +14,17 @@
},
"artifacts": [
{
- "name": "MICROSOFT_R-common-services",
+ "name": "MICROSOFT_R_SERVER-common-services",
"type" : "service-definitions",
"source_dir" : "common-services"
},
{
- "name" : "MICROSOFT_R-custom-services",
+ "name" : "MICROSOFT_R_SERVER-custom-services",
"type" : "stack-addon-service-definitions",
"source_dir": "custom-services",
"service_versions_map": [
{
- "service_name" : "MICROSOFT_R",
+ "service_name" : "MICROSOFT_R_SERVER",
"service_version" : "8.0.5",
"applicable_stacks" : [
{
[6/6] ambari git commit: Merge branch 'trunk' into
branch-feature-AMBARI-18456
Posted by jo...@apache.org.
Merge branch 'trunk' into branch-feature-AMBARI-18456
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/aa29f56c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/aa29f56c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/aa29f56c
Branch: refs/heads/branch-feature-AMBARI-18456
Commit: aa29f56cb8d5024602717716f6d218a695f92724
Parents: 5dff9ac 41c49e1
Author: Jonathan Hurley <jh...@hortonworks.com>
Authored: Mon Oct 17 10:16:43 2016 -0400
Committer: Jonathan Hurley <jh...@hortonworks.com>
Committed: Mon Oct 17 10:16:43 2016 -0400
----------------------------------------------------------------------
.../4.0.0.2.0/package/scripts/service_check.py | 9 +-
.../scripts/shared_initialization.py | 2 +-
.../stacks/HDP/2.6/services/YARN/metainfo.xml | 4 +
.../BlueprintConfigurationProcessorTest.java | 5 ++
ambari-web/app/styles/alerts.less | 14 ---
ambari-web/app/styles/application.less | 40 +--------
ambari-web/app/styles/config_history_flow.less | 3 -
ambari-web/app/styles/modal_popups.less | 5 +-
.../app/styles/theme/bootstrap-ambari.css | 38 ++++-----
.../templates/common/configs/overrideWindow.hbs | 34 ++++----
.../common/configs/propertyDependence.hbs | 2 +-
.../config_recommendation_popup.hbs | 2 +-
.../modal_popups/dependent_configs_list.hbs | 4 +-
.../modal_popups/hosts_table_list_popup.hbs | 16 ++--
ambari-web/app/templates/common/settings.hbs | 2 +-
ambari-web/app/templates/experimental.hbs | 8 +-
.../templates/main/admin/serviceAccounts.hbs | 2 +-
.../main/admin/stack_upgrade/services.hbs | 2 +-
.../upgrade_configs_merge_table.hbs | 4 +-
.../admin/stack_upgrade/upgrade_history.hbs | 2 +-
ambari-web/app/templates/main/alerts.hbs | 2 +-
.../alerts/add_definition_to_group_popup.hbs | 52 ++++++------
.../main/alerts/definition_details.hbs | 4 +-
.../templates/main/dashboard/config_history.hbs | 2 +-
ambari-web/app/templates/main/host.hbs | 2 +-
.../app/templates/main/host/addHost/step4.hbs | 2 +-
.../app/templates/main/host/host_alerts.hbs | 4 +-
ambari-web/app/templates/main/host/logs.hbs | 8 +-
.../app/templates/main/host/stack_versions.hbs | 2 +-
.../main/service/info/configs_save_popup.hbs | 20 +++--
ambari-web/app/templates/main/views.hbs | 4 +-
ambari-web/app/templates/wizard/step1.hbs | 16 ++--
ambari-web/app/templates/wizard/step3.hbs | 2 +-
ambari-web/app/templates/wizard/step4.hbs | 4 +-
ambari-web/app/templates/wizard/step6.hbs | 2 +-
.../wizard/step9/step9_install_host_popup.hbs | 2 +-
.../app/views/main/alert_definitions_view.js | 4 +-
.../MICROSOFT_R/8.0.5/kerberos.json | 15 ----
.../MICROSOFT_R/8.0.5/metainfo.xml | 53 ------------
.../package/files/microsoft_r_serviceCheck.r | 28 ------
.../8.0.5/package/scripts/microsoft_r.py | 38 ---------
.../MICROSOFT_R/8.0.5/package/scripts/params.py | 31 -------
.../8.0.5/package/scripts/params_linux.py | 79 -----------------
.../8.0.5/package/scripts/params_windows.py | 26 ------
.../8.0.5/package/scripts/service_check.py | 89 --------------------
.../MICROSOFT_R/8.0.5/role_command_order.json | 6 --
.../MICROSOFT_R/8.0.5/service_advisor.py | 73 ----------------
.../MICROSOFT_R_SERVER/8.0.5/kerberos.json | 15 ++++
.../MICROSOFT_R_SERVER/8.0.5/metainfo.xml | 53 ++++++++++++
.../files/microsoft_r_server_serviceCheck.r | 28 ++++++
.../8.0.5/package/scripts/microsoft_r_server.py | 38 +++++++++
.../8.0.5/package/scripts/params.py | 31 +++++++
.../8.0.5/package/scripts/params_linux.py | 79 +++++++++++++++++
.../8.0.5/package/scripts/params_windows.py | 26 ++++++
.../8.0.5/package/scripts/service_check.py | 89 ++++++++++++++++++++
.../8.0.5/role_command_order.json | 6 ++
.../MICROSOFT_R_SERVER/8.0.5/service_advisor.py | 73 ++++++++++++++++
.../MICROSOFT_R/8.0.5/metainfo.xml | 47 -----------
.../MICROSOFT_R/8.0.5/repos/repoinfo.xml | 40 ---------
.../MICROSOFT_R_SERVER/8.0.5/metainfo.xml | 47 +++++++++++
.../MICROSOFT_R_SERVER/8.0.5/repos/repoinfo.xml | 40 +++++++++
.../src/main/resources/mpack.json | 10 +--
62 files changed, 684 insertions(+), 706 deletions(-)
----------------------------------------------------------------------
[5/6] ambari git commit: AMBARI-18608. Give a reasonable error
message when oozie service_check fails due to nodocs docker option (aonishuk)
Posted by jo...@apache.org.
AMBARI-18608. Give a reasonable error message when oozie service_check fails due to nodocs docker option (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/41c49e16
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/41c49e16
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/41c49e16
Branch: refs/heads/branch-feature-AMBARI-18456
Commit: 41c49e162f156320a0c366f487beea0280b95e38
Parents: 5c32fed
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Mon Oct 17 16:18:52 2016 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Mon Oct 17 16:18:52 2016 +0300
----------------------------------------------------------------------
.../OOZIE/4.0.0.2.0/package/scripts/service_check.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/41c49e16/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/service_check.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/service_check.py b/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/service_check.py
index 3710117..1a3ab08 100644
--- a/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/service_check.py
+++ b/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/service_check.py
@@ -31,6 +31,10 @@ from ambari_commons import OSConst
from resource_management.core.logger import Logger
+NO_DOCS_FOLDER_MESSAGE = "Cannot find {oozie_examples_regex}. Possible reason is that /etc/yum.conf contains" \
+" tsflags=nodocs which prevents this folder from being installed along with oozie-client package." \
+" If this is the case, please fix /etc/yum.conf and re-install the package."
+
class OozieServiceCheck(Script):
pass
@@ -61,7 +65,10 @@ class OozieServiceCheckDefault(OozieServiceCheck):
)
os_family = System.get_instance().os_family
- oozie_examples_dir = glob.glob(params.oozie_examples_regex)[0]
+ oozie_examples_dir_regex_matches = glob.glob(params.oozie_examples_regex)
+ if not oozie_examples_dir_regex_matches:
+ raise Fail(format(NO_DOCS_FOLDER_MESSAGE))
+ oozie_examples_dir = oozie_examples_dir_regex_matches[0]
Execute((format("{tmp_dir}/{prepare_hdfs_file_name}"), params.conf_dir, oozie_examples_dir, params.hadoop_conf_dir, params.yarn_resourcemanager_address, params.fs_root, params.service_check_queue_name),
tries=3,
[3/6] ambari git commit: AMBARI-18503. MapReduce is showing incorrect
component version in HDP 2.6 (aonishuk)
Posted by jo...@apache.org.
AMBARI-18503. MapReduce is showing incorrect component version in HDP 2.6 (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9eb64a5e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9eb64a5e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9eb64a5e
Branch: refs/heads/branch-feature-AMBARI-18456
Commit: 9eb64a5e97cfc7d1ce67acd6cb4b4796c6ad3875
Parents: 645b2fb
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Mon Oct 17 16:01:35 2016 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Mon Oct 17 16:01:35 2016 +0300
----------------------------------------------------------------------
.../src/main/resources/stacks/HDP/2.6/services/YARN/metainfo.xml | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/9eb64a5e/ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/metainfo.xml
index 4856d4a..48b30a9 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/metainfo.xml
@@ -23,5 +23,9 @@
<name>YARN</name>
<version>2.7.1.2.5</version>
</service>
+ <service>
+ <name>MAPREDUCE2</name>
+ <version>2.7.1.2.5</version>
+ </service>
</services>
</metainfo>