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:39 UTC

[17/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/Templates/DiscoveryTemplate.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Templates/DiscoveryTemplate.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Templates/DiscoveryTemplate.mpx
new file mode 100644
index 0000000..1024962
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/HadoopMp/Templates/DiscoveryTemplate.mpx
@@ -0,0 +1,358 @@
+<!--## 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">
+  <Templates>
+    <Template ID="Ambari.SCOM.Template.ClustersDiscovery">
+      <Configuration>
+        <xsd:element name="Name" type="xsd:string" />
+        <xsd:element name="Description" type="xsd:string" />
+        <xsd:element name="AmbariUri" type="xsd:string" />
+        <xsd:element name="RunAsAccount" type="xsd:string" />
+        <xsd:element name="WatcherNodesList" type="xsd:string" />
+        <xsd:element name="SeedComputerName" type="xsd:string" />
+        <xsd:element name="TemplateIdString" type="xsd:string" />
+      </Configuration>
+      <References>
+        <Reference ID="Self" />
+        <Reference ID="System" />
+        <Reference ID="Windows" />
+        <Reference ID="SC" />
+      </References>
+      <Implementation>
+        <TypeDefinitions>
+          <EntityTypes>
+            <ClassTypes>
+              <ClassType ID="Ambari.SCOM.AmbariSeed.$TemplateConfig/TemplateIdString$"
+                         Base="$Reference/Self$Ambari.SCOM.AmbariSeed"
+                         Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false" />
+              <ClassType ID="Ambari.SCOM.ClusterSeed.$TemplateConfig/TemplateIdString$"
+                         Base="$Reference/Self$Ambari.SCOM.ClusterSeed"
+                         Accessibility="Internal" Abstract="false" Hosted="false" Singleton="false" />
+            </ClassTypes>
+          </EntityTypes>
+        </TypeDefinitions>
+        <Monitoring>
+          <Discoveries>
+            <Discovery ID="Ambari.SCOM.Discovery.AmbariSeed.$TemplateConfig/TemplateIdString$" Enabled="true" Target="$Reference/SC$Microsoft.SystemCenter.ManagementGroup">
+              <Category>Discovery</Category>
+              <DiscoveryTypes>
+                <DiscoveryClass TypeID="Ambari.SCOM.AmbariSeed.$TemplateConfig/TemplateIdString$">
+                  <Property TypeID="$Reference/System$System.Entity" PropertyID="DisplayName" />
+                  <Property TypeID="$Reference/Self$Ambari.SCOM.AmbariSeed" PropertyID="AmbariUri" />
+                </DiscoveryClass>
+              </DiscoveryTypes>
+              <DataSource ID="DS" TypeID="$Reference/Self$Ambari.SCOM.Module.AmbariSeedDiscoveryDataSource">
+                <IntervalSeconds>14400</IntervalSeconds>
+                <SyncTime />
+                <TemplateName>$TemplateConfig/Name$</TemplateName>
+                <SeedClassId>$MPElement[Name="Ambari.SCOM.AmbariSeed.$TemplateConfig/TemplateIdString$"]$</SeedClassId>
+                <ComputerName>$TemplateConfig/SeedComputerName$</ComputerName>
+                <AmbariUri>$TemplateConfig/AmbariUri$</AmbariUri>
+              </DataSource>
+            </Discovery>
+            
+            <Discovery ID="Ambari.SCOM.Discovery.Clusters.$TemplateConfig/TemplateIdString$"
+                       Target="Ambari.SCOM.AmbariSeed.$TemplateConfig/TemplateIdString$"
+                       Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
+              <Category>Discovery</Category>
+              <DiscoveryTypes>
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.Cluster">
+                  <Property TypeID="$Reference/System$System.Entity" PropertyID="DisplayName" />
+                </DiscoveryClass>
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterProjection">
+                  <Property TypeID="$Reference/System$System.Entity" PropertyID="DisplayName" />
+                </DiscoveryClass>
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterSoftwareProjection" />
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterHardwareProjection" />
+                <DiscoveryRelationship TypeID="$Reference/SC$Microsoft.SystemCenter.HealthServiceShouldManageEntity" />
+                <DiscoveryRelationship TypeID="$Reference/Self$Ambari.SCOM.AmbariSeedContainsCluster" />
+                <DiscoveryRelationship TypeID="$Reference/Self$Ambari.SCOM.ClusterHostsClusterSoftwareProjection" />
+                <DiscoveryRelationship TypeID="$Reference/Self$Ambari.SCOM.ClusterHostsClusterHardwareProjection" />
+              </DiscoveryTypes>
+              <DataSource ID="DS" TypeID="$Reference/Self$Ambari.SCOM.Module.ClustersDiscoveryDataSource">
+                <IntervalSeconds>14400</IntervalSeconds>
+                <SyncTime />
+                <TimeoutSeconds>300</TimeoutSeconds>
+                <TemplateName>$Target/Property[Type="$Reference/Self$Ambari.SCOM.AmbariSeed"]/TemplateName$</TemplateName>
+                <SeedComputerName>$Target/Host/Property[Type="$Reference/Windows$Microsoft.Windows.Computer"]/PrincipalName$</SeedComputerName>
+                <ClusterSeedClassId>$MPElement[Name="Ambari.SCOM.ClusterSeed.$TemplateConfig/TemplateIdString$"]$</ClusterSeedClassId>
+                <AmbariUri>$Target/Property[Type="$Reference/Self$Ambari.SCOM.AmbariSeed"]/AmbariUri$</AmbariUri>
+                <ClustersQueryUriSegment>v1/clusters</ClustersQueryUriSegment>
+                <WatcherNodesList>$TemplateConfig/WatcherNodesList$</WatcherNodesList>
+              </DataSource>
+            </Discovery>
+
+            <Discovery ID="Ambari.SCOM.Discovery.Hosts.$TemplateConfig/TemplateIdString$"
+                       Target="Ambari.SCOM.ClusterSeed.$TemplateConfig/TemplateIdString$"
+                       Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
+              <Category>Discovery</Category>
+              <DiscoveryTypes>
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.Host">
+                  <Property TypeID="$Reference/System$System.Entity" PropertyID="DisplayName" />
+                  <Property TypeID="$Reference/Self$Ambari.SCOM.Host" PropertyID="IpAddress" />
+                </DiscoveryClass>
+                <DiscoveryRelationship TypeID="$Reference/SC$Microsoft.SystemCenter.HealthServiceShouldManageEntity" />
+                <DiscoveryRelationship TypeID="$Reference/Self$Ambari.SCOM.ClusterHardwareProjectionContainsHost" />
+              </DiscoveryTypes>
+              <DataSource ID="DS" TypeID="$Reference/Self$Ambari.SCOM.Module.HostsDiscoveryDataSource">
+                <IntervalSeconds>14400</IntervalSeconds>
+                <SyncTime />
+                <TimeoutSeconds>300</TimeoutSeconds>
+                <TemplateName>$Target/Property[Type="$Reference/Self$Ambari.SCOM.ClusterSeed"]/TemplateName$</TemplateName>
+                <ClusterName>$Target/Property[Type="$Reference/Self$Ambari.SCOM.ClusterSeed"]/ClusterName$</ClusterName>
+                <ClusterAmbariUri>$Target/Property[Type="$Reference/Self$Ambari.SCOM.AmbariManagedEntity"]/AmbariUri$</ClusterAmbariUri>
+                <WatcherNodesList>$TemplateConfig/WatcherNodesList$</WatcherNodesList>
+              </DataSource>
+            </Discovery>
+
+            <Discovery ID="Ambari.SCOM.Discovery.ClusterServices.$TemplateConfig/TemplateIdString$"
+                       Target="Ambari.SCOM.ClusterSeed.$TemplateConfig/TemplateIdString$"
+                       Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
+              <Category>Discovery</Category>
+              <DiscoveryTypes>
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterService">
+                  <Property TypeID="$Reference/System$System.Entity" PropertyID="DisplayName" />
+                </DiscoveryClass>
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterService.Hdfs" />
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterService.MapReduce" />
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterService.Hive" />
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterService.Templeton" />
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterService.Oozie" />
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterService.Pig" />
+                <DiscoveryClass TypeID="$Reference/Self$Ambari.SCOM.ClusterService.Sqoop" />
+                <DiscoveryRelationship TypeID="$Reference/SC$Microsoft.SystemCenter.HealthServiceShouldManageEntity" />
+                <DiscoveryRelationship TypeID="$Reference/Self$Ambari.SCOM.ClusterSoftwareProjectionContainsClusterService" />
+              </DiscoveryTypes>
+              <DataSource ID="DS" TypeID="$Reference/Self$Ambari.SCOM.Module.ClusterServicesDiscoveryDataSource">
+                <IntervalSeconds>14400</IntervalSeconds>
+                <SyncTime />
+                <TimeoutSeconds>300</TimeoutSeconds>
+                <TemplateName>$Target/Property[Type="$Reference/Self$Ambari.SCOM.ClusterSeed"]/TemplateName$</TemplateName>
+                <ClusterName>$Target/Property[Type="$Reference/Self$Ambari.SCOM.ClusterSeed"]/ClusterName$</ClusterName>
+                <ClusterAmbariUri>$Target/Property[Type="$Reference/Self$Ambari.SCOM.AmbariManagedEntity"]/AmbariUri$</ClusterAmbariUri>
+                <WatcherNodesList>$TemplateConfig/WatcherNodesList$</WatcherNodesList>
+              </DataSource>
+            </Discovery>
+          </Discoveries>
+          <Overrides>
+            <SecureReferenceOverride ID="Ambari.SCOM.Profile.Ambari.$TemplateConfig/TemplateIdString$.AmbariSeedOverride"
+                                     Context="Ambari.SCOM.AmbariSeed.$TemplateConfig/TemplateIdString$"
+                                     SecureReference="$Reference/Self$Ambari.SCOM.Profile.Ambari"
+                                     Enforced="false">
+              <Value>$TemplateConfig/RunAsAccount$</Value>
+            </SecureReferenceOverride>
+            <SecureReferenceOverride ID="Ambari.SCOM.Profile.Ambari.$TemplateConfig/TemplateIdString$.ClusterSeedOverride"
+                                     Context="Ambari.SCOM.ClusterSeed.$TemplateConfig/TemplateIdString$"
+                                     SecureReference="$Reference/Self$Ambari.SCOM.Profile.Ambari"
+                                     Enforced="false">
+              <Value>$TemplateConfig/RunAsAccount$</Value>
+            </SecureReferenceOverride>
+          </Overrides>
+        </Monitoring>
+        <LanguagePacks>
+          <LanguagePack ID="ENU" IsDefault="true">
+            <DisplayStrings>
+              <DisplayString ElementID="Ambari.SCOM.AmbariSeed.$TemplateConfig/TemplateIdString$">
+                <Name>Hadoop Ambari Service Seed ($TemplateConfig/Name$)</Name>
+                <Description>This class defines Hadoop Ambari Service Seed created by $TemplateConfig/Name$ template.</Description>
+              </DisplayString>
+              <DisplayString ElementID="Ambari.SCOM.ClusterSeed.$TemplateConfig/TemplateIdString$">
+                <Name>Hadoop Cluster Seed ($TemplateConfig/Name$)</Name>
+                <Description>This class defines Hadoop Cluster Seed created by $TemplateConfig/Name$ template.</Description>
+              </DisplayString>
+              <DisplayString ElementID="Ambari.SCOM.Discovery.AmbariSeed.$TemplateConfig/TemplateIdString$">
+                <Name>Hadoop Ambari Service Seed Discovery ($TemplateConfig/Name$)</Name>
+                <Description>This workflow discovers Hadoop Ambari Service Seed defined in the "$TemplateConfig/Name$" template.</Description>
+              </DisplayString>
+              <DisplayString ElementID="Ambari.SCOM.Discovery.Clusters.$TemplateConfig/TemplateIdString$">
+                <Name>Hadoop Clusters Discovery ($TemplateConfig/Name$)</Name>
+                <Description>This workflow discovers Hadoop Clusters managed by Ambari service defined in the "$TemplateConfig/Name$" template.</Description>
+              </DisplayString>
+              <DisplayString ElementID="Ambari.SCOM.Discovery.Hosts.$TemplateConfig/TemplateIdString$">
+                <Name>Hadoop Hosts Discovery ($TemplateConfig/Name$)</Name>
+                <Description>This workflow discovers Hadoop Hosts for specified Hadoop Cluster.</Description>
+              </DisplayString>
+              <DisplayString ElementID="Ambari.SCOM.Discovery.ClusterServices.$TemplateConfig/TemplateIdString$">
+                <Name>Hadoop Cluster Services Discovery ($TemplateConfig/Name$)</Name>
+                <Description>This workflow discovers Hadoop Cluster Services for specified Hadoop Cluster.</Description>
+              </DisplayString>
+            </DisplayStrings>
+          </LanguagePack>
+        </LanguagePacks>
+      </Implementation>
+    </Template>
+  </Templates>
+
+  <PresentationTypes>
+    <UIPages>
+      <UIPage ID="Ambari.SCOM.UIPage.ClustersDiscoveryTemplate.InputParser" Accessibility="Internal">
+        <Implementation>
+          <Assembly>Ambari.SCOM.Assembly.ScomPages</Assembly>
+          <Type>Ambari.SCOM.ScomPages.DiscoveryTemplate.InputParser</Type>
+        </Implementation>
+      </UIPage>
+      <UIPage ID="Ambari.SCOM.UIPage.ClustersDiscoveryTemplate.AmbariDetails" Accessibility="Public">
+        <Implementation>
+          <Assembly>Ambari.SCOM.Assembly.ScomPages</Assembly>
+          <Type>Ambari.SCOM.ScomPages.DiscoveryTemplate.AmbariDetailsPage</Type>
+        </Implementation>
+      </UIPage>
+      <UIPage ID="Ambari.SCOM.UIPage.ClustersDiscoveryTemplate.WatcherNodes" Accessibility="Public">
+        <Implementation>
+          <Assembly>Ambari.SCOM.Assembly.ScomPages</Assembly>
+          <Type>Ambari.SCOM.ScomPages.DiscoveryTemplate.WatcherNodesPage</Type>
+        </Implementation>
+      </UIPage>
+      <UIPage ID="Ambari.SCOM.UIPage.ClustersDiscoveryTemplate.Summary" Accessibility="Public">
+        <Implementation>
+          <Assembly>Ambari.SCOM.Assembly.ScomPages</Assembly>
+          <Type>Ambari.SCOM.ScomPages.DiscoveryTemplate.SummaryPage</Type>
+        </Implementation>
+      </UIPage>
+    </UIPages>
+    
+    <UIPageSets>
+      <UIPageSet ID="Ambari.SCOM.UIPageSet.ClustersDiscoveryTemplate"
+                 TypeDefinitionID="Ambari.SCOM.Template.ClustersDiscovery">
+        <UIPageReferences>
+          <UIPageReference ID="Ambari.SCOM.UIPageSet.ClustersDiscoveryTemplate.Reference1"
+                           PageID="System!System.NameAndDescriptionPage" Usage="CreationAndUpdate">
+            <InputTransform>
+              <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+                <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
+                <xsl:template match="/">
+                  <xsl:element name="Name">
+                    <xsl:value-of select="//Name" />
+                  </xsl:element>
+                  <xsl:element name="Description">
+                    <xsl:value-of select="//Description" />
+                  </xsl:element>
+                </xsl:template>
+              </xsl:stylesheet>
+            </InputTransform>
+          </UIPageReference>
+          <UIPageReference ID="Ambari.SCOM.UIPageSet.ClustersDiscoveryTemplate.Reference2"
+                           PageID="Ambari.SCOM.UIPage.ClustersDiscoveryTemplate.AmbariDetails" Usage="CreationAndUpdate">
+            <InputTransform>
+              <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+                <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
+                <xsl:template match="/">
+                  <xsl:element name="AmbariUri">
+                    <xsl:value-of select="//AmbariUri" />
+                  </xsl:element>
+                  <xsl:element name="RunAsAccount">
+                    <xsl:value-of select="//RunAsAccount" />
+                  </xsl:element>
+                </xsl:template>
+              </xsl:stylesheet>
+            </InputTransform>
+          </UIPageReference>
+          <UIPageReference ID="Ambari.SCOM.UIPageSet.ClustersDiscoveryTemplate.Reference3"
+                           PageID="Ambari.SCOM.UIPage.ClustersDiscoveryTemplate.WatcherNodes" Usage="CreationAndUpdate">
+            <InputTransform>
+              <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+                <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
+                <xsl:template match="/">
+                  <xsl:element name="WatcherNodesList">
+                    <xsl:value-of select="//WatcherNodesList" />
+                  </xsl:element>
+                  <xsl:element name="SeedComputerName">
+                    <xsl:value-of select="//SeedComputerName" />
+                  </xsl:element>
+                  <xsl:element name="TemplateIdString">
+                    <xsl:value-of select="//TemplateIdString" />
+                  </xsl:element>
+                </xsl:template>
+              </xsl:stylesheet>
+            </InputTransform>
+          </UIPageReference>
+          <UIPageReference ID="Ambari.SCOM.UIPageSet.ClustersDiscoveryTemplate.Referemce4"
+                           PageID="Ambari.SCOM.UIPage.ClustersDiscoveryTemplate.Summary" Usage="CreationOnly" />
+        </UIPageReferences>
+        <OutputTransform>
+          <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+            <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
+            <xsl:template match="/">
+              <xsl:element name="Configuration">
+                <xsl:element name="Name">
+                  <xsl:value-of select="/Name" />
+                </xsl:element>
+                <xsl:element name="Description">
+                  <xsl:value-of select="/Description" />
+                </xsl:element>
+                <xsl:element name="AmbariUri">
+                  <xsl:value-of select="/AmbariUri" />
+                </xsl:element>
+                <xsl:element name="RunAsAccount">
+                  <xsl:value-of select="/RunAsAccount" />
+                </xsl:element>
+                <xsl:element name="WatcherNodesList">
+                  <xsl:value-of select="/WatcherNodesList" />
+                </xsl:element>
+                <xsl:element name="SeedComputerName">
+                  <xsl:value-of select="/SeedComputerName" />
+                </xsl:element>
+                <xsl:element name="TemplateIdString">
+                  <xsl:value-of select="/TemplateIdString" />
+                </xsl:element>
+              </xsl:element>
+            </xsl:template>
+          </xsl:stylesheet>
+        </OutputTransform>
+      </UIPageSet>
+    </UIPageSets>
+  </PresentationTypes>
+
+  <Presentation>
+    <Folders>
+      <Folder ID="Ambari.SCOM.TemplateFolder.ClustersDiscovery" Accessibility="Public"
+              ParentFolder="OM!Microsoft.SystemCenter.OperationsManager.Authoring.TemplateParsers.Root" />
+    </Folders>
+
+    <FolderItems>
+      <FolderItem ID="Ambari.SCOM.Template.ClustersDiscovery"
+                  ElementID="Ambari.SCOM.Template.ClustersDiscovery"
+                  Folder="Ambari.SCOM.TemplateFolder.ClustersDiscovery" />
+
+      <FolderItem ID="Ambari.SCOM.UIPage.ClustersDiscoveryTemplate.InputParser"
+                  ElementID="Ambari.SCOM.UIPage.ClustersDiscoveryTemplate.InputParser"
+                  Folder="Ambari.SCOM.TemplateFolder.ClustersDiscovery" />
+    </FolderItems>
+
+    <ImageReferences>
+      <ImageReference ElementID="Ambari.SCOM.Template.ClustersDiscovery" ImageID="Ambari.SCOM.Resources.Images.Cluster16Icon" />
+      <ImageReference ElementID="Ambari.SCOM.Template.ClustersDiscovery" ImageID="Ambari.SCOM.Resources.Images.ClusterDiagramIcon" />
+    </ImageReferences>
+
+  </Presentation>
+
+  <LanguagePacks>
+    <LanguagePack ID="ENU" IsDefault="true">
+      <DisplayStrings>
+        <DisplayString ElementID="Ambari.SCOM.Template.ClustersDiscovery">
+          <Name>Ambari SCOM</Name>
+          <Description>This template allows you to monitor Hadoop Clusters through Ambari service.</Description>
+        </DisplayString>
+        <DisplayString ElementID="Ambari.SCOM.TemplateFolder.ClustersDiscovery">
+          <Name>Ambari SCOM Template</Name>
+        </DisplayString>
+      </DisplayStrings>
+    </LanguagePack>
+  </LanguagePacks>
+
+</ManagementPackFragment>

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Assets/EULA.rtf
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Assets/EULA.rtf b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Assets/EULA.rtf
new file mode 100644
index 0000000..497a6f3
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Assets/EULA.rtf
@@ -0,0 +1,38 @@
+{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033\deflangfe1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Helvetica;}{\f1\fnil\fcharset0 Calibri;}}
+{\colortbl ;\red51\green51\blue51;\red62\green79\blue144;\red255\green255\blue255;}
+{\*\generator Riched20 6.2.9200}{\*\mmathPr\mdispDef1\mwrapIndent1440 }\viewkind4\uc1 
+\pard\cbpat3\widctlpar\sa240\sl330\slmult0\cf1\f0\fs16 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\par
+
+\pard\cbpat3\widctlpar\sl330\slmult0\cf2\b 1. Definitions\cf1\b0 .  \par
+
+\pard\cbpat3\widctlpar\sa240\sl330\slmult0 "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\par
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\par
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\par
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.\par
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\par
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\par
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\par
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\par
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."\par
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\par
+
+\pard\cbpat3\widctlpar\sl330\slmult0\cf2\b 2. Grant of Copyright License\cf1\b0 . Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\par
+\cf2\b 3. Grant of Patent License\cf1\b0 . Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\par
+\cf2\b 4. Redistribution\cf1\b0 . You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\par
+
+\pard 
+{\pntext\f0 1.\tab}{\*\pn\pnlvlbody\pnf0\pnindent630\pnstart1\pndec{\pntxta.}}
+\fi-360\li450\sl330\slmult0 You must give any other recipients of the Work or Derivative Works a copy of this License; and\par
+{\pntext\f0 2.\tab}You must cause any modified files to carry prominent notices stating that You changed the files; and\par
+{\pntext\f0 3.\tab}You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\par
+{\pntext\f0 4.\tab}If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\~\line\line You may add Your own c
 opyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\par
+
+\pard\cbpat3\widctlpar\sl330\slmult0\cf2\b 5. Submission of Contributions\cf1\b0 . Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\par
+\cf2\b 6. Trademarks\cf1\b0 . This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\par
+\cf2\b 7. Disclaimer of Warranty\cf1\b0 . Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\par
+\cf2\b 8. Limitation of Liability\cf1\b0 . In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\par
+\cf2\b 9. Accepting Warranty or Additional Liability\cf1\b0 . While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\par
+
+\pard\cbpat3\widctlpar\sa240\sl330\slmult0 END OF TERMS AND CONDITIONS\cf0\f1\fs22\lang9\par
+}
+
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Components/ManagementPacksComponent.wxs
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Components/ManagementPacksComponent.wxs b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Components/ManagementPacksComponent.wxs
new file mode 100644
index 0000000..8f77075
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Components/ManagementPacksComponent.wxs
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--## 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.-->
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+  <Fragment>
+    <DirectoryRef Id="INSTALLLOCATION">
+      <Component Id="ManagementPacksComponent" Guid="53FFCF5E-F710-4F66-BB78-EEFBFB15C082">
+        <File Id="AmbariSCOMMonitoringmpb" Name="Ambari.SCOM.Monitoring.mpb" DiskId="1"
+          Source="Assets\ManagementPacks\Ambari.SCOM.Monitoring.mpb" Vital="yes" />
+        <File Id="AmbariSCOMManagementmpb" Name="Ambari.SCOM.Management.mpb" DiskId="1"
+          Source="Assets\ManagementPacks\Ambari.SCOM.Management.mpb" Vital="yes" />
+        <File Id="AmbariSCOMPresentationmpb" Name="Ambari.SCOM.Presentation.mpb" DiskId="1"
+          Source="Assets\ManagementPacks\Ambari.SCOM.Presentation.mpb" Vital="yes" />
+        <File Id="eulaRTF" Name="EULA.rtf" DiskId="1"
+          Source="Assets\EULA.rtf" Vital="yes" />
+      </Component>
+    </DirectoryRef>
+  </Fragment>
+</Wix>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Config.wxi
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Config.wxi b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Config.wxi
new file mode 100644
index 0000000..7c0bbd9
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Config.wxi
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--## 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.-->
+<Include>
+  <?define ProductName = 'Ambari SCOM Management Pack' ?>
+
+  <?define ProgramFilesFolder = "ProgramFilesFolder" ?>
+  <?define InstallDir = "Ambari SCOM Management Pack" ?>
+</Include>

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/InstallLocation.wxs
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/InstallLocation.wxs b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/InstallLocation.wxs
new file mode 100644
index 0000000..4b5dd95
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/InstallLocation.wxs
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--## 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.-->
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+  <?include $(sys.CURRENTDIR)\Config.wxi?>
+  
+	<Fragment>
+    <Directory Id="TARGETDIR" Name="SourceDir">
+      <Directory Id="$(var.ProgramFilesFolder)">
+        <Directory Id="SCOM_MANAGEMENT_PACKS_ROOT" Name="System Center Management Packs">
+          <Directory Id="INSTALLLOCATION" Name="$(var.InstallDir)" />
+        </Directory>
+      </Directory>
+    </Directory>
+	</Fragment>
+</Wix>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Installer.sln
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Installer.sln b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Installer.sln
new file mode 100644
index 0000000..6a1efa0
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Installer.sln
@@ -0,0 +1,35 @@
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+## 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.
+Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Installer", "Installer.wixproj", "{272A57D1-AB53-4E49-8315-418B4B1230A5}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|x86 = Debug|x86
+		Release|x86 = Release|x86
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{272A57D1-AB53-4E49-8315-418B4B1230A5}.Debug|x86.ActiveCfg = Debug|x86
+		{272A57D1-AB53-4E49-8315-418B4B1230A5}.Debug|x86.Build.0 = Debug|x86
+		{272A57D1-AB53-4E49-8315-418B4B1230A5}.Release|x86.ActiveCfg = Release|x86
+		{272A57D1-AB53-4E49-8315-418B4B1230A5}.Release|x86.Build.0 = Release|x86
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Installer.wixproj
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Installer.wixproj b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Installer.wixproj
new file mode 100644
index 0000000..781784d
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Installer.wixproj
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--## 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.-->
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+    <ProductVersion>3.7</ProductVersion>
+    <ProjectGuid>{272a57d1-ab53-4e49-8315-418b4b1230a5}</ProjectGuid>
+    <SchemaVersion>2.0</SchemaVersion>
+    <OutputName>AmbariSCOMManagementPack</OutputName>
+    <OutputType>Package</OutputType>
+    <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
+    <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
+    <SccProjectName>
+    </SccProjectName>
+    <SccProvider>
+    </SccProvider>
+    <SccAuxPath>
+    </SccAuxPath>
+    <SccLocalPath>
+    </SccLocalPath>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+    <OutputPath>bin\$(Configuration)\</OutputPath>
+    <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
+    <DefineConstants>Debug;</DefineConstants>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+    <OutputPath>bin\$(Configuration)\</OutputPath>
+    <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
+  </PropertyGroup>
+  <ItemGroup>
+    <Compile Include="Components\ManagementPacksComponent.wxs" />
+    <Compile Include="InstallLocation.wxs" />
+    <Compile Include="Product.wxs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="Assets\EULA.rtf" />
+    <Content Include="Assets\Icon.ico" />
+    <Content Include="Assets\ManagementPacks\Ambari.SCOM.Management.mpb" />
+    <Content Include="Assets\ManagementPacks\Ambari.SCOM.Monitoring.mpb" />
+    <Content Include="Assets\ManagementPacks\Ambari.SCOM.Presentation.mpb" />
+    <Content Include="Config.wxi" />
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="Assets" />
+    <Folder Include="Assets\ManagementPacks" />
+    <Folder Include="Localization" />
+    <Folder Include="Components" />
+  </ItemGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="Localization\en-us.wxl" />
+  </ItemGroup>
+  <ItemGroup>
+    <WixExtension Include="WixUtilExtension">
+      <HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
+      <Name>WixUtilExtension</Name>
+    </WixExtension>
+    <WixExtension Include="WixUIExtension">
+      <HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
+      <Name>WixUIExtension</Name>
+    </WixExtension>
+  </ItemGroup>
+  <Import Project="$(WixTargetsPath)" />
+  <!--
+	To modify your build process, add your task inside one of the targets below and uncomment it.
+	Other similar extension points exist, see Wix.targets.
+	<Target Name="BeforeBuild">
+	</Target>
+	<Target Name="AfterBuild">
+	</Target>
+	-->
+</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Localization/en-us.wxl
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Localization/en-us.wxl b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Localization/en-us.wxl
new file mode 100644
index 0000000..22cbb93
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Localization/en-us.wxl
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--## 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.-->
+<WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization">
+	<String Id="LANG">1033</String>
+
+  <String Id="FeatureCompleteTitle">Ambari SCOM Management Pack</String>
+  <String Id="FeatureCompleteDescription">All required Ambari SCOM Management Pack components.</String>
+  
+  <String Id="OpenTargetDirectory">Open Management Pack folder</String>
+</WixLocalization>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Product.wxs
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Product.wxs b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Product.wxs
new file mode 100644
index 0000000..d5019d5
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/Installer/Product.wxs
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--## 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.-->
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+  <?include $(sys.CURRENTDIR)\Config.wxi?>
+  
+	<Product Id="41F3A24C-67F0-46E6-B2A3-901F5BD2FD7D" Name="$(var.ProductName)"
+           Language="!(loc.LANG)" Version="1.0.0.0" Manufacturer="Apache Ambari"
+           UpgradeCode="D01B4971-5F87-4982-BDE3-467C36A51F3D">
+		<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
+
+    <!-- WixUI lib customizations. -->
+    <WixVariable Id="WixUILicenseRtf" Value="Assets\EULA.rtf" />
+
+    <!-- Add/Remove Program -->
+    <Property Id='ARPCONTACT'>http://www.apache.org/</Property>
+    <Property Id='ARPHELPLINK'>http://www.apache.org/</Property>
+    <Property Id='ARPURLINFOABOUT'>http://www.apache.org/</Property>
+    <Property Id="ARPNOREPAIR" Value="yes" />
+
+    <Icon Id="ARPICON" SourceFile="Assets\Icon.ico" />
+    <Property Id="ARPPRODUCTICON" Value="ARPICON" />
+
+    <Media Id="1" Cabinet="CONTENTS.cab" EmbedCab="yes" />
+
+    <UI>
+      <UIRef Id="WixUI_Minimal" />
+      <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
+    </UI>
+
+    <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="!(loc.OpenTargetDirectory)" />
+    <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" />
+    <Property Id="WixShellExecTarget" Value="[INSTALLLOCATION]" />
+    <CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
+
+    <Feature Id="Complete" Title="!(loc.FeatureCompleteTitle)" Description="!(loc.FeatureCompleteDescription)" Level="1">
+			<ComponentRef Id="ManagementPacksComponent" />
+		</Feature>
+	</Product>
+</Wix>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementMp.mpproj
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementMp.mpproj b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementMp.mpproj
new file mode 100644
index 0000000..2c34437
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementMp.mpproj
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--## 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.-->
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <ProjectGuid>{1bab40e2-b43f-469a-8583-cc196a792a38}</ProjectGuid>
+    <RootNamespace>Ambari.SCOM.Management</RootNamespace>
+    <Name>Ambari SCOM Management</Name>
+    <ManagementPackName>Ambari.SCOM.Management</ManagementPackName>
+    <Version>0.9.0.0</Version>
+    <MpFrameworkVersion>v7.0</MpFrameworkVersion>
+    <MpFrameworkProfile>OM</MpFrameworkProfile>
+    <ProductVersion>0.9.0.0</ProductVersion>
+    <SccProjectName>SAK</SccProjectName>
+    <SccProvider>SAK</SccProvider>
+    <SccAuxPath>SAK</SccAuxPath>
+    <SccLocalPath>SAK</SccLocalPath>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
+    <DebugSymbols>true</DebugSymbols>
+    <OutputPath>bin\Debug\</OutputPath>
+    <GenerateSealed>True</GenerateSealed>
+    <Company>MyCompany</Company>
+    <Copyright>Copyright (c) MyCompany. All rights reserved.</Copyright>
+    <DelaySigning>False</DelaySigning>
+    <AssemblyOriginatorKeyFile>..\Items\key.snk</AssemblyOriginatorKeyFile>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
+    <DebugSymbols>false</DebugSymbols>
+    <OutputPath>bin\Release\</OutputPath>
+    <DelaySigning>False</DelaySigning>
+    <Company>MyCompany</Company>
+    <Copyright>Copyright (c) MyCompany. All rights reserved.</Copyright>
+    <DelaySign>false</DelaySign>
+    <AssemblyOriginatorKeyFile>..\Items\key.snk</AssemblyOriginatorKeyFile>
+    <GenerateSealed>True</GenerateSealed>
+  </PropertyGroup>
+  <ItemGroup>
+    <ManagementPackReference Include="Microsoft.SystemCenter.Library">
+      <Alias>SC</Alias>
+      <PackageToBundle>False</PackageToBundle>
+    </ManagementPackReference>
+    <ManagementPackReference Include="Microsoft.Windows.Library">
+      <Alias>Windows</Alias>
+      <PackageToBundle>False</PackageToBundle>
+    </ManagementPackReference>
+    <ManagementPackReference Include="System.Health.Library">
+      <Alias>Health</Alias>
+      <PackageToBundle>False</PackageToBundle>
+    </ManagementPackReference>
+    <ManagementPackReference Include="System.Library">
+      <Alias>System</Alias>
+      <PackageToBundle>False</PackageToBundle>
+    </ManagementPackReference>
+    <ManagementPackReference Include="Microsoft.SystemCenter.Visualization.Library">
+      <Alias>Visualization</Alias>
+      <PackageToBundle>False</PackageToBundle>
+    </ManagementPackReference>
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="Modules" />
+    <Folder Include="Modules\Scripts" />
+    <Folder Include="Shared Scripts" />
+    <Folder Include="Tasks" />
+    <Folder Include="Tasks\HostComponent" />
+    <Folder Include="Tasks\ClusterService" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="ManagementPack.mpx">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Modules\BaseChangeStateWriteAction.mpx">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Modules\BaseScriptedWriteAction.mpx">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Modules\ChangeClusterServiceStateWriteAction.mpx">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Modules\ChangeHostComponentStateWriteAction.mpx">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Tasks\ClusterService\StartClusterService.mpx">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Tasks\ClusterService\StopClusterService.mpx">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Tasks\HostComponent\StartHostComponent.mpx">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Tasks\HostComponent\StopHostComponent.mpx">
+      <SubType>Code</SubType>
+    </Compile>
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\HadoopMp\HadoopMp.mpproj">
+      <Name>HadoopMp</Name>
+      <Project>{63b476b6-efcd-468f-80d9-94e2cff1b5db}</Project>
+      <Private>True</Private>
+      <Alias>HDLibrary</Alias>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="Modules\Scripts\ChangeClusterServiceState.ps1" />
+    <EmbeddedResource Include="Modules\Scripts\ChangeHostComponentState.ps1" />
+    <EmbeddedResource Include="Shared Scripts\Helpers.ps1" />
+    <EmbeddedResource Include="Shared Scripts\JsonParser.ps1" />
+    <EmbeddedResource Include="Shared Scripts\RestApi.ps1" />
+  </ItemGroup>
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\VSAC\Microsoft.SystemCenter.OperationsManager.targets" />
+</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementMp.mpproj.user
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementMp.mpproj.user b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementMp.mpproj.user
new file mode 100644
index 0000000..becb69a
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementMp.mpproj.user
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--## 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.-->
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <DeploymentNextVersion>1.0.0.53</DeploymentNextVersion>
+    <DeploymentAutoIncrementVersion>False</DeploymentAutoIncrementVersion>
+    <DeploymentStartAction>None</DeploymentStartAction>
+    <DeploymentWebConsoleUrl />
+    <DeploymentCommand />
+    <DeploymentCommandArguments />
+    <DeploymentDependencyMode>ProjectOnly</DeploymentDependencyMode>
+  </PropertyGroup>
+</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementPack.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementPack.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementPack.mpx
new file mode 100644
index 0000000..a7b7270
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/ManagementPack.mpx
@@ -0,0 +1,29 @@
+<!--## 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">
+  <LanguagePacks>
+    <LanguagePack ID="ENU" IsDefault="true">
+      <DisplayStrings>
+        <DisplayString ElementID="Ambari.SCOM.Management">
+          <Name>Ambari SCOM Management</Name>
+          <Description>This management pack enables Hadoop clusters management.</Description>
+        </DisplayString>
+      </DisplayStrings>
+    </LanguagePack>
+  </LanguagePacks>
+</ManagementPackFragment>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/BaseChangeStateWriteAction.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/BaseChangeStateWriteAction.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/BaseChangeStateWriteAction.mpx
new file mode 100644
index 0000000..c556793
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/BaseChangeStateWriteAction.mpx
@@ -0,0 +1,98 @@
+<!--## 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>
+    <ModuleTypes>
+      <WriteActionModuleType ID="Ambari.SCOM.Management.Module.BaseChangeStateWriteAction"
+                             RunAs="HDLibrary!Ambari.SCOM.Profile.Workflow"
+                             Accessibility="Internal">
+        <Configuration>
+          <IncludeSchemaTypes>
+            <SchemaType>Windows!Microsoft.Windows.PowerShellSchema</SchemaType>
+          </IncludeSchemaTypes>
+          <xsd:element name="TimeoutSeconds" type="xsd:int" />
+
+          <xsd:element name="ScriptName" type="NonNullString" />
+          <xsd:element name="MainScriptBody" type="NonNullString" />
+          
+          <xsd:element name="AmbariUri" type="xsd:string" />
+          <xsd:element name="TargetState" type="xsd:string" />
+          <xsd:element name="StatusPollingIntervalSeconds" type="xsd:int" />
+          <xsd:element name="OperationFriendlyName" type="xsd:string" />
+        </Configuration>
+        <OverrideableParameters />
+        <ModuleImplementation>
+          <Composite>
+            <MemberModules>
+              <WriteAction ID="Action" TypeID="Ambari.SCOM.Management.Module.BaseScriptedWriteAction">
+                <ScriptName>$Config/ScriptName$</ScriptName>
+                <ScriptBody>
+                  Param ($MonitoringAmbariUri, $TargetState, $StatusPollingInterval, $OperationFriendlyName, $Username, $Password)
+
+                  $Config/MainScriptBody$
+                </ScriptBody>
+                <Parameters>
+                  <Parameter>
+                    <Name>MonitoringAmbariUri</Name>
+                    <Value>$Config/AmbariUri$</Value>
+                  </Parameter>
+                  <Parameter>
+                    <Name>TargetState</Name>
+                    <Value>$Config/TargetState$</Value>
+                  </Parameter>
+                  <Parameter>
+                    <Name>StatusPollingInterval</Name>
+                    <Value>$Config/StatusPollingIntervalSeconds$</Value>
+                  </Parameter>
+                  <Parameter>
+                    <Name>OperationFriendlyName</Name>
+                    <Value>$Config/OperationFriendlyName$</Value>
+                  </Parameter>
+                  <Parameter>
+                    <Name>Username</Name>
+                    <Value>$RunAs[Name="HDLibrary!Ambari.SCOM.Profile.Ambari"]/UserName$</Value>
+                  </Parameter>
+                  <Parameter>
+                    <Name>Password</Name>
+                    <Value>$RunAs[Name="HDLibrary!Ambari.SCOM.Profile.Ambari"]/Password$</Value>
+                  </Parameter>
+                </Parameters>
+                <TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
+              </WriteAction>
+            </MemberModules>
+            <Composition>
+              <Node ID="Action" />
+            </Composition>
+          </Composite>
+        </ModuleImplementation>
+        <InputType>System!System.BaseData</InputType>
+      </WriteActionModuleType>
+    </ModuleTypes>
+  </TypeDefinitions>
+
+  <LanguagePacks>
+    <LanguagePack ID="ENU" IsDefault="true">
+      <DisplayStrings>
+        <DisplayString ElementID="Ambari.SCOM.Management.Module.BaseChangeStateWriteAction">
+          <Name>Hadoop Generic Change State Write Action</Name>
+          <Description>This module requests state change and tracks the progress of the request.</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/ManagementMp/Modules/BaseScriptedWriteAction.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/BaseScriptedWriteAction.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/BaseScriptedWriteAction.mpx
new file mode 100644
index 0000000..93e7214
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/BaseScriptedWriteAction.mpx
@@ -0,0 +1,74 @@
+<!--## 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>
+    <ModuleTypes>
+      <WriteActionModuleType ID="Ambari.SCOM.Management.Module.BaseScriptedWriteAction"
+                             RunAs="HDLibrary!Ambari.SCOM.Profile.Workflow"
+                             Accessibility="Internal">
+        <Configuration>
+          <IncludeSchemaTypes>
+            <SchemaType>Windows!Microsoft.Windows.PowerShellSchema</SchemaType>
+          </IncludeSchemaTypes>
+          <xsd:element name="ScriptName" type="NonNullString" />
+          <xsd:element name="ScriptBody" type="NonNullString" />
+          <xsd:element name="Parameters" type="NamedParametersType" />
+          <xsd:element name="TimeoutSeconds" type="xsd:int" />
+        </Configuration>
+        <OverrideableParameters />
+        <ModuleImplementation>
+          <Composite>
+            <MemberModules>
+              <WriteAction ID="Action" TypeID="Windows!Microsoft.Windows.PowerShellWriteAction">
+                <ScriptName>$Config/ScriptName$</ScriptName>
+                <ScriptBody>
+                  $Config/ScriptBody$
+
+                  $IncludeFileContent/Shared Scripts/Helpers.ps1$
+                  $IncludeFileContent/Shared Scripts/RestApi.ps1$
+                  $IncludeFileContent/Shared Scripts/JsonParser.ps1$
+
+                  Main
+                </ScriptBody>
+                <SnapIns />
+                <Parameters>$Config/Parameters$</Parameters>
+                <TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
+                <StrictErrorHandling>true</StrictErrorHandling>
+              </WriteAction>
+            </MemberModules>
+            <Composition>
+              <Node ID="Action" />
+            </Composition>
+          </Composite>
+        </ModuleImplementation>
+        <InputType>System!System.BaseData</InputType>
+      </WriteActionModuleType>
+    </ModuleTypes>
+  </TypeDefinitions>
+
+  <LanguagePacks>
+    <LanguagePack ID="ENU" IsDefault="true">
+      <DisplayStrings>
+        <DisplayString ElementID="Ambari.SCOM.Management.Module.BaseScriptedWriteAction">
+          <Name>Hadoop Generic PowerShell Write Action</Name>
+          <Description>This module allows you to execute PowerShell scripts from tasks.</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/ManagementMp/Modules/ChangeClusterServiceStateWriteAction.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/ChangeClusterServiceStateWriteAction.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/ChangeClusterServiceStateWriteAction.mpx
new file mode 100644
index 0000000..883431d
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/ChangeClusterServiceStateWriteAction.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">
+  <TypeDefinitions>
+    <ModuleTypes>
+      <WriteActionModuleType ID="Ambari.SCOM.Management.Module.ChangeClusterServiceStateWriteAction"
+                             RunAs="HDLibrary!Ambari.SCOM.Profile.Workflow"
+                             Accessibility="Internal">
+        <Configuration>
+          <xsd:element name="TimeoutSeconds" type="xsd:int" />
+          <xsd:element name="TargetState" type="xsd:string" />
+          <xsd:element name="StatusPollingIntervalSeconds" type="xsd:int" />
+          <xsd:element name="OperationFriendlyName" type="xsd:string" />
+        </Configuration>
+        <OverrideableParameters>
+          <OverrideableParameter ID="TimeoutSeconds" ParameterType="int" Selector="$Config/TimeoutSeconds$"/>
+          <OverrideableParameter ID="StatusPollingIntervalSeconds" ParameterType="int" Selector="$Config/StatusPollingIntervalSeconds$"/>
+        </OverrideableParameters>
+        <ModuleImplementation>
+          <Composite>
+            <MemberModules>
+              <WriteAction ID="Action" TypeID="Ambari.SCOM.Management.Module.BaseChangeStateWriteAction">
+                <TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
+                <ScriptName>ChangeClusterServiceState.ps1</ScriptName>
+                <MainScriptBody>$IncludeFileContent/Modules/Scripts/ChangeClusterServiceState.ps1$</MainScriptBody>
+
+                <AmbariUri>$Target/Host/Property[Type="HDLibrary!Ambari.SCOM.AmbariManagedEntity"]/AmbariUri$</AmbariUri>
+                <TargetState>$Config/TargetState$</TargetState>
+                <StatusPollingIntervalSeconds>$Config/StatusPollingIntervalSeconds$</StatusPollingIntervalSeconds>
+                <OperationFriendlyName>$Config/OperationFriendlyName$</OperationFriendlyName>
+              </WriteAction>
+            </MemberModules>
+            <Composition>
+              <Node ID="Action" />
+            </Composition>
+          </Composite>
+        </ModuleImplementation>
+        <InputType>System!System.BaseData</InputType>
+      </WriteActionModuleType>
+    </ModuleTypes>
+  </TypeDefinitions>
+
+  <LanguagePacks>
+    <LanguagePack ID="ENU" IsDefault="true">
+      <DisplayStrings>
+        <DisplayString ElementID="Ambari.SCOM.Management.Module.ChangeClusterServiceStateWriteAction">
+          <Name>Hadoop Change Cluster Service State Write Action</Name>
+          <Description>This module requests Cluster Service state change and tracks the progress of the request.</Description>
+        </DisplayString>
+
+        <DisplayString ElementID="Ambari.SCOM.Management.Module.ChangeClusterServiceStateWriteAction" SubElementID="TimeoutSeconds">
+          <Name>Timeout (sec)</Name>
+        </DisplayString>
+        <DisplayString ElementID="Ambari.SCOM.Management.Module.ChangeClusterServiceStateWriteAction" SubElementID="StatusPollingIntervalSeconds">
+          <Name>Status Polling Interval (sec)</Name>
+        </DisplayString>
+      </DisplayStrings>
+    </LanguagePack>
+  </LanguagePacks>
+</ManagementPackFragment>

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/ChangeHostComponentStateWriteAction.mpx
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/ChangeHostComponentStateWriteAction.mpx b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/ChangeHostComponentStateWriteAction.mpx
new file mode 100644
index 0000000..bdc80b0
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/ChangeHostComponentStateWriteAction.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">
+  <TypeDefinitions>
+    <ModuleTypes>
+      <WriteActionModuleType ID="Ambari.SCOM.Management.Module.ChangeHostComponentStateWriteAction"
+                             RunAs="HDLibrary!Ambari.SCOM.Profile.Workflow"
+                             Accessibility="Internal">
+        <Configuration>
+          <xsd:element name="TimeoutSeconds" type="xsd:int" />
+          <xsd:element name="TargetState" type="xsd:string" />
+          <xsd:element name="StatusPollingIntervalSeconds" type="xsd:int" />
+          <xsd:element name="OperationFriendlyName" type="xsd:string" />
+        </Configuration>
+        <OverrideableParameters>
+          <OverrideableParameter ID="TimeoutSeconds" ParameterType="int" Selector="$Config/TimeoutSeconds$"/>
+          <OverrideableParameter ID="StatusPollingIntervalSeconds" ParameterType="int" Selector="$Config/StatusPollingIntervalSeconds$"/>
+        </OverrideableParameters>
+        <ModuleImplementation>
+          <Composite>
+            <MemberModules>
+              <WriteAction ID="Action" TypeID="Ambari.SCOM.Management.Module.BaseChangeStateWriteAction">
+                <TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
+                <ScriptName>ChangeHostComponentState.ps1</ScriptName>
+                <MainScriptBody>$IncludeFileContent/Modules/Scripts/ChangeHostComponentState.ps1$</MainScriptBody>
+
+                <AmbariUri>$Target/Property[Type="HDLibrary!Ambari.SCOM.AmbariManagedEntity"]/AmbariUri$</AmbariUri>
+                <TargetState>$Config/TargetState$</TargetState>
+                <StatusPollingIntervalSeconds>$Config/StatusPollingIntervalSeconds$</StatusPollingIntervalSeconds>
+                <OperationFriendlyName>$Config/OperationFriendlyName$</OperationFriendlyName>
+              </WriteAction>
+            </MemberModules>
+            <Composition>
+              <Node ID="Action" />
+            </Composition>
+          </Composite>
+        </ModuleImplementation>
+        <InputType>System!System.BaseData</InputType>
+      </WriteActionModuleType>
+    </ModuleTypes>
+  </TypeDefinitions>
+
+  <LanguagePacks>
+    <LanguagePack ID="ENU" IsDefault="true">
+      <DisplayStrings>
+        <DisplayString ElementID="Ambari.SCOM.Management.Module.ChangeHostComponentStateWriteAction">
+          <Name>Hadoop Change Host Component State Write Action</Name>
+          <Description>This module requests Host Component state change and tracks the progress of the request.</Description>
+        </DisplayString>
+
+        <DisplayString ElementID="Ambari.SCOM.Management.Module.ChangeHostComponentStateWriteAction" SubElementID="TimeoutSeconds">
+          <Name>Timeout (sec)</Name>
+        </DisplayString>
+        <DisplayString ElementID="Ambari.SCOM.Management.Module.ChangeHostComponentStateWriteAction" SubElementID="StatusPollingIntervalSeconds">
+          <Name>Status Polling Interval (sec)</Name>
+        </DisplayString>
+      </DisplayStrings>
+    </LanguagePack>
+  </LanguagePacks>
+</ManagementPackFragment>

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/Scripts/ChangeClusterServiceState.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/Scripts/ChangeClusterServiceState.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/Scripts/ChangeClusterServiceState.ps1
new file mode 100644
index 0000000..74ea7b7
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/Scripts/ChangeClusterServiceState.ps1
@@ -0,0 +1,33 @@
+## 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 Main() {
+    TraceTaskExecution "Changing Cluster Service state to $TargetState."
+
+    $response = InvokeRestAPI $MonitoringAmbariUri $Username $Password 'PUT' ('{"RequestInfo":{"context":"' + $OperationFriendlyName + '"},"Body":{"ServiceInfo":{"state":"' + $TargetState +'"}}}')
+    if ($response.StatusCode -eq 200) {
+        TraceTaskExecution "Cluster Service already in $TargetState state."
+        return
+    }
+
+    if ($response.StatusCode -lt 200 -or $response.StatusCode -ge 300) {
+        throw "Failed to change Cluster Service state."
+    }
+    
+    $response = InvokeRestAPI $response.Body.href $Username $Password
+    WaitForTasksCompletion $response.Body.tasks
+}

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/Scripts/ChangeHostComponentState.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/Scripts/ChangeHostComponentState.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/Scripts/ChangeHostComponentState.ps1
new file mode 100644
index 0000000..2625ed9
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Modules/Scripts/ChangeHostComponentState.ps1
@@ -0,0 +1,33 @@
+## 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 Main() {
+    TraceTaskExecution "Changing Host Component state to $TargetState."
+
+    $response = InvokeRestAPI $MonitoringAmbariUri $Username $Password 'PUT' ('{"RequestInfo":{"context":"' + $OperationFriendlyName + '"},"Body":{"HostRoles":{"state":"' + $TargetState +'"}}}')
+    if ($response.StatusCode -eq 200) {
+        TraceTaskExecution "Host Component already in $TargetState state."
+        return
+    }
+
+    if ($response.StatusCode -lt 200 -or $response.StatusCode -ge 300) {
+        throw "Failed to change Host Component state."
+    }
+    
+    $response = InvokeRestAPI $response.Body.href $Username $Password
+    WaitForTasksCompletion $response.Body.tasks
+}

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Shared Scripts/Helpers.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Shared Scripts/Helpers.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Shared Scripts/Helpers.ps1
new file mode 100644
index 0000000..b850916
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Shared Scripts/Helpers.ps1	
@@ -0,0 +1,41 @@
+## 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 TraceTaskExecution($message) {
+    Write-Host "[$((Get-Date).ToString('MM/dd/yyyy HH:mm:ss'))] $message"
+}
+
+function WaitForTasksCompletion($scheduledTasks) {
+    $tasks = [System.Collections.ArrayList] $scheduledTasks
+
+    while ($tasks.Count -gt 0) {
+        Start-Sleep -s $StatusPollingInterval
+
+        for ($taskIndex = 0; $taskIndex -lt $tasks.Count; ++$taskIndex) {
+            $response = (InvokeRestAPI $tasks[$taskIndex].href $Username $Password).Body
+
+            TraceTaskExecution "Task $($response.Tasks.command) for $($response.Tasks.role) on $($response.Tasks.host_name) is $($response.Tasks.status)."
+            if ($response.Tasks.status -ne 'COMPLETED') { continue }
+
+            if ($response.Tasks.exit_code -eq 0) {
+                $tasks.RemoveAt($taskIndex--)
+            } else {
+                throw "Task $($response.Tasks.command) for $($response.Tasks.role) on $($response.Tasks.host_name) failed: $($response.Tasks.stderr)."
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/873b3502/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Shared Scripts/JsonParser.ps1
----------------------------------------------------------------------
diff --git a/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Shared Scripts/JsonParser.ps1 b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/Shared Scripts/JsonParser.ps1
new file mode 100644
index 0000000..a4c6b21
--- /dev/null
+++ b/contrib/ambari-scom/management-pack/Hadoop_MP/ManagementMp/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 {
+    TraceTaskExecution "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
+}