4.2.3 Upgrading Spark
- Stop the spark worker and master services by running the following commands in the given order:
sudo systemctl stop spark-slave.service
sudo systemctl stop spark-master.service
- cd /u01/app/spark
- Create a backup folder and copy all the contents of spark inside it.
- Copy the new spark zip file and extract it. Move all contents from the extracted folder to
spark_home
folder:/u01/app/spark
- Copy
spark-defaults.conf
andspark-env.sh
from backupspark conf
folder to newspark conf
folder - Copy jars from OSA to spark home:
cp ${OSA_HOME}/lib/jetty-util-9.4.53.v20231009.jar ${SPARK_HOME}/jars/jetty-util-9.4.53.v20231009.jar
cp ${OSA_HOME}/osa-base/bin/osa.installer.jar ${SPARK_HOME}/jars/osa.installer.jar
cp ${OSA_HOME}/osa-base/lib/ext/mysql-connector-java-8.0.12.jar ${SPARK_HOME}/jars/mysql-connector-java-8.0.12.jar
cp ${OSA_HOME}/osa-base/lib/ext/ojdbc8.jar ${SPARK_HOME}/jars/ojdbc8.jar
cp ${OSA_HOME}/osa-base/lib/ext/osa.spark-integration.model.jar ${SPARK_HOME}/jars/osa.spark-integration.model.jar
- Start the spark master and worker by running the following commands in the given order:
sudo systemctl restart spark-master.service
sudo systemctl restart spark-slave.service
If you encounter any issues, check the logs, or run the ggsa-services
command.