GitHub user naisbitt opened a pull request:
https://github.com/apache/spark/pull/9231
[SPARK-11264] ./bin/spark-class can't find assembly jars with certain
GREP_OPTIONS set
Temporarily remove GREP_OPTIONS if set in bin/spark-class.
Some GREP_OPTIONS will modify the output of the grep commands that are
looking for the assembly jars.
For example, if the -n option is specified, the grep output will look like:
5:spark-assembly-1.5.1-hadoop2.4.0.jar
This will not match the regular expressions, and so the jar files will not
be found. We could improve the regular expression to handle this case and trim
off extra characters, but it is difficult to know which options may or may not
be set. Unsetting GREP_OPTIONS within the script handles all the cases and
gives the desired output.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/naisbitt/spark unset-GREP_OPTIONS
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9231.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #9231
----
commit 5f6c4719188b77b5f7357a168ba4509748591606
Author: Jeffrey Naisbitt <[email protected]>
Date: 2015-10-22T19:25:15Z
Temporarily remove GREP_OPTIONS if set.
Some GREP_OPTIONS will modify the output of the grep commands that are
looking for the assembly jars.
For example, if the -n option is specified, the grep output will look like:
5:spark-assembly-1.5.1-hadoop2.4.0.jar
This will not match the regular expression, and so the jar files will not
be found. We could improve the regular expression to handle this case and trim
off extra characters, but it is difficult to know which options may or may not
be set. Unsetting GREP_OPTIONS within the script handles all the cases and
gives the desired output.
----
---
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]