Pre-Upgrade Steps for Spark
Complete the following steps before you upgrade Spark with or without the Installer.
Pre-Upgrade Steps for Spark Standalone
About this task
Procedure
- 
                    Copy configuration files from
                            
/opt/mapr/spark/spark-<version>/confto a location outside of the Data Fabric installation directory.For example, if Spark SQL is configured to work with Hive, copy the/opt/mapr/spark/spark-<version>/conf/hive-site.xmlfile to a backup directory. - 
                    Shut down the spark-master, spark-historyserver services (if the
                        spark-historyserver is running).
                    
maprcli node services -nodes <node-ip> -name spark-master -action stop maprcli node services -nodes <node-ip> -name spark-historyserver -action stop - 
                    As the 
mapruser, stop the secondary instances:For Spark 2.x:/opt/mapr/spark/spark-<version>/sbin/stop-slaves.shFor Sparx 3.x:/opt/mapr/spark/spark-<version>/sbin/stop-workers.sh 
Pre-Upgrade Steps for Spark on YARN
Procedure
- 
                    Copy configuration files from
                            
/opt/mapr/spark/spark-<version>/confto a location outside of the installation directory.For example, if Spark SQL is configured to work with Hive, copy the/opt/mapr/spark/spark-<version>/conf/hive-site.xmlfile to a backup directory. - 
                    Shut down the spark-historyserver services (if the spark-historyserver is
                        running): 
                    
maprcli node services -nodes <node-ip> -name spark-historyserver -action stop