[opensuse] Apache Hadoop and Java on openSUSE 12.1

I am messing around with Apache Hadoop. I have installed the 1.0.2 RPM on opeSUSE 12.1. I also have installed and enabled jdk-1.7.0_02-fcs.i586, which is Sun's release. When I run one of the commands for setting up Hadoop (as described on http://hadoop.apache.org/common/docs/current/single_node_setup.html), I get this: # hadoop jar /usr/share/hadoop/hadoop-examples-1.0.2.jar grep input output 'dfs[a-z.]+' java.lang.NoClassDefFoundError: org.apache.hadoop.security.UserGroupInformation at java.lang.Class.initializeClass(libgcj.so.12) at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:1494) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1395) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:123) at org.apache.hadoop.examples.Grep.run(Grep.java:87) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.examples.Grep.main(Grep.java:93) at java.lang.reflect.Method.invoke(libgcj.so.12) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64) at java.lang.reflect.Method.invoke(libgcj.so.12) at org.apache.hadoop.util.RunJar.main(RunJar.java:156) I am curious why the error comes from libgcj.so.12, which is from libgcj46-4.6.2_20111026-1.1.2.i586, which is the GNU version. Does Sun's Java use anything from GNU's Java? I suspect that the problem is that some parts of my Java install are whatever openSUSE 12.2 installs, and part are from Sun. Is there a documented way to have only Sun's Java installled? Which includes removing the non-Sun components. It seems that most everything Java that I try works better (and sometimes only) with Sun's Java. And I also suspect that just installing and enabling Sun's Java may not be enough if ither non-Sun components are still around. Or perhaps I need more than Sun's JDK? -- Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Roger Oberholtzer