You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2017/07/18 15:03:22 UTC

[46/50] [abbrv] ambari git commit: AMBARI-21500 - Support SPARK2 upgrade for BI 4.2.5 to HDP 2.6.2 (jonathanhurley)

AMBARI-21500 - Support SPARK2 upgrade for BI 4.2.5 to HDP 2.6.2 (jonathanhurley)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/13bcea0b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/13bcea0b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/13bcea0b

Branch: refs/heads/branch-feature-AMBARI-21450
Commit: 13bcea0b0148d4296f7354c4ca5ba49f719caec6
Parents: 1534998
Author: Jonathan Hurley <jh...@hortonworks.com>
Authored: Mon Jul 17 13:35:09 2017 -0400
Committer: Jonathan Hurley <jh...@hortonworks.com>
Committed: Mon Jul 17 13:35:09 2017 -0400

----------------------------------------------------------------------
 .../4.2.5/upgrades/config-upgrade.xml           | 11 +++++
 .../upgrades/nonrolling-upgrade-to-hdp-2.6.xml  | 51 ++++++++++++++++++++
 2 files changed, 62 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/13bcea0b/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/config-upgrade.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/config-upgrade.xml b/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/config-upgrade.xml
index f1a954e..8c009a7 100644
--- a/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/config-upgrade.xml
+++ b/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/config-upgrade.xml
@@ -210,5 +210,16 @@
         </changes>
       </component>
     </service>
+    
+    <service name="SPARK2">
+      <component name="SPARK2_CLIENT">
+        <changes>
+          <definition xsi:type="configure" id="hdp_2_6_0_0_spark2_yarn_queue">
+            <type>spark2-defaults</type>
+            <set key="spark.yarn.queue" value="default" if-type="spark-defaults" if-key="spark.yarn.queue" if-key-state="absent"/>
+          </definition>
+        </changes>
+      </component>
+    </service>
   </services>
 </upgrade-config-changes>

http://git-wip-us.apache.org/repos/asf/ambari/blob/13bcea0b/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml b/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml
index 5f1e06c..7c1a9ce 100644
--- a/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml
+++ b/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/upgrades/nonrolling-upgrade-to-hdp-2.6.xml
@@ -64,6 +64,11 @@
         <component>SPARK_JOBHISTORYSERVER</component>
         <component>SPARK_THRIFTSERVER</component>
       </service>
+      
+      <service name="SPARK2">
+        <component>SPARK2_JOBHISTORYSERVER</component>
+        <component>SPARK2_THRIFTSERVER</component>
+      </service>
 
       <service name="HIVE">
         <component>WEBHCAT_SERVER</component>
@@ -272,6 +277,13 @@
       <execute-stage service="OOZIE" component="OOZIE_SERVER" title="Apply config changes for Oozie server">
         <task xsi:type="configure" id="biginsights_4_2_oozie_server_update_environment_tomcat" />
       </execute-stage>
+      
+      <!-- SPARK2 -->
+      <execute-stage service="SPARK2" component="SPARK2_CLIENT" title="Apply config changes for Spark">
+        <task xsi:type="configure" id="hdp_2_6_0_0_spark2_yarn_queue">
+          <summary>Add queue customization property</summary>
+        </task>
+      </execute-stage>      
     </group>
 
 
@@ -513,6 +525,17 @@
         <component>SPARK_THRIFTSERVER</component>
       </service>
     </group>
+    
+    <group xsi:type="restart" name="SPARK2" title="Spark2">
+      <service-check>false</service-check>
+      <skippable>true</skippable>
+      <supports-auto-skip-failure>false</supports-auto-skip-failure>
+      <parallel-scheduler/>
+      <service name="SPARK2">
+        <component>SPARK2_JOBHISTORYSERVER</component>
+        <component>SPARK2_THRIFTSERVER</component>
+      </service>
+    </group>
 
     <group xsi:type="restart" name="SPARK_CLIENTS" title="Spark Clients">
       <service-check>false</service-check>
@@ -522,6 +545,15 @@
         <component>SPARK_CLIENT</component>
       </service>
     </group>
+    
+    <group xsi:type="restart" name="SPARK2_CLIENTS" title="Spark2 Clients">
+      <service-check>false</service-check>
+      <skippable>true</skippable>
+      <parallel-scheduler/>
+      <service name="SPARK2">
+        <component>SPARK2_CLIENT</component>
+      </service>
+    </group>
 
     <!-- Upgrade Oozie DB only on Upgrade direction, and always create a new ShareLib. -->
     <group name="UPGRADE_OOZIE" title="Upgrade Oozie Database">
@@ -563,6 +595,7 @@
         <service>SLIDER</service>
         <service>HIVE</service>
         <service>SPARK</service>
+        <service>SPARK2</service>
         <service>OOZIE</service>
       </priority>
     </group>
@@ -908,6 +941,24 @@
         </upgrade>
       </component>
     </service>
+    
+    <service name="SPARK2">
+      <component name="SPARK2_JOBHISTORYSERVER">
+        <upgrade>
+          <task xsi:type="restart-task"/>
+        </upgrade>
+      </component>
+      <component name="SPARK2_THRIFTSERVER">
+        <upgrade>
+          <task xsi:type="restart-task"/>
+        </upgrade>
+      </component>
+      <component name="SPARK2_CLIENT">
+        <upgrade>
+          <task xsi:type="restart-task"/>
+        </upgrade>
+      </component>
+    </service>
 
     <service name="OOZIE">
       <component name="OOZIE_SERVER">