>bin/hadoop jar hadoop-*-examples.jar grep input
output 'dfs[a-z]+'

Have you tried specifying the actual file name instead of the using the '*'
wildcard?

On Tue, Nov 9, 2010 at 2:10 PM, Fabio A. Miranda
<[email protected]>wrote:

> Give a fresh installation, I followed the Single Node Setup doc from
> hadoop website and it throws an error:
>
> fa...@nodo1:~/hadoop$ mkdir input
> fa...@nodo1:~/hadoop$ cp conf/*.xml input
> fa...@nodo1:~/hadoop$ bin/hadoop jar hadoop-*-examples.jar grep input
> output 'dfs[a-z]+'
> Exception in thread "main" java.io.IOException: Error opening job jar:
> hadoop-*-examples.jar
>        at org.apache.hadoop.util.RunJar.main(RunJar.java:130)
> 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:114)
>        at java.util.jar.JarFile.<init>(JarFile.java:135)
>        at java.util.jar.JarFile.<init>(JarFile.java:72)
>        at org.apache.hadoop.util.RunJar.main(RunJar.java:128)
> fa...@nodo1:~/hadoop$ file hadoop-*-examples*
> hadoop-mapred-examples-0.21.0.jar: Zip archive data, at least v1.0 to
> extract
> fa...@nodo1:~/hadoop$
>
>
> should I open a jira bug for this ?
>
> thanks for all the help,
>
> --
> Fabio A. Miranda
> [email protected]
> +506 8354.0324
>
>

Reply via email to