Enable Last Accessed Updates
To display the Last Accessed timestamp for files and directories in the HDFS File Explorer, HDFS access time updates must be enabled.
ODP
Navigation
- In the Ambari UI, go to Services > HDFS > Configs.
- Search for dfs.namenode.accesstime.precision.
- Set the value to 1.
- Save the configuration.
- Restart the NameNode service for the change to take effect.
Note
If the property is not available, add it under (or Advanced hdfs-site, depending on your Ambari version).Custom hdfs-site
If is set to 0 (the default in some Hadoop distributions), HDFS does not update file access times. As a result, the Last Accessed field in Pulse remains empty.dfs.namenode.accesstime.precision
CDP
Navigation
- In the Cloudera Manager UI, go to Clusters > HDFS > Configuration.
- Search for Access Time Precision (
).dfs_namenode_accesstime_precision - Set the value to 1 second.
- Save the configuration.
- Restart the NameNode service for the change to take effect.

Note
If Access Time Precision () is set to 0 seconds, HDFS does not update file access times. As a result, the Last Accessed field in Pulse remains empty.dfs.namenode.accesstime.precision

Have a suggestion?