Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC21F900B for ; Wed, 4 Apr 2012 12:14:25 +0000 (UTC) Received: (qmail 98549 invoked by uid 500); 4 Apr 2012 12:14:24 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 98489 invoked by uid 500); 4 Apr 2012 12:14:24 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 98479 invoked by uid 99); 4 Apr 2012 12:14:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 12:14:24 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of psdc1978@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-wg0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 12:14:16 +0000 Received: by wgbdq10 with SMTP id dq10so168387wgb.29 for ; Wed, 04 Apr 2012 05:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=k/NH0MTkoUv+ZN+LMGTnGO1OvBnscTr8/EJyipWLASM=; b=hDenAVifQ0JGJQonajZgICzdJXkiGGtZ1PGkDTM8nZ5FXV0sHpe+paBTC+euebdigt QsK3Q2caFQlQ5j3+IT2YY60hsZUPxK7jUF6xna7De/lP2tB6RsKM+JP3i3FUtm/ax6K1 eNbkg/Gza2jwTodZSkX3gezGkR1XYanugw/T0gzArC9Dk3kLgEHgxVO2fN9bx0NmOM1t mt5im4o9EXZ2OtwpMZCNV5BV3LzhxMp31jRLXM2xh985ATYNgtS6A0HvN+jUmylB7F6U 1Gb0hw5oAYWqkaSR3SLRoTriSitzbSpwy/u9AWkL7jzy48HkbfdKjbwS/1uYdh/me3zr m9Mw== Received: by 10.180.24.35 with SMTP id r3mr4769143wif.7.1333541635775; Wed, 04 Apr 2012 05:13:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.75.132 with HTTP; Wed, 4 Apr 2012 05:13:25 -0700 (PDT) From: Pedro Costa Date: Wed, 4 Apr 2012 13:13:25 +0100 Message-ID: Subject: Accessing local filesystem with org.apache.hadoop.fs.FileSystem To: mapreduce-user Content-Type: multipart/alternative; boundary=f46d043bdf207e5d0b04bcd95bc1 --f46d043bdf207e5d0b04bcd95bc1 Content-Type: text/plain; charset=ISO-8859-1 I'm trying to open a local file with the FileSystem class. FileSystem rfs = FileSystem.get(conf); FSDataInputStream i = srcFs.open(p); but I get file not found. The path is correct, but I think that my class is accessing hdfs, instead of my local filesystem. Can I use the FileSystem to access local filesystem? -- Best regards, --f46d043bdf207e5d0b04bcd95bc1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable =A0I'm trying to open a local file with the FileSystem class.=A0
FileSystem rfs =3D FileSystem.get(conf);
FSDataInputStream= i =3D srcFs.open(p);


but I get fil= e not found. The path is correct, but I think that my class is accessing hd= fs, instead of my local filesystem. Can I use the FileSystem to access loca= l filesystem?

--
Best regards,
--f46d043bdf207e5d0b04bcd95bc1--