You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2013/10/18 02:25:40 UTC
[18/30] AMBARI-3266. Contribute Ambari-SCOM. (Tom Beerbower via
mahadev)
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsKilledCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsKilledCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsKilledCollection.mpx
new file mode 100644
index 0000000..be6bd26
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsKilledCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceMapsKilled"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>maps_killed</PropertyName>
+ <CounterName>Maps Killed</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceMapsKilled">
+ <Name>Collect MapReduce Maps Killed</Name>
+ <Description>This rule collects number of killed map tasks for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceMapsKilled" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of killed map tasks for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsLaunchedCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsLaunchedCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsLaunchedCollection.mpx
new file mode 100644
index 0000000..6a35831
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsLaunchedCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceMapsLaunched"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>maps_launched</PropertyName>
+ <CounterName>Maps Launched</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceMapsLaunched">
+ <Name>Collect MapReduce Maps Launched</Name>
+ <Description>This rule collects number of launched map tasks for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceMapsLaunched" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of launched map tasks for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsRunningCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsRunningCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsRunningCollection.mpx
new file mode 100644
index 0000000..9f65fe0
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsRunningCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceMapsRunning"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>running_maps</PropertyName>
+ <CounterName>Running Map Tasks</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceMapsRunning">
+ <Name>Collect MapReduce Running Map Tasks</Name>
+ <Description>This rule collects number of running map tasks for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceMapsRunning" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of running map tasks for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsWaitingCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsWaitingCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsWaitingCollection.mpx
new file mode 100644
index 0000000..d3e438e
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/MapsWaitingCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceMapsWaiting"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>waiting_maps</PropertyName>
+ <CounterName>Waiting Map Tasks</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceMapsWaiting">
+ <Name>Collect MapReduce Waiting Map Tasks</Name>
+ <Description>This rule collects number of waiting map tasks for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceMapsWaiting" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of waiting map tasks for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/NumberOfTaskTrackersCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/NumberOfTaskTrackersCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/NumberOfTaskTrackersCollection.mpx
new file mode 100644
index 0000000..caab829
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/NumberOfTaskTrackersCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceNumberOfTaskTrackers"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>trackers</PropertyName>
+ <CounterName>Number of TaskTrackers</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceNumberOfTaskTrackers">
+ <Name>Collect MapReduce Number of TaskTrackers</Name>
+ <Description>This rule collects total number of TaskTrackers in Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceNumberOfTaskTrackers" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects total number of TaskTrackers in Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/OccupiedMapSlotsCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/OccupiedMapSlotsCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/OccupiedMapSlotsCollection.mpx
new file mode 100644
index 0000000..26faa50
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/OccupiedMapSlotsCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceOccupiedMapSlots"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>occupied_map_slots</PropertyName>
+ <CounterName>Occupied Map Slots</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceOccupiedMapSlots">
+ <Name>Collect MapReduce Occupied Map Slots</Name>
+ <Description>This rule collects number of occupied map slots for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceOccupiedMapSlots" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of occupied map slots for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/OccupiedReduceSlotsCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/OccupiedReduceSlotsCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/OccupiedReduceSlotsCollection.mpx
new file mode 100644
index 0000000..0da43c6
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/OccupiedReduceSlotsCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceOccupiedReduceSlots"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>occupied_reduce_slots</PropertyName>
+ <CounterName>Occupied Reduce Slots</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceOccupiedReduceSlots">
+ <Name>Collect MapReduce Reduced Slots Occupied</Name>
+ <Description>This rule collects number of occupied reduce slots for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceOccupiedReduceSlots" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of occupied reduce slots for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesCompletedCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesCompletedCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesCompletedCollection.mpx
new file mode 100644
index 0000000..66ca3f2
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesCompletedCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceReducesCompleted"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>reduces_completed</PropertyName>
+ <CounterName>Reduces Completed</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesCompleted">
+ <Name>Collect MapReduce Reduces Completed</Name>
+ <Description>This rule collects number of completed reduce tasks for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesCompleted" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of completed reduce tasks for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesFailedCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesFailedCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesFailedCollection.mpx
new file mode 100644
index 0000000..79bd7ce
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesFailedCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceReducesFailed"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>reduces_failed</PropertyName>
+ <CounterName>Reduces Failed</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesFailed">
+ <Name>Collect MapReduce Reduces Failed</Name>
+ <Description>This rule collects number of failed reduce tasks for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesFailed" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of failed reduce tasks for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesKilledCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesKilledCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesKilledCollection.mpx
new file mode 100644
index 0000000..d823341
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesKilledCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceReducesKilled"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>reduces_killed</PropertyName>
+ <CounterName>Reduces Killed</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesKilled">
+ <Name>Collect MapReduce Reduces Killed</Name>
+ <Description>This rule collects number of killed reduce tasks for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesKilled" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of killed reduce tasks for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesLaunchedCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesLaunchedCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesLaunchedCollection.mpx
new file mode 100644
index 0000000..f044ffe
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesLaunchedCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceReducesLaunched"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>reduces_launched</PropertyName>
+ <CounterName>Reduces Launched</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesLaunched">
+ <Name>Collect MapReduce Reduces Launched</Name>
+ <Description>This rule collects number of launched reduce tasks for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesLaunched" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of launched reduce tasks for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesRunningCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesRunningCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesRunningCollection.mpx
new file mode 100644
index 0000000..3802b20
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesRunningCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceReducesRunning"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>running_reduces</PropertyName>
+ <CounterName>Running Reduce tasks</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesRunning">
+ <Name>Collect MapReduce Running Reduce tasks</Name>
+ <Description>This rule collects number of running reduce tasks for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesRunning" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of running reduce tasks for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesWaitingCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesWaitingCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesWaitingCollection.mpx
new file mode 100644
index 0000000..91764fc
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReducesWaitingCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceReducesWaiting"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>waiting_reduces</PropertyName>
+ <CounterName>Waiting Reduce tasks</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesWaiting">
+ <Name>Collect MapReduce Waiting Reduce tasks</Name>
+ <Description>This rule collects number of waiting reduce tasks for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceReducesWaiting" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of waiting reduce tasks for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReservedMapSlotsCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReservedMapSlotsCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReservedMapSlotsCollection.mpx
new file mode 100644
index 0000000..6b02460
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReservedMapSlotsCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceReservedMapSlots"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>reserved_map_slots</PropertyName>
+ <CounterName>Reserved Map Slots</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceReservedMapSlots">
+ <Name>Collect MapReduce Map Slots Reserved</Name>
+ <Description>This rule collects number of reserved map slots for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceReservedMapSlots" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of reserved map slots for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReservedReduceSlotsCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReservedReduceSlotsCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReservedReduceSlotsCollection.mpx
new file mode 100644
index 0000000..fae4a96
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/ReservedReduceSlotsCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceReservedReduceSlots"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>reserved_reduce_slots</PropertyName>
+ <CounterName>Reserved Reduce Slots</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceReservedReduceSlots">
+ <Name>Collect MapReduce Reduced Slots Reserved</Name>
+ <Description>This rule collects number of reserved reduce slots for Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceReservedReduceSlots" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of reserved reduce slots for Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersBlacklistedCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersBlacklistedCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersBlacklistedCollection.mpx
new file mode 100644
index 0000000..a2e7a16
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersBlacklistedCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceTaskTrackersBlacklisted"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>trackers_blacklisted</PropertyName>
+ <CounterName>TaskTrackers Blacklisted</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceTaskTrackersBlacklisted">
+ <Name>Collect MapReduce TaskTrackers Blacklisted</Name>
+ <Description>This rule collects number of blacklisted TaskTrackers in Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceTaskTrackersBlacklisted" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of blacklisted TaskTrackers in Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersDecommissionedCollection.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersDecommissionedCollection.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersDecommissionedCollection.mpx
new file mode 100644
index 0000000..c8293f6
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersDecommissionedCollection.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceTaskTrackersDecommissioned"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>trackers_decommissioned</PropertyName>
+ <CounterName>TaskTrackers Decommissioned</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceTaskTrackersDecommissioned">
+ <Name>Collect MapReduce TaskTrackers Decommissioned</Name>
+ <Description>This rule collects number of decommissioned TaskTrackers in Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceTaskTrackersDecommissioned" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of decommissioned TaskTrackers in Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersGraylisted.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersGraylisted.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersGraylisted.mpx
new file mode 100644
index 0000000..657b49d
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Performance/MapReduceService/TaskTrackersGraylisted.mpx
@@ -0,0 +1,62 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.MapReduceTaskTrackersGraylisted"
+ Target="Ambari.SCOM.ClusterService.MapReduce"
+ Enabled="true" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.MapReduceServiceMetricsPerformanceDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ <PropertyName>trackers_graylisted</PropertyName>
+ <CounterName>TaskTrackers Graylisted</CounterName>
+ </DataSource>
+ </DataSources>
+ <WriteActions>
+ <WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.MapReduceTaskTrackersGraylisted">
+ <Name>Collect MapReduce TaskTrackers Graylisted</Name>
+ <Description>This rule collects number of graylisted TaskTrackers in Hadoop cluster.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.MapReduceTaskTrackersGraylisted" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects number of graylisted TaskTrackers in Hadoop cluster.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Widgets/LiveVsDeadNodes.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Widgets/LiveVsDeadNodes.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Widgets/LiveVsDeadNodes.mpx
new file mode 100644
index 0000000..dce489a
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Widgets/LiveVsDeadNodes.mpx
@@ -0,0 +1,75 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.WidgetLiveVsDeadNodes"
+ Target="Ambari.SCOM.ClusterService.Hdfs"
+ Enabled="false" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.HdfsServiceMetricsDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ </DataSource>
+ </DataSources>
+ <ConditionDetection ID="Mapper" TypeID="Ambari.SCOM.Module.PropertyBagMultiplePerformanceDataMapper">
+ <Mappings>
+ <Mapping>
+ <PropertyName>livenodes</PropertyName>
+ <ObjectName>Hadoop : Dashboards</ObjectName>
+ <CounterName>Live vs Dead Nodes</CounterName>
+ <InstanceName>Live Nodes</InstanceName>
+ </Mapping>
+ <Mapping>
+ <PropertyName>deadnodes</PropertyName>
+ <ObjectName>Hadoop : Dashboards</ObjectName>
+ <CounterName>Live vs Dead Nodes</CounterName>
+ <InstanceName>Dead Nodes</InstanceName>
+ </Mapping>
+ </Mappings>
+ </ConditionDetection>
+ <WriteActions>
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.WidgetLiveVsDeadNodes">
+ <Name>Collect Hadoop Live vs Dead DataNodes Widget Data</Name>
+ <Description>This rule collects data required for Live vs Dead DataNodes widget.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.WidgetLiveVsDeadNodes" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects data required for Live vs Dead DataNodes widget.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Widgets/SpaceUtilization.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Widgets/SpaceUtilization.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Widgets/SpaceUtilization.mpx
new file mode 100644
index 0000000..b7b3c8e
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Rules/Widgets/SpaceUtilization.mpx
@@ -0,0 +1,87 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Monitoring>
+ <Rules>
+ <Rule ID="Ambari.SCOM.PerformanceRule.WidgetSpaceUtilization"
+ Target="Ambari.SCOM.ClusterService.Hdfs"
+ Enabled="false" ConfirmDelivery="false">
+ <Category>PerformanceCollection</Category>
+ <DataSources>
+ <DataSource ID="DS" TypeID="Ambari.SCOM.Module.HdfsServiceMetricsDataSource">
+ <IntervalSeconds>900</IntervalSeconds>
+ <TimeoutSeconds>300</TimeoutSeconds>
+ </DataSource>
+ </DataSources>
+ <ConditionDetection ID="Mapper" TypeID="Ambari.SCOM.Module.PropertyBagMultiplePerformanceDataMapper">
+ <Mappings>
+ <Mapping>
+ <PropertyName>capacitytotalgb</PropertyName>
+ <ObjectName>Hadoop : Dashboards</ObjectName>
+ <CounterName>Space Utilization</CounterName>
+ <InstanceName>Total</InstanceName>
+ </Mapping>
+ <Mapping>
+ <PropertyName>capacityusedgb</PropertyName>
+ <ObjectName>Hadoop : Dashboards</ObjectName>
+ <CounterName>Space Utilization</CounterName>
+ <InstanceName>Used</InstanceName>
+ </Mapping>
+ <Mapping>
+ <PropertyName>capacityremaininggb</PropertyName>
+ <ObjectName>Hadoop : Dashboards</ObjectName>
+ <CounterName>Space Utilization</CounterName>
+ <InstanceName>Free</InstanceName>
+ </Mapping>
+ <Mapping>
+ <PropertyName>capacitynondfsusedgb</PropertyName>
+ <ObjectName>Hadoop : Dashboards</ObjectName>
+ <CounterName>Space Utilization</CounterName>
+ <InstanceName>Non-DFS Used</InstanceName>
+ </Mapping>
+ </Mappings>
+ </ConditionDetection>
+ <WriteActions>
+ <WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
+ </WriteActions>
+ </Rule>
+ </Rules>
+ </Monitoring>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.PerformanceRule.WidgetSpaceUtilization">
+ <Name>Collect Hadoop Space Utilization Widget Data</Name>
+ <Description>This rule collects data required for Space Utilization widget.</Description>
+ </DisplayString>
+ </DisplayStrings>
+
+ <KnowledgeArticles>
+ <KnowledgeArticle ElementID="Ambari.SCOM.PerformanceRule.WidgetSpaceUtilization" Visible="true">
+ <MamlContent>
+ <section xmlns="http://schemas.microsoft.com/maml/2004/10">
+ <title>Summary</title>
+ <para>Collects data required for Space Utilization widget.</para>
+ </section>
+ </MamlContent>
+ </KnowledgeArticle>
+ </KnowledgeArticles>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/RunAsProfiles.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/RunAsProfiles.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/RunAsProfiles.mpx
new file mode 100644
index 0000000..14e08c0
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/RunAsProfiles.mpx
@@ -0,0 +1,40 @@
+<!--## 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.-->
+
+<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <TypeDefinitions>
+ <SecureReferences>
+ <SecureReference ID="Ambari.SCOM.Profile.Workflow" Accessibility="Public" Context="System!System.Entity" />
+ <SecureReference ID="Ambari.SCOM.Profile.Ambari" Accessibility="Public" Context="System!System.Entity" />
+ </SecureReferences>
+ </TypeDefinitions>
+
+ <LanguagePacks>
+ <LanguagePack ID="ENU" IsDefault="true">
+ <DisplayStrings>
+ <DisplayString ElementID="Ambari.SCOM.Profile.Workflow">
+ <Name>Hadoop Workflow Account</Name>
+ <Description>This account is used to execute all Hadoop Monitoring workflows. This is typically a domain account.</Description>
+ </DisplayString>
+ <DisplayString ElementID="Ambari.SCOM.Profile.Ambari">
+ <Name>Hadoop Ambari Credentials</Name>
+ <Description>This account is used to access Ambari API.</Description>
+ </DisplayString>
+ </DisplayStrings>
+ </LanguagePack>
+ </LanguagePacks>
+</ManagementPackFragment>
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/DiscoveryHelpers.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/DiscoveryHelpers.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/DiscoveryHelpers.ps1
new file mode 100644
index 0000000..caad4b4
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/DiscoveryHelpers.ps1
@@ -0,0 +1,69 @@
+## 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.
+
+function MergeStrings($a, $b) {
+ $idxA = $idxb = 0
+ $result = New-Object char[] ($a.Length + $b.Length)
+ for ($idx = 0; $idx -lt $a.Length + $b.Length;) {
+ if ($idxa -lt $a.Length) { $result[$idx++] = $a[$idxa++] }
+ if ($idxb -lt $b.Length) { $result[$idx++] = $b[$idxb++] }
+ }
+ New-Object string ($result,0,$result.Length)
+}
+
+function FormatClusterServiceName($serviceName) {
+ switch ($serviceName) {
+ 'hdfs' { 'HDFS' }
+ 'mapreduce' { 'MapReduce' }
+ 'hive' { 'Hive' }
+ 'templeton' { 'Templeton' }
+ 'webhcat' { 'WebHCat' }
+ 'oozie' { 'Oozie' }
+ 'pig' { 'Pig' }
+ 'sqoop' { 'Sqoop' }
+ default { $serviceName }
+ }
+}
+
+function FormatHostComponentName($componentName) {
+ switch ($componentName) {
+ 'namenode' { 'NameNode' }
+ 'secondary_namenode' { 'Secondary NameNode' }
+ 'jobtracker' { 'JobTracker' }
+ 'datanode' { 'DataNode' }
+ 'tasktracker' { 'TaskTracker' }
+ 'hive_server' { 'Hive Server' }
+ 'hive_metastore' { 'Hive Metastore' }
+ 'hive_client' { 'Hive Client' }
+ 'templeton' { 'Templeton' }
+ 'webhcat_server' { 'WebHCat Server' }
+ 'oozie_server' { 'Oozie Server' }
+ 'pig' { 'Pig' }
+ 'sqoop' { 'Sqoop' }
+ default { $componentName }
+ }
+}
+
+function GetPrivateEntityDisplayName($entityDisplayName) {
+ "$entityDisplayName (Private)"
+}
+
+function CreateEmptyDiscoveryData() {
+ $discoveryData = $ScriptApi.CreateDiscoveryData(0, "$MPElement$", "$Target/Id$")
+ $discoveryData.IsSnapshot = $false
+ $discoveryData
+}
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/HealthServicesManagement.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/HealthServicesManagement.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/HealthServicesManagement.ps1
new file mode 100644
index 0000000..1aac81f
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/HealthServicesManagement.ps1
@@ -0,0 +1,43 @@
+## 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.
+
+function CreateHealthServicesFromWatcherNodesList($discoveryData, $watcherNodes) {
+ $healthServices = @()
+ foreach ($watcherNodeName in $WatcherNodes.Split(';', [StringSplitOptions]::RemoveEmptyEntries)) {
+ $healthServices += CreateHealthService $discoveryData $watcherNodeName
+ }
+ return ,$healthServices
+}
+
+function CreateHealthService($discoveryData, $computerName) {
+ $healthService = $discoveryData.CreateClassInstance("$MPElement[Name="SC!Microsoft.SystemCenter.HealthService"]$")
+ $healthService.AddProperty("$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$", $computerName)
+ $healthService
+}
+
+function AddManagementRelationship($discoveryData, $healthServices, [string]$targetName, $target) {
+ $relationship = $discoveryData.CreateRelationshipInstance("$MPElement[Name="SC!Microsoft.SystemCenter.HealthServiceShouldManageEntity"]$")
+ $relationship.Source = $healthServices[(GetHash $targetName) % $healthServices.Count]
+ $relationship.Target = $target
+ $discoveryData.AddInstance($relationship)
+}
+
+# TODO: Concider replacing this with MurMur-based consistent hashing?
+# For instance, based on few runs - this provides better distribution, then standard GetHashCode(), and do we care about consistency at all?
+function GetHash([Char[]]$s) { # Linear Congruential Generator
+ $s+([UInt64]$r=0)|%{$r=($r*[UInt32]0x8EF6E7+$_-band[UInt32]::MaxValue)%0x7FFFFFFF};$r
+}
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/JsonParser.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/JsonParser.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/JsonParser.ps1
new file mode 100644
index 0000000..c87ff8a
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/JsonParser.ps1
@@ -0,0 +1,57 @@
+## 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.
+
+try {
+ $JSONUtil = (Add-Type -Language JScript -MemberDefinition "static function parseJSON(json){return eval('('+json+')');}" -Name "JSONUtil" -PassThru)[1]
+} catch {
+ LogMessage "JSON" 1 "Failed to create JSON parser: $_"
+}
+
+function ParseJsonString([string] $jsonString) {
+ $jsObject = $JSONUtil::parseJSON($jsonString)
+ ConvertJsObject([ref]$jsObject)
+}
+
+function ConvertJsObject([ref]$objRef) {
+ $obj = $objRef.Value
+ if ($obj -is [Microsoft.JScript.ArrayObject]) {
+ return ,(ConvertJsArrayObject([ref]$obj))
+ } elseif ($obj -is [Microsoft.JScript.JSObject]) {
+ return ConvertJsScriptObject([ref]$obj)
+ } else {
+ return $obj
+ }
+}
+
+function ConvertJsScriptObject([ref]$objRef) {
+ $obj = $objRef.Value
+ $result = @{}
+ foreach ($fieldName in $obj) {
+ $result[$fieldName] = ConvertJsObject([ref]$obj[$fieldName])
+ }
+ $result
+}
+
+function ConvertJsArrayObject([ref]$arrayRef) {
+ $array = $arrayRef.Value
+ $result = @()
+ foreach ($index in $array) {
+ $conv = ConvertJsObject([ref]$array[$index])
+ $result += ,$conv
+ }
+ return ,$result
+}
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/Logging.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/Logging.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/Logging.ps1
new file mode 100644
index 0000000..7b9b0dd
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/Logging.ps1
@@ -0,0 +1,22 @@
+## 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.
+
+function LogMessage($workflowName, $severity, [string] $message) {
+ $header = "Ambari SCOM MP. $workflowName"
+ if (-not $ScriptApi) { $ScriptApi = New-Object -ComObject "MOM.ScriptAPI" }
+ $ScriptApi.LogScriptEvent($header, 901, $severity, $message)
+}
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/MonitoringHelpers.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/MonitoringHelpers.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/MonitoringHelpers.ps1
new file mode 100644
index 0000000..b996e2c
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/MonitoringHelpers.ps1
@@ -0,0 +1,38 @@
+## 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.
+
+function TryGetChildValue($source, $sourceKey) {
+ foreach ($subKey in @($sourceKey)) {
+ if ($source -eq $null) { return $null }
+ if ($subKey -eq $null) { continue }
+ $source = $source[$subKey]
+ }
+ $source
+}
+
+function AddToBagIfExists($propertyBag, $bagKey, $source, $path) {
+ if (($sourceValue = TryGetChildValue $source $path) -eq $null) { return $null }
+ $propertyBag.AddValue($bagKey, $sourceValue)
+ $sourceValue
+}
+
+$epochStartTimeStamp = New-Object DateTime @(1970, 1, 1, 0, 0, 0, [DateTimeKind]::Utc)
+
+function ToUnixEpochTimeStamp($timeStamp)
+{
+ [Math]::Floor($timeStamp.ToUniversalTime().Subtract($epochStartTimeStamp).TotalSeconds)
+}
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/RestApi.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/RestApi.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/RestApi.ps1
new file mode 100644
index 0000000..c5afb28
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Shared Scripts/RestApi.ps1
@@ -0,0 +1,48 @@
+## 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.
+
+$UserAgent = $("{0} (PowerShell {1}; .NET CLR {2}; {3})" -f "SCOM MP",
+ $(if ($Host.Version) { $Host.Version } else { "1.0" }),
+ [Environment]::Version,
+ [Environment]::OSVersion.ToString().Replace("Microsoft Windows ", "Win"))
+
+function InvokeRestAPI($uri, [string]$username, [string]$password) {
+ # TODO: Remove prior to release!
+ [System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }
+ $request = [System.Net.HttpWebRequest]::Create($uri)
+ $request.Method = 'GET'
+ $request.UserAgent = $UserAgent
+ $request.Timeout = 30000
+
+ $credentials = [Convert]::ToBase64String([Text.Encoding]::Default.GetBytes($username + ':' + $password));
+ $request.Headers.Add('Authorization', "Basic $credentials")
+
+ $response = $request.GetResponse()
+ if ($response.StatusCode -ne [System.Net.HttpStatusCode]::OK) {
+ throw "Ambari API response status is $($response.StatusDescription)."
+ }
+ $reader = [IO.StreamReader] $response.GetResponseStream()
+ $jsonString = $reader.ReadToEnd()
+ $reader.Close()
+ $response.Close()
+
+ ParseJsonString $jsonString
+}
+
+function JoinUri([string]$baseUri, [string]$segment) {
+ $baseUri.TrimEnd('/') + '/' + $segment.TrimStart('/')
+}
\ No newline at end of file