I understand that, when writing to a file, I can force it to update its length 
on the namenode by using the following command:


Is there a way to force the update without having to open a DFSOutputStream? 
Can I do this from the FileSystem class or some other Java class? The reason 
for this is that I am mostly writing to HDFS and only occasionally reading. 
However, when I go to read, I am most often reading the most recent data 
written (reading the end of the file not the beginning). If I could force the 
length update at the time of reading that would save time by not having to make 
sure I update the length every time I write to the file (which is about once 
per second).

Thanks, David

David R Robison
Senior Systems Engineer
O. +1 512 247 3700
M. +1 757 286 0022

Prometheus Security Group Global, Inc.
3019 Alvin Devane Boulevard
Building 4, Suite 450
Austin, TX 78741

Reply via email to