title: How to programmatically create/touch a file in hdfs?
body: <p>Is there any way to create touch a file in hdfs with Java?</p>
  
  <p>Similar to what the <code>FileUtils</code> class provides in apache commons.</p>
  
  <p>If we <code>touch</code> a file that already exists, it would update the last modified time to the current time. And if the file doesn't exist, it would create a blank file with the current time as last modified time.</p>