kdzhao commented on a change in pull request #28731: URL: https://github.com/apache/spark/pull/28731#discussion_r443874572
########## File path: bin/beeline ########## @@ -28,5 +28,7 @@ if [ -z "${SPARK_HOME}" ]; then source "$(dirname "$0")"/find-spark-home fi +. "${SPARK_HOME}"/bin/load-spark-env.sh + CLASS="org.apache.hive.beeline.BeeLine" -exec "${SPARK_HOME}/bin/spark-class" $CLASS "$@" +exec "${SPARK_HOME}/bin/spark-class" $SPARK_SUBMIT_OPTS $CLASS "$@" Review comment: I think I misspoke for it. What I want to say is, in hive, looks like its beeline command is just call to hive with different parameters: https://github.com/apache/hive/blob/branch-1.2/bin/beeline https://github.com/apache/hive/blob/branch-1.2/bin/hive Agree that hive's beeline doesn't read spark parameter, and I would assume it reads its own (I saw "HADOOP_CLIENT_OPTS" etc in above script). Now back to spark, agree with you that fixing it in spark-class might cover more cases. On another side, so far only the beeline has this issue, so an easy fix on the beeline script also makes sense as a stopgap. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org