You're right. "du -b" returns the expected value. Thanks. Chris
-------- Original-Nachricht -------- > Datum: Wed, 28 Nov 2012 20:17:18 +0530 > Von: Mahesh Balija <[email protected]> > An: [email protected] > Betreff: Re: discrepancy du in dfs are fs > Hi Chris, > > Can you try the following in your local machine, > > du -b myfile.txt > > and compare this with the hadoop fs -du myfile.txt. > > Best, > Mahesh Balija, > Calsoft Labs. > > On Wed, Nov 28, 2012 at 7:43 PM, <[email protected]> wrote: > > > > > Hi all, > > > > I wonder wy there is a difference between "du" on HDFS and "get" + "du" > on > > my local machnine. > > > > Here is an example: > > > > hadoop fs -du myfile.txt > > > 81355258 > > > > hadoop fs -get myfile.txt . > > du myfile.txt > > > 34919 > > > > --- nevertheless --- > > > > hadoop fs -cat myfile.txt | wc -l > > > 4789943 > > > > cat myfile.txt | wc -l > > > 4789943 > > > > > > Any idea? > > Thanks. > > Chris > >
