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 F39ECEFB1 for ; Tue, 19 Feb 2013 22:15:36 +0000 (UTC) Received: (qmail 17142 invoked by uid 500); 19 Feb 2013 22:15:32 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 16961 invoked by uid 500); 19 Feb 2013 22:15:31 -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 16954 invoked by uid 99); 19 Feb 2013 22:15:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 22:15:31 +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 (nike.apache.org: domain of harsh@cloudera.com designates 209.85.219.44 as permitted sender) Received: from [209.85.219.44] (HELO mail-oa0-f44.google.com) (209.85.219.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 22:15:24 +0000 Received: by mail-oa0-f44.google.com with SMTP id h1so7494413oag.17 for ; Tue, 19 Feb 2013 14:15:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=IP/h7UrZOnjpPqk4s2cFKrT7LThA7x1jPpSBlFexox4=; b=K8/wpRdiI9XI7Pv6GBUv3b9WYsP/TmsWeSgjg2SVQDmNpdNeMblnpC+HyRCLLg7y9L SlDoWaQjIf2EUaOBtMywHlZprZDqPanNoXPLINOfSXonHNubnqiiAcvPZsAOo0vysxK5 dJdOlxsmSMVANCBlqpzj7TaixMXYG6i3bF3kVXhrBP1l+m2s5HYo8hD14+Tt7mccwRDG K8QWbAj2A83S787xyA2iBtoGqVZk+lZAiLmLwPxlpp9lLFLZIbGHJMW6fWWoUJ1auwe0 p/y4fsXnPJatViy/Wb5YRBr0Dy7Xk6NOCtJmTB006k69zKyCVZfigygtVyD0i6nHbxMY a8tA== X-Received: by 10.60.11.106 with SMTP id p10mr8356878oeb.94.1361312103134; Tue, 19 Feb 2013 14:15:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.74.131 with HTTP; Tue, 19 Feb 2013 14:14:43 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Wed, 20 Feb 2013 03:44:43 +0530 Message-ID: Subject: Re: copy chunk of hadoop output To: "" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkv8lqN4rhPUAFjzlzkTZreyhEMYQLpe+eAG2ZSfR0G1pARWEoHocqPvRiivzd0yxvgFhc4 X-Virus-Checked: Checked by ClamAV on apache.org You can instead use 'fs -cat' and the 'head' coreutil, as one example: hadoop fs -cat 100-byte-dfs-file | head -c 5 > 5-byte-local-file On Wed, Feb 20, 2013 at 3:38 AM, jamal sasha wrote: > Hi, > I was wondering in the following command: > > bin/hadoop dfs -copyToLocal hdfspath localpath > can we have specify to copy not full but like xMB's of file to local drive? > > Is something like this possible > Thanks > Jamal -- Harsh J