title: Get file inode during the file change owner in HDFS Hadoop?
body: <p>how to get file INode in active file?  for example:</p>
  
  <p>under client type command as below:</p>
  
  <pre><code>./hadoop fs -chown -R hadoop:hadoop hdfs://nn:9000/A1.txt
  </code></pre>
  
  <p>how to get "A1.txt" file INode during the file change owner operation?</p>
  
  <p>Thanks!</p>
  
  <hr>
  
  <p>Thanks Harsh J for the below answer. I know the API. let me change a way to say: How do I get the pointer to the active file inode if I want to add something to the file inode? Thanks a lot.</p>
  
  <hr>
  
  <p>Thanks Harsh J for the answer. I know the API. 
  let me change a way to say:</p>
  
  <p>How do I get the pointer to the active file inode if I want to add something to the file inode? Thanks a lot.</p>