How to redirect entire output of spark-submit to a file How to redirect entire output of spark-submit to a file linux linux