hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amar Kamat <ama...@yahoo-inc.com>
Subject Re: Need Help
Date Tue, 13 May 2008 04:26:13 GMT
hemal patel wrote:
> Hello ,
>
> Can u help me to solve this problem..
>
> When I am trying to run this program it give me error like this.
>
>  bin/hadoop jar hadoop-*-examples.jar grep input output 'dfs[a-z.]+'
> 08/05/12 17:32:59 INFO mapred.FileInputFormat: Total input paths to process
> : 12
> java.io.IOException: Not a file: hdfs://localhost:9000/user/hemal/input/conf
>   
The input is expected as a folder with files in it. My guess is that 
'conf' is a folder. A folder under a folder is what I think is causing 
the problem.
Amar
>         at
> org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:170)
>         at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:515)
>         at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:753)
>         at org.apache.hadoop.examples.Grep.run(Grep.java:69)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>         at org.apache.hadoop.examples.Grep.main(Grep.java:93)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         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:49)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:155).
>
>
> And also one more error
>
> hemal@linux-j6hd:~/hadoop-0.15.3> bin/hadoop jar usr/hemal/wordconut.jar
> WordCount /usr/hemal/wordconut/input /usr/hemal/wordcount/output
> Exception in thread "main" java.io.IOException: Error opening job jar:
> usr/hemal/wordconut.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:114)
>         at java.util.jar.JarFile.<init>(JarFile.java:133)
>         at java.util.jar.JarFile.<init>(JarFile.java:70)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
>
>
> Please help me out.
>
> Thanks
> Hemal
>
>   


Mime
View raw message