Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 33459 invoked from network); 7 Sep 2008 00:54:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Sep 2008 00:54:44 -0000 Received: (qmail 25263 invoked by uid 500); 7 Sep 2008 00:54:38 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 25217 invoked by uid 500); 7 Sep 2008 00:54:38 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 25206 invoked by uid 99); 7 Sep 2008 00:54:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Sep 2008 17:54:38 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wasimbari@msn.com designates 65.54.246.140 as permitted sender) Received: from [65.54.246.140] (HELO bay0-omc2-s4.bay0.hotmail.com) (65.54.246.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Sep 2008 00:53:38 +0000 Received: from BAY102-DS5 ([64.4.61.91]) by bay0-omc2-s4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 6 Sep 2008 17:53:47 -0700 X-Originating-IP: [78.50.94.220] X-Originating-Email: [wasimbari@msn.com] Message-ID: From: "Wasim Bari" To: Subject: HDFS read/write programmatically Date: Sun, 7 Sep 2008 02:54:06 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0341_01C91094.FE2128C0" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 12.0.1606 X-MimeOLE: Produced By Microsoft MimeOLE V12.0.1606 X-OriginalArrivalTime: 07 Sep 2008 00:53:47.0827 (UTC) FILETIME=[2FAB9030:01C91084] X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0341_01C91094.FE2128C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have configured HDFS on windows and running it using Cygwin. I am interested to access programmatically the files and folders in = HDFS. ( mean I can read/write files in HDFS using Java code). I used this example = http://wiki.apache.org/hadoop/HadoopDfsReadWriteExample . Code is = running fine. its loads Config file. But this doesn't write to HDFS rather it writes to C Drive. I provided = hdfs://user/A/B (hdfs is my FS Name) as argument but still its writing = in C drive and when I provide same argument for reading a file , its = says File not found. =20 if some one can guide me.............. its looks like some Path issue Thanks ------=_NextPart_000_0341_01C91094.FE2128C0--