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 A5A57D4B6 for ; Fri, 24 Aug 2012 16:46:44 +0000 (UTC) Received: (qmail 73012 invoked by uid 500); 24 Aug 2012 16:46:40 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 72910 invoked by uid 500); 24 Aug 2012 16:46:40 -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 72898 invoked by uid 99); 24 Aug 2012 16:46:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2012 16:46:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of siddharth.tiwari@live.com designates 65.55.90.110 as permitted sender) Received: from [65.55.90.110] (HELO snt0-omc2-s35.snt0.hotmail.com) (65.55.90.110) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2012 16:46:31 +0000 Received: from SNT142-W4 ([65.55.90.72]) by snt0-omc2-s35.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 24 Aug 2012 09:46:10 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_1f16aea2-95e1-4d89-b211-ff4ef9cabae0_" X-Originating-IP: [180.151.41.42] From: Siddharth Tiwari To: USers Hadoop Subject: RE: How do we view the blocks of a file in HDFS Date: Fri, 24 Aug 2012 16:46:10 +0000 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 24 Aug 2012 16:46:10.0559 (UTC) FILETIME=[F720C0F0:01CD8217] X-Virus-Checked: Checked by ClamAV on apache.org --_1f16aea2-95e1-4d89-b211-ff4ef9cabae0_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Abhishek=2C You can use fsck for this purpose hadoop fsck -files -blocks -locations --- Displays what y= ou want *------------------------* Cheers !!! Siddharth Tiwari Have a refreshing day !!! "Every duty is holy=2C and devotion to duty is the highest form of worship = of God.=94=20 "Maybe other people will try to limit me but I don't limit myself" From: abhisheksgumadi@gmail.com Date: Fri=2C 24 Aug 2012 22:10:37 +0530 Subject: How do we view the blocks of a file in HDFS To: user@hadoop.apache.org hi=2C If I push a file into HDFS that runs on a 4 node cluster with 1 namenode= and 3 datanodes=2C how can I view where on the datanodes are the blocks of= this file?I would like to view the blocks and their replicas individually.= How can I do this? The answer is very critical for my current task which is halted :) A detail= ed answer will be highly appreciated.Thank you! With Regards=2C Abhishek S = --_1f16aea2-95e1-4d89-b211-ff4ef9cabae0_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hi Abhishek=2C

You can use fsck for this purpose

hadoop fsck <=3BHDFS directory>=3B -files -blocks -locations=  =3B --- Displays what you want

*------------------------*
= Cheers !!!
= Siddharth Tiwari Have a r= efreshing day !!!"Every duty is holy=2C and devotion to duty is the highest form of wors= hip of God.=94
"Maybe other people will try to limit me but I do= n't limit myself"



From: abhisheksgumadi@gmail.com
Date: Fri=2C 24 Aug 2012 22:10:37 = +0530
Subject: How do we view the blocks of a file in HDFS
To: user@h= adoop.apache.org

hi=2C

 =3B  =3BIf I push= a file into HDFS that runs on a 4 node cluster with 1 namenode and 3 datan= odes=2C how can I view where on the datanodes are the blocks of this file?<= /div>
I would like to view the blocks and their replicas individually. = How can I do this?

The answer is very critical for my current task which i= s halted :) A detailed answer will be highly appreciated.

Thank you!

With Regards=2C
Abhishek S
= --_1f16aea2-95e1-4d89-b211-ff4ef9cabae0_--