Error starting Hadoop example in single node cluster

I use the word count example provided by hadoop. The following is the error I am getting:

-bash-4.1$ ./hadoop jar /home/chanders/Hadoop/bin/hadoop-examples-0.20.203.0.jar wordcount /usr/temp_hadoop /usr/output Warning: Maximum heap size rounded up to 1024 MB Warning: Maximum heap size rounded up to 1024 MB Exception in thread "main" java.io.IOException: Error opening job jar: /home/chanders/Hadoop/bin/hadoop-examples-0.20.203.0.jar at org.apache.hadoop.util.RunJar.main(RunJar.java:90) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:129) at java.util.jar.JarFile.<init>(JarFile.java:141) at java.util.jar.JarFile.<init>(JarFile.java:78) at org.apache.hadoop.util.RunJar.main(RunJar.java:88) -bash-4.1$ ^C -bash-4.1$ ./hadoop jar /home/chanders/Hadoop/bin/hadoop*examples*.jar wordcount /usr/temp_hadoop /usr/output Warning: Maximum heap size rounded up to 1024 MB Warning: Maximum heap size rounded up to 1024 MB Exception in thread "main" java.io.IOException: Error opening job jar: /home/chanders/Hadoop/bin/hadoop*examples*.jar at org.apache.hadoop.util.RunJar.main(RunJar.java:90) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:129) at java.util.jar.JarFile.<init>(JarFile.java:141) at java.util.jar.JarFile.<init>(JarFile.java:78) at org.apache.hadoop.util.RunJar.main(RunJar.java:88) 

Information about my installation: I followed the installation instructions from the Michaeal Noll link. Here The only change is that I created a separate haop user. I use it under my login.

+4
source share
2 answers

An error occurred on the way to the bank. I fixed it.

+6
source

One common error (visible on other forums) is related to permission issues in the folder where hasoop is trying to run the jar file. Fixing this allows hadoop to find the jar file.

+4
source

All Articles