Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 9135 invoked from network); 9 Nov 2009 16:47:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 16:47:31 -0000 Received: (qmail 58580 invoked by uid 500); 9 Nov 2009 16:47:28 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 58503 invoked by uid 500); 9 Nov 2009 16:47:28 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 58490 invoked by uid 99); 9 Nov 2009 16:47:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 16:47:28 +0000 X-ASF-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_20 X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [202.165.103.48] (HELO web15903.mail.cnb.yahoo.com) (202.165.103.48) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 09 Nov 2009 16:47:25 +0000 Received: (qmail 20650 invoked by uid 60001); 9 Nov 2009 16:47:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.cn; s=s1024; t=1257785223; bh=ROlmLpTGPGVKQqSff7D2SYVOgkHAF7aDIDFFUtPWFh4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=0jsINJOlkVBTDItB9Ik4ATG8sB+9o9VDq+hxv++g43maZ9Xi5I5XE4BR1a+4u85lV7yFLf3QL1Cq8fN8x5wOSxrJ6jFA8icGiRR0x/XAWzVc03dIDri6xgji0u2p1Q0OT70lqwhD/7hxjUVB8EH2301GFQ2r6/GFDt2k+hGp2QY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qifS5Q8HwASSzijOSC47wge7+rzCReo4a0YPm4aA0ewcDWxTbE9rWtE/iD6vznQxAWF25C/q+DjCTywdUwcOvsjRY13KNSkZ2d4T7rO9egtYIQDbfjDoU5jIdRbJupwae1z7ITdai6lP34ueavnWW2R01vEJ9iKr6OfXjKEEzK8=; Message-ID: <75357.19039.qm@web15903.mail.cnb.yahoo.com> X-YMail-OSG: SUPm2QAVM1na3UpfRzAkfIPvgK2kmuPdsu5bXHg93GGOiYLF1PqNzqutbfiLTsWkiYcszB.LLCnk5xFFzZH6IBtGrCKML28b8HA6DZsRNam7y7Dw9ctaIbvTWO8ZWx80P8knDFAwEbt3sjRadz86NPbqLUXrsUTknjSEdD3q1Z_oRgsuxv4SkyW5.wtzNBOxe4z8t28CgQwx9psnCNKSryLAK_B5CD.XvvKK3QBfyCS.as1R62KrxmP0IZ6IZWmU8fQhH3Hbn7h.ogCWh86vbNfmQzMHVSsbLxXv2y_nSTo48Hiwr3SXhHNlsCvunTE- Received: from [152.3.136.188] by web15903.mail.cnb.yahoo.com via HTTP; Tue, 10 Nov 2009 00:47:02 CST X-Mailer: YahooMailRC/211.6 YahooMailWebService/0.7.361.4 References: <8211a1320911082209h23c5cef3oe418cf0698dc5167@mail.gmail.com> Date: Tue, 10 Nov 2009 00:47:02 +0800 (CST) From: Gang Luo Subject: how to read file in hadoop To: common-user@hadoop.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Hi all =0AI want to use HDFS IO api to read a result file of the previous m= apreduce job. But what I read is not the things in that file, say the conte= nt I print to stdout is different from what I get from the console by comma= nd 'cat'. I guese there maybe some problem about the file format (binary or= text). Can anyone give me some hints? =0A=0A =0AGang Luo=0A=0A=0A=0A = ___________________________________________________________ =0A =BA=C3= =CD=E6=BA=D8=BF=A8=B5=C8=C4=E3=B7=A2=A3=AC=D3=CA=CF=E4=BA=D8=BF=A8=C8=AB=D0= =C2=C9=CF=CF=DF=A3=A1 =0Ahttp://card.mail.cn.yahoo.com/