Agree with Stevo. there's another round of code cleanup we need to go thru to eliminate guava collection calls and replace with straight Java 7 calls. We agreed as part of the last hangout that Java 7 would be the minimal Java that we support going forward.
On Fri, Mar 27, 2015 at 12:51 PM, Stevo Slavić <[email protected]> wrote: > Question is what is minimal Java that we should require Mahout users to > use. It was raised to 1.7 via MAHOUT-1652 > <https://issues.apache.org/jira/browse/MAHOUT-1652>. It enables us to use > Java 1.7 APIs, finally. E.g. after level was raised I was recently able to > eliminate some usage of Guava for closing Closable's with using > try-with-resources Java 7 construct. We should minimize dependencies, there > are IMO too many. Depending more and more on standard libraries of Java and > Scala helps in that direction. Hopefully we do not wait much longer before > the level is raised even further to 1.8, so we have even less 3rd party > dependencies. > > On Fri, Mar 27, 2015 at 5:31 PM, Pat Ferrel <[email protected]> wrote: > > > It should, Hadoop supports it long term and lots of people stuck there > > with projects that haven’t been upgraded (Mahout comes to mind). > > > > On Mar 27, 2015, at 9:26 AM, Stevo Slavić <[email protected]> wrote: > > > > Have to check but I doubt that build supports hadoop 1.x any more. > > > > On Fri, Mar 27, 2015 at 5:15 PM, Suneel Marthi <[email protected]> > > wrote: > > > > > This is the Java version, gotta use Java 7 > > > > > > On Fri, Mar 27, 2015 at 12:08 PM, Pat Ferrel <[email protected]> > > > wrote: > > > > > >> Latest source for Spark 1.1.0 and Hadoop 1.2.1 > > >> > > >> Build complains about the move to > > >> <maven.compiler.target>1.7</maven.compiler.target> I think this was > > upped > > >> from 1.6 but not sure if that’s what the error is about. > > >> > > >> I’m on Java 6 no this machine if that matters. > > >> > > >> Actual error: > > >> > > >> [INFO] Mahout Build Tools ................................ SUCCESS > > > [3.512s] > > >> [INFO] Apache Mahout ..................................... SUCCESS > > > [0.603s] > > >> [INFO] Mahout Math ....................................... FAILURE > > > [6.453s] > > >> [INFO] Mahout MapReduce Legacy ........................... SKIPPED > > >> [INFO] Mahout Integration ................................ SKIPPED > > >> [INFO] Mahout Examples ................................... SKIPPED > > >> [INFO] Mahout Release Package ............................ SKIPPED > > >> [INFO] Mahout Math Scala bindings ........................ SKIPPED > > >> [INFO] Mahout Spark bindings ............................. SKIPPED > > >> [INFO] Mahout Spark bindings shell ....................... SKIPPED > > >> [INFO] Mahout H2O backend ................................ SKIPPED > > >> [INFO] > > >> > ------------------------------------------------------------------------ > > >> [INFO] BUILD FAILURE > > >> [INFO] > > >> > ------------------------------------------------------------------------ > > >> [INFO] Total time: 11.609s > > >> [INFO] Finished at: Fri Mar 27 08:55:35 PDT 2015 > > >> [INFO] Final Memory: 24M/310M > > >> [INFO] > > >> > ------------------------------------------------------------------------ > > >> [ERROR] Failed to execute goal > > >> org.apache.maven.plugins:maven-compiler-plugin:3.2:compile > > >> (default-compile) on project mahout-math: Fatal error compiling: > invalid > > >> target release: 1.7 -> [Help 1] > > >> [ERROR] > > >> [ERROR] To see the full stack trace of the errors, re-run Maven with > the > > >> -e switch. > > >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. > > >> [ERROR] > > >> > > >> > > > > > > > >
