How to update the last modified timestamp of a file in HDFS?

Sometimes, we come across a situation where we may need to update the last modified time of a file in HDFS. We can achieve it using Hadoop FileSystem API in Java. Step 1: Create a simple maven project in Eclipse.   Step 2: Update the below dependencies in pom.xml file. [crayon-6694cf7829256210903344/]   Step 3: Create … Continue reading How to update the last modified timestamp of a file in HDFS?