Description
Currently several unit tests inline the logic to compute spark home. Secondly the error that is thrown when spark home is not set prints the entire environment making it difficult to find the actual root cause which is "spark home is not set".
1. Refactor the code to compute the spark home in a common place (SQLHelper.scala)
2. Change the error message to make it more readable.