Reply
Highlighted
New Contributor
Posts: 2
Registered: ‎08-10-2018

Creating Linux file named 'timestamp_epoch time' & saving FSI Image

How to create a file in Linux named 'timestamp_epoch time' & uploading this file to hdfs and saving the latest fsimage to Linux filesystem in such a way that it should contain the file with epoch time created earlier.

Champion
Posts: 756
Registered: ‎05-16-2016

Re: Creating Linux file named 'timestamp_epoch time' & saving FSI Image

I couldnt understand the requirement , whats the need to put in hdfs ? Could you be more specific about the issue
New Contributor
Posts: 2
Registered: ‎08-10-2018

Re: Creating Linux file named 'timestamp_epoch time' & saving FSI Image

how to create file with epoch timestamp in linux , take fsi image into it ?. I hope it makes more clearer.  

Posts: 957
Topics: 1
Kudos: 228
Solutions: 121
Registered: ‎04-22-2014

Re: Creating Linux file named 'timestamp_epoch time' & saving FSI Image

@Girish1980,

 

Sorry, but it is still hard to understand what you want to do and why.

 

So you create a file on linux with a filename that is an epoch timestamp:

 

1535175604

 

Then you use hdfs dfs -put 1535175604 /some/dir

 

Then you want to know when that new file written to hdfs will be on disk in the fsimage file?

If so, then on the standby or secondary namenode that update file metadata would be merged from edit to fsimage during the next checkpoint.

 

This blog entry is older, but it still explains the checkpointing pretty well:

 

https://blog.cloudera.com/blog/2014/03/a-guide-to-checkpointing-in-hadoop/

 

Announcements