Github user gvramana commented on a diff in the pull request:
https://github.com/apache/spark/pull/3377#discussion_r20761970
--- Diff: bin/run-example ---
@@ -35,9 +35,9 @@ else
fi
if [ -f "$FWDIR/RELEASE" ]; then
- export SPARK_EXAMPLES_JAR="`ls "$FWDIR"/lib/spark-examples-*hadoop*.jar`"
-elif [ -e
"$EXAMPLES_DIR"/target/scala-$SPARK_SCALA_VERSION/spark-examples-*hadoop*.jar
]; then
- export SPARK_EXAMPLES_JAR="`ls
"$EXAMPLES_DIR"/target/scala-$SPARK_SCALA_VERSION/spark-examples-*hadoop*.jar`"
+ export SPARK_EXAMPLES_JAR="`ls -t
"$FWDIR"/lib/spark-examples-*hadoop*.jar 2>>/dev/null | head -1`"
--- End diff --
I understand that required jar will not always be latest. But failing with
script error confuses user. We can at least correct to give a proper error
message.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]