From common-dev-return-74603-apmail-hadoop-common-dev-archive=hadoop.apache.org@hadoop.apache.org Sat Dec 04 14:28:36 2010 Return-Path: Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: (qmail 19032 invoked from network); 4 Dec 2010 14:28:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Dec 2010 14:28:35 -0000 Received: (qmail 65847 invoked by uid 500); 4 Dec 2010 14:28:35 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 65414 invoked by uid 500); 4 Dec 2010 14:28:32 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 65402 invoked by uid 99); 4 Dec 2010 14:28:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Dec 2010 14:28:31 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rawan.alsaad@hotmail.com designates 65.55.90.222 as permitted sender) Received: from [65.55.90.222] (HELO snt0-omc4-s19.snt0.hotmail.com) (65.55.90.222) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Dec 2010 14:28:23 +0000 Received: from SNT119-W60 ([65.55.90.201]) by snt0-omc4-s19.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 4 Dec 2010 06:28:02 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_ee080b89-34d8-4a39-940c-da5c64dce5a5_" X-Originating-IP: [78.101.73.64] From: Rawan AlSaad To: Subject: FileInputFormat.setInputPaths Problem Date: Sat, 4 Dec 2010 22:28:02 +0800 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 04 Dec 2010 14:28:02.0150 (UTC) FILETIME=[75052860:01CB93BF] --_ee080b89-34d8-4a39-940c-da5c64dce5a5_ Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 8bit Dear all, I would very much appreciate your advise on this problem [I am using Hadoop 20.0]: I need to know how to pass the input folder path to the java class throught the function( FileInputFormat.setInputPaths(conf, new Path("input")) I have tried many alternatives to change the second argument of this method but could not solve the problem. The input folder is loaded into the HDFS using the command line from the VM and it contains two text files I am sure that the folder is there in this directory /user/guest/input And here is the error message I get: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.mapred.FileInputFormat.setInputPaths(Lorg/apache/hadoop/mapred/JobConf;[Lorg/apache/hadoop/fs/Path;)V at WordCount.main(WordCount.java:68) Thanks in advance, Rawan --_ee080b89-34d8-4a39-940c-da5c64dce5a5_--