Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 3AA2BC288 for ; Mon, 3 Jun 2013 10:28:00 +0000 (UTC) Received: (qmail 56647 invoked by uid 500); 3 Jun 2013 10:27:54 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 56399 invoked by uid 500); 3 Jun 2013 10:27:54 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 56392 invoked by uid 99); 3 Jun 2013 10:27:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 10:27:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harsh@cloudera.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 10:27:48 +0000 Received: by mail-pb0-f47.google.com with SMTP id rr4so5454031pbb.6 for ; Mon, 03 Jun 2013 03:27:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=WDTs1yc/e/2T6Tn4UfCTRhhZWSRg0018MXQcgVO4WPg=; b=iJxzz8JZQsXcZ92DVt/RPab+Eelf8vwnS3UqaQcwAjAfRPWEYeJh0YMdMb3dyoVUyf BSU7Icvi8mhm2ksFEbjb4t2YQYiRIPUyQ6iTRxKwr+VuRc4nD8EeKWDtsjX4vk6pzIz1 oPjTqQpGXy5hdcVAmJHhAKOcs+DAu2KXx6yFYSw7ybZzlv74Sx/8KpJrSjBUkh8tfy0e nfOjZWH8iI10/x14nXJPPm6EvxLrRCiSEZzk/sphQfWyiYu5yifzYLPSmsRhsqOwIfE+ mFjD/B3RhiUYBEgMM4CWTKcY/Q4X/dFI7DY4I328NDdIT0aHTrqvJv+pzyp/W2+w7pNX al9w== X-Received: by 10.68.228.161 with SMTP id sj1mr23758487pbc.151.1370255247561; Mon, 03 Jun 2013 03:27:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.77.230 with HTTP; Mon, 3 Jun 2013 03:27:07 -0700 (PDT) In-Reply-To: <1370242987.4980.YahooMailNeo@web142401.mail.bf1.yahoo.com> References: <1370242987.4980.YahooMailNeo@web142401.mail.bf1.yahoo.com> From: Harsh J Date: Mon, 3 Jun 2013 15:57:07 +0530 Message-ID: Subject: Re: Does libhdfs c/c++ api support read/write compressed file To: "" , Xu Haiti Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkkq0FvSxIb0mcnyxPgCTxbBJUBCZxzvMFgKk1j8S2syQbFMKTh6DgS+nbAFa8Yx83zp939 X-Virus-Checked: Checked by ClamAV on apache.org Hi Xu, HDFS is data agnostic. It does not currently care about what form the data of the files are in - whether they are compressed, encrypted, serialized in format-x, etc.. There are hadoop-common APIs that support decompressing of supported codecs, but there are no C/C++ level implementations of these (though you may use JNI). You will have to write/use your own decompress/compress code for files. On Mon, Jun 3, 2013 at 12:33 PM, Xu Haiti wrote: > > I have found somebody talks libhdfs does not support read/write gzip file at > about 2010. > > I download the newest hadoop-2.0.4 and read hdfs.h. There is also no > compressing arguments. > > Now I am wondering if it supports reading compressed file now? > > If it not, how can I make a patch for the libhdfs and make it work? > > Thanks in advance. > > Best Regards > Haiti -- Harsh J