spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahesh Sawaiker <>
Subject spark-class code.
Date Thu, 06 Jul 2017 10:09:18 GMT
Excuse my low understand of shell script, but can someone explain in detail what this particular
piece of code in spark-class does?
I am trying to run some code with a customized jdk called hot tub

There was a specific problem with the line that prints $? , after I replaced it with just
some text, it started to work fine.

build_command() {
  "$RUNNER" -Xmx128m -cp "$LAUNCH_CLASSPATH" org.apache.spark.launcher.Main "$@"
  printf "%d\0" $?

# Turn off posix mode since it does not allow process substitution
set +o posix
while IFS= read -d '' -r ARG; do
done < <(build_command "$@")

LAST=$((COUNT - 1))

This e-mail may contain privileged and confidential information which is the property of Persistent
Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed.
If you are not the intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems Ltd. does not accept
any liability for virus infected mails.

View raw message