Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 470011809E for ; Sun, 16 Aug 2015 14:45:01 +0000 (UTC) Received: (qmail 84313 invoked by uid 500); 16 Aug 2015 14:44:56 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 84195 invoked by uid 500); 16 Aug 2015 14:44:55 -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 84182 invoked by uid 99); 16 Aug 2015 14:44:55 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Aug 2015 14:44:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4119B18210F for ; Sun, 16 Aug 2015 14:44:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.994 X-Spam-Level: *** X-Spam-Status: No, score=3.994 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.006] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cxkR78ZLQM6a for ; Sun, 16 Aug 2015 14:44:54 +0000 (UTC) Received: from mail.eagleeyet.net (eagleeyet.net [176.58.122.69]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id A6F772055B for ; Sun, 16 Aug 2015 14:44:53 +0000 (UTC) Received: by mail.eagleeyet.net (Postfix, from userid 33) id D0AB31856E; Sun, 16 Aug 2015 14:44:45 +0000 (UTC) To: user@hadoop.apache.org Subject: Re: Comparing CheckSum of Local and HDFS File X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_8b988e242fd7a0edd3e5f25a762c0f54" Date: Sun, 16 Aug 2015 16:44:45 +0200 From: Jonathan Aquilina Cc: Shashi Vishwakarma In-Reply-To: References: Message-ID: <1ec663c364cf05ae065e645c74dfbbca@mail.eagleeyet.net> X-Sender: jaquilina@eagleeyet.net User-Agent: Roundcube Webmail/1.0.5 --=_8b988e242fd7a0edd3e5f25a762c0f54 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Correct me if I am wrong but the command you ran on the cluster seems to be doing a CRC check as well. I am still a novice to hadoop but that is the most obvious thing i see in the output below. --- Regards, Jonathan Aquilina Founder Eagle Eye T On 2015-08-07 12:34, Shashi Vishwakarma wrote: > Hi > > I have a small confusion regarding checksum verification.Lets say , i have a file abc.txt and I transferred this file to hdfs. How do I ensure about data integrity? > > I followed below steps to check that file is correctly transferred. > > ON LOCAL FILE SYSTEM: > > md5sum abc.txt > > 276fb620d097728ba1983928935d6121 TestFile > > ON HADOOP CLUSTER : > > hadoop fs -checksum /abc.txt > > /abc.txt MD5-of-0MD5-of-512CRC32C 000002000000000000000000911156a9cf0d906c56db7c8141320df0 > > Both output looks different to me. Let me know if I am doing anything wrong. > > How do I verify if my file is transferred properly into HDFS? > > Thanks > Shashi --=_8b988e242fd7a0edd3e5f25a762c0f54 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

 

Correct me if I am wrong but the command you ran on the cluster seems to= be doing a CRC check as well. I am still a novice to hadoop but that is th= e most obvious thing i see in the output below.

---
Regards, Jonathan Aquilina Founder Eagle Eye T

On 2015-08-07 12:34, Shashi Vishwakarma wrote:

Hi
 
I have a small confusion rega= rding checksum verification.Lets say , i have a file abc.txt and I transfer= red this file to hdfs. How do I ensure about data integrity?
 
I followed below steps to che= ck that file is correctly transferred.
 
On Local File System:=
 
md5sum abc.txt 
 
276fb620d097728ba1983928935d6= 121  TestFile
 
On Hadoop Cluster :

 hadoop fs -checksum /ab= c.txt 
 
/abc.txt     &= nbsp;MD5-of-0MD5-of-512CRC32C        000002000000000000= 000000911156a9cf0d906c56db7c8141320df0
 
Both output looks different t= o me. Let me know if I am doing anything wrong.
 
How do I verify if my file is= transferred properly into HDFS?  
 
Thanks
Shashi
--=_8b988e242fd7a0edd3e5f25a762c0f54--