Hope this will help anyone:
Add or modify below properties
Ambari > Spark > Configs > Custom spark-defaults
spark.eventLog.enabled = true
spark.history.fs.logDirectory = hdfs://<fs.defaultFS>/<directory-to-your-spark-logs>
Ambari > Spark > Configs > Advanced spark-defaults
spark.history.provider = org.apache.spark.deploy.history.FsHistoryProvider