为了更方便的查询并产生报表, 需要使用shell脚本调用spark-sql
spark/bin/spark-sql --master spark://host:7077 -f ${SQL_FILE} > ${OUT_FILE}