giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Vesse <rve...@dotnetrdf.org>
Subject Re: Unsupported major.minor version 51.0 error.
Date Fri, 07 Feb 2014 09:11:27 GMT
This means you've tried to launch Giraph which is built against Java 7 with
a Java 6 JVM.  I assume your system has both Java 6 and Java 7 since
otherwise you couldn't have built Giraph at all.

You need to make sure that when you start up Hadoop you are launching it
with a Java 7 VM so that when you run Giraph it has an appropriate JVM to
run on.  Typically this will mean changing your JAVA_HOME to point to the
appropriate JVM install location, how to do this will depend on your system.

For example on OS X I have the following defined in my .bash_profile file:

# Alias for switching Java versions
alias usejava6="export JAVA_HOME=`/usr/libexec/java_home -v 1.6`"
alias usejava7="export JAVA_HOME=`/usr/libexec/java_home -v 1.7`"
usejava6

Which allows me to switch between Java 6 and Java 7 with a single alias,
java_home is an OS X specific tool so your system may need configuring some
other way.

Hope this helps,

Rob

From:  Rocky Grey <rockygrey@gmail.com>
Reply-To:  <user@giraph.apache.org>
Date:  Thursday, 6 February 2014 22:23
To:  <user@giraph.apache.org>
Subject:  Giraph 1.1.0 Apache Giraph Distribution ........................
FAILURE and Unsupported major.minor version 51.0 error.

> Hi
> 
> I pulled the latest repository from Git -
> http://git-wip-us.apache.org/repos/asf/giraph.git
> 
> and tried to package the application using
> 
> mvn -Phadoop_yarn -Dhadoop.version=2.2.0 -DskipTests clean package
> 
> The process succeeded partially. Below is the snapshot of the package log. Did
> anybody else face the same problem ?
> 
> ...
> ....
> .......
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building Apache Giraph Distribution 1.1.0-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> [WARNING] The POM for org.apache.giraph:giraph-hbase:jar:1.1.0-SNAPSHOT is
> missing, no dependency information available
> [WARNING] The POM for org.apache.giraph:giraph-accumulo:jar:1.1.0-SNAPSHOT is
> missing, no dependency information available
> [WARNING] The POM for org.apache.giraph:giraph-hcatalog:jar:1.1.0-SNAPSHOT is
> missing, no dependency information available
> [WARNING] The POM for org.apache.giraph:giraph-hive:jar:1.1.0-SNAPSHOT is
> missing, no dependency information available
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Apache Giraph Parent .............................. SUCCESS [4.283s]
> [INFO] Apache Giraph Core ................................ SUCCESS [35.053s]
> [INFO] Apache Giraph Examples ............................ SUCCESS [12.905s]
> [INFO] Apache Giraph Distribution ........................ FAILURE [0.110s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 52.782s
> [INFO] Finished at: Thu Feb 06 13:17:41 PST 2014
> [INFO] Final Memory: 41M/286M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project giraph-dist: Could not resolve
> dependencies for project org.apache.giraph:giraph-dist:pom:1.1.0-SNAPSHOT: The
> following artifacts could not be resolved:
> org.apache.giraph:giraph-hbase:jar:1.1.0-SNAPSHOT,
> org.apache.giraph:giraph-accumulo:jar:1.1.0-SNAPSHOT,
> org.apache.giraph:giraph-hcatalog:jar:1.1.0-SNAPSHOT,
> org.apache.giraph:giraph-hive:jar:1.1.0-SNAPSHOT: Failure to find
> org.apache.giraph:giraph-hbase:jar:1.1.0-SNAPSHOT in
> http://repo1.maven.org/maven2 was cached in the local repository, resolution
> will not be reattempted until the update interval of central has elapsed or
> updates are forced -> [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] 
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :giraph-dist
> 
> I tried to rerun the process multiple times but got the same error.
> 
> 
> On a second note when I tried to test the partially successful installation
> like mentioned below
> 
> # hadoop jar 
> $GIRAPH_HOME/giraph-examples/target/giraph-examples-1.1.0-SNAPSHOT-for-hadoop-
> 2.2.0-jar-with-dependencies.jar org.apache.giraph.GiraphRunner -h
> 
> It failed with the following error.
> 
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> org/apache/giraph/GiraphRunner : Unsupported major.minor version 51.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>         at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:247)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:205)
> 
> Any help would be appreciated.
> 
> Thanks.



Mime
View raw message