GitHub user ScrapCodes opened a pull request:
https://github.com/apache/spark/pull/71
[WIP] SPARK-964 Fix for -java-home note.
I just did a manual testing of this.
with -java-home "jdk", setting just JAVA_HOME and both. Hope it covers all
cases.
It is work in progress since it is not ready to merge. Once #17 is merged
this can be rebased.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ScrapCodes/spark-1 java8-lambdas5
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/71.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 #71
----
commit c33dc2c1b2d2fc06a69ecfd136576af85bb56226
Author: Prashant Sharma <[email protected]>
Date: 2014-02-24T10:20:26Z
SPARK-964, Java 8 API Support.
This patch adds a few methods to java API such that it is possible to pass
lambdas instead
of Anonymous classes and also java 6/7 api users can use the same apis by
passing anonymous classes.
To achieve this a few older API methods are removed and replaced with their
ToPair/ToDouble versions.
1) all anonymous classes extending scala Function is replaced by interfaces.
2) Adds optional to run java 8 tests
Please refer to PR comments for more details.
commit 4ab87d3551f0b74e4fb6da611a5baea7aba93c6c
Author: Prashant Sharma <[email protected]>
Date: 2014-02-25T05:32:15Z
Review feedback on the pr
commit 31d4cd63c8f2965a4f864459e5dcf3ab029ec2eb
Author: Prashant Sharma <[email protected]>
Date: 2014-02-25T11:01:53Z
Maven build to support -Pjava8-tests flag.
commit 35d8d79e4f1ccb6491b81fd670043e2b6c60a815
Author: Prashant Sharma <[email protected]>
Date: 2014-02-26T10:04:01Z
Specified java 8 building in the docs
commit 26eb3f60ae421c07522952c1334ad9a16e3bd822
Author: Prashant Sharma <[email protected]>
Date: 2014-03-03T08:24:24Z
Patrick's comments on PR.
Added a "Upgrading from pre-1.0 versions of Spark" section in the Java
programming guide.
Added brief README file in the java8-tests directory that explains what it
is?
Fixed "When running the tests in Maven, all of the output is sent console,
and not the test summaries as they were running."
Fixed " hard to get SBT to use the correct Java version without setting
Java 8 as my system default."
added a warning to dev/run-tests script if the Java version is less than 1.8
Moved java8-tests folder into a new folder called /extras
commit 80a13e8b9a2d49a1de5dee263102ac180a9b7077
Author: Prashant Sharma <[email protected]>
Date: 2014-03-03T09:45:45Z
Used fake class tag syntax
commit 673f7ac9e8855e3be16e2e955d0c01d1b187073a
Author: Prashant Sharma <[email protected]>
Date: 2014-03-03T10:24:21Z
Added support for -java-home as well
commit 85a954eefbb310dfa6566e64e1b1162e1aa6dea6
Author: Prashant Sharma <[email protected]>
Date: 2014-03-03T10:37:00Z
Nit. import orderings.
commit 95850e6e58b83b59e1f679c7b1cd8aaa7df854dc
Author: Patrick Wendell <[email protected]>
Date: 2014-03-03T22:46:14Z
Some doc improvements and build changes to the Java 8 patch.
commit 48fbcb7757bb1830d0e25b4125d314e9e2d5338b
Author: Prashant Sharma <[email protected]>
Date: 2014-03-04T06:05:28Z
Move java home check after process args.
----
---
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.
---