Hey, Thanks for the hints Owen! Basically, thats what I did before.
I installed Java with the following commands sudo apt-get install python-software-properties sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer And set the variables using install oracle-java7-set-default Which created a file /etc/profile.d/jdk.sh were all the paths are set. I removed the file, set $JAVA_HOME using ~/.bahsrc And checked where which java and which javac are pointing to. Both point to /usr/bin/java and /usr/bin/javac which then point to /etc/alternatives/java and ../javac And now I am not sure. In /etc/alternatives i see the following java -> /usr/lib/jvm/j2sdk1.6-oracle/jre/bin/java javac -> /usr/lib/jvm/j2sdk1.6-oracle/bin/javac Thats what alternatives ‹config java set it to But theres also a java in /usr/lib/jvm/j2sdk1.6-oracle/bin/ Which one should I use? I currently left it using the ..jre/bin/java No the error occurs at a different point. It¹s not the GiraphRunner anymore, ist here Error running child : java.lang.UnsupportedClassVersionError: org/apache/giraph/graph/GraphMapper : Unsupported major.minor version 51.0 I¹m lost :( Any more ideas? Regards Pascal Von: Owen Davison <odavi...@gmail.com> Antworten an: "user@giraph.apache.org" <user@giraph.apache.org> Datum: Donnerstag, 27. Februar 2014 12:39 An: "user@giraph.apache.org" <user@giraph.apache.org> Betreff: Re: Giraph on Cloudera: Unsupported major.minor version 51.0 Hi Pascal, I've experienced this error. You need to make sure your Giraph is being built and run using the same version of Java. Use 'which java' and 'which javac' to see which ones your system is using. To make CDH 4.5.0 use Java 7, I had to install Java 7, set it as system default using 'alterntaives --config java', unset the JAVA_HOME environment variable, and add the correct Java binary directory into the path in my .bashrc. See this stackoverflow question: http://stackoverflow.com/questions/2701100/problem-changing-java-version-us ing-alternatives Once 'which java' and 'which javac' were pointing to the correct java install, it worked. Best, Owen On Thu, Feb 27, 2014 at 6:56 AM, Pascal Jäger <pas...@pascaljaeger.de> wrote: Hi all, I am trying to run Giraph on an Cloudera Cluster. I saw there is a maven profile hadoop_cdh4.1.2. I installed that version of cdh on my cluster and installed the latest java 7 version. I build giraph with mv clean package Phadoop_cdh4.1.2 DskipTests on one of the nodes. But when running it I get a java.lang.UnsupportedClassVersionError: org/apache/giraph/GiraphRunner : Unsupported major.minor version 51.0 I already lost quiet some time on it, so I appreciate any tip on what to do What version of giraph do I need to checkout? What Java version do I need? What version of cloudera works? Regards Pascal