title: How to view FsImage/Edit Logs file in hadoop
body: <p>I'm Beginner in Hadoop. I wanted to view fs-image and Edit logs in hadoop. I have searched it in many blogs, nothing is clear. Please can any one tell me step by step procedure to view the Edit log/fs-image file in hadoop.</p>
  
  <p>My version: Apache Hadoop: <strong>Hadoop-1.2.1</strong></p>
  
  <p>My Installed director is <strong>![/home/students/hadoop-1.2.1]</strong></p>
  
  <p>I'm listing steps what i have tried based on some blogs.</p>
  
  <p>Ex.1. <strong>$ hdfs dfsadmin -fetchImage /tmp</strong></p>
  
  <p>Ex.2. <strong>hdfs oiv -i /tmp/fsimage_0000000000000001386 -o /tmp/fsimage.txt</strong></p>
  
  <p>Nothing works for me.</p>
  
  <p>It shows that <strong>hdfs is not a directory or a file.</strong></p>