sequenceiq / hadoop-docker

Hadoop docker image
https://registry.hub.docker.com/u/sequenceiq/hadoop-docker/
Apache License 2.0
1.21k stars 561 forks source link

when running example, "Not a valid JAR " exception occurred #15

Closed imotai closed 9 years ago

imotai commented 9 years ago

the image version

sequenceiq/hadoop-docker:2.5.0

the exceptions

bash-4.1# bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.5.1.jar grep input output 'dfs[a-z.]+' Not a valid JAR: /usr/local/hadoop-2.5.0/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.5.1.jar

matyix commented 9 years ago

Apparently you are using the sequenceiq/hadoop-docker:2.5.0 image, whereas the examples you are trying to run are 2.5.1.

From your copy paste:

 bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.5.1.jar grep input output 'dfs[a-z.]+'.
imotai commented 9 years ago

Sorry ,it's my mistake :)