Return-Path: Delivered-To: apmail-lucene-hadoop-user-archive@locus.apache.org Received: (qmail 76302 invoked from network); 2 Jun 2007 12:27:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2007 12:27:51 -0000 Received: (qmail 66145 invoked by uid 500); 2 Jun 2007 12:27:54 -0000 Delivered-To: apmail-lucene-hadoop-user-archive@lucene.apache.org Received: (qmail 66120 invoked by uid 500); 2 Jun 2007 12:27:53 -0000 Mailing-List: contact hadoop-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-user@lucene.apache.org Delivered-To: mailing list hadoop-user@lucene.apache.org Received: (qmail 66111 invoked by uid 99); 2 Jun 2007 12:27:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2007 05:27:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of roger.edchen@gmail.com designates 209.85.146.183 as permitted sender) Received: from [209.85.146.183] (HELO wa-out-1112.google.com) (209.85.146.183) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2007 05:27:48 -0700 Received: by wa-out-1112.google.com with SMTP id k17so1079663waf for ; Sat, 02 Jun 2007 05:27:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R+hWxjCj8QLr0GiHYTr15WasiK9fo9Gmd6bF8RyLL823sAuxlyqWSBviCe89RWZEw8MVHa1Xayzg5l4utNJYFpxfpP+jusrPDkplqB9gBmJGDU1VwSGzv19UBiZCoxGoSPywoKMglpqCL2P02tUATd6oNxg3o0OqyLtLubpd2ac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dw0bNZwa7aEt+iY3nbnn/mMsLG+6pydPWj4DVz4W8/0mQC15UaUy+argjnulxe2kJ773y/2Pt8gUkxqOukaXPG3npETZZ1aA3RGkHQ5Qe2+Pg7nLESv39rkL2dAaCj8jiy2d7xrb4EhQlgZ7Zk53UV3x/1zi9+ZIFVfU+QVgZhY= Received: by 10.114.152.17 with SMTP id z17mr2779988wad.1180787247339; Sat, 02 Jun 2007 05:27:27 -0700 (PDT) Received: by 10.114.179.15 with HTTP; Sat, 2 Jun 2007 05:27:27 -0700 (PDT) Message-ID: Date: Sat, 2 Jun 2007 08:27:27 -0400 From: "Erdong (Roger) CHEN" To: hadoop-user@lucene.apache.org Subject: [Hadoop DFS] hadoop does not see my input file In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Hi all, Could anyone help me to figure out why hadoop does not see my input file? I have three computers rosetta8, rosetta9,and rosetta10. rosetta8 is listed in masters, rosetta9 and rosetta10 are listed in slaves. I run bin/start-dfs.sh and bin/start-mapred.sh on rosetta8. This is my hapood-site.xml. I am pretty sure that I followed the installation and configuration online and the folder /tmp/in-dir/ is not empty. I tried the following two commands: ./bin/hadoop dfs -ls /tmp/in-dir/ Found 0 items ./bin/hadoop dfs -ls /tmp/ Found 0 items I tried both two settings for mapred.job.tracker, local and rosetta8:50034. Both don't work. mapred.job.tracker local rosetta8:50034 fs.default.name rosetta8:50033 Command that I run: ./bin/hadoop jar hadoop-0.12.3-examples.jar wordcount -m 3 -r 2 /tmp/in-dir/ /tmp/out-dir/ Error message that I get: org.apache.hadoop.mapred.InvalidInputException: Input path doesnt exist : /tmp/in-dir at org.apache.hadoop.mapred.InputFormatBase.validateInput(InputFormatBase.java:138) at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:326) at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:543) at org.apache.hadoop.examples.WordCount.main(WordCount.java:148) 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:585) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:143) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:40) 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:585) at org.apache.hadoop.util.RunJar.main(RunJar.java:155) edc@rosetta8:~/hadoop-install/hadoop$ ./bin/hadoop jar hadoop-0.12.3-examples.jar wordcount -m 3 -r 2/afs/csail.mit.edu/u/e/edc/hadoop-install/hadoop/in-dir/ /tmp/out-dir/ ERROR: Integer expected instead of 2/afs/csail.mit.edu/u/e/edc/hadoop-install/hadoop/in-dir/ wordcount [-m ] [-r ] edc@rosetta8:~/hadoop-install/hadoop$ ./bin/hadoop jar hadoop-0.12.3-examples.jar wordcount -m 3 -r 2 /afs/csail.mit.edu/u/e/edc/hadoop-install/hadoop/in-dir/ /tmp/out-dir/ org.apache.hadoop.mapred.InvalidInputException: Input path doesnt exist : /afs/csail.mit.edu/u/e/edc/hadoop-install/hadoop/in-dir at org.apache.hadoop.mapred.InputFormatBase.validateInput(InputFormatBase.java:138) at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:326) at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:543) at org.apache.hadoop.examples.WordCount.main(WordCount.java:148) 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:585) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:143) at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:40) 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:585) at org.apache.hadoop.util.RunJar.main(RunJar.java:155) Erdong Chen