Return-Path: Delivered-To: apmail-hadoop-core-commits-archive@www.apache.org Received: (qmail 8299 invoked from network); 5 Aug 2008 09:30:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 09:30:11 -0000 Received: (qmail 78145 invoked by uid 500); 5 Aug 2008 09:30:09 -0000 Delivered-To: apmail-hadoop-core-commits-archive@hadoop.apache.org Received: (qmail 78109 invoked by uid 500); 5 Aug 2008 09:30:08 -0000 Mailing-List: contact core-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-commits@hadoop.apache.org Received: (qmail 78077 invoked by uid 99); 5 Aug 2008 09:30:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 02:30:08 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 09:29:21 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id EDB6F118DB for ; Tue, 5 Aug 2008 09:29:18 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: core-commits@hadoop.apache.org Date: Tue, 05 Aug 2008 09:29:18 -0000 Message-ID: <20080805092918.28771.42093@eos.apache.org> Subject: [Hadoop Wiki] Update of "HadoopDfsReadWriteExample" by SteveLoughran X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification. The following page has been changed by SteveLoughran: http://wiki.apache.org/hadoop/HadoopDfsReadWriteExample The comment on the change is: move to HDFS ------------------------------------------------------------------------------ ~+Simple Example to Read and Write files from Hadoop DFS+~ - Reading from and writing to Hadoop DFS is no different from how it is done with other file systems. The example attachment:HadoopDFSFileReadWrite.java reads a file from DFS and writes it to another file on DFS (copy command). + Reading from and writing to Hadoop DFS is no different from how it is done with other file systems. The example attachment:HadoopDFSFileReadWrite.java reads a file from HDFS and writes it to another file on HDFS (copy command). Hadoop [http://hadoop.apache.org/core/api/org/apache/hadoop/fs/FileSystem.html FileSystem] API describes the methods available to user. Let us walk through the code to understand how it is done.