Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Reply To: Retrieving edits log

$
0
0

I’m not sure to well understand your question.
As you talk about edit logs, I suppose that you are using a non HA namenode.

1) Edits logs are save in : (dfs.namenode.name.dir)/current where dfs.namenode.name.dir property is set in hdfs-site.xml.
They look like edits_000XXXXX-000YYYYY (where X and Y are a checkpoint number)

2) if you want to read an edit log, you have to convert it to a readable format :
* copy an edit file somewhere (/tmp for instance)
* execute this command with the hdfs user : $ hdfs oev -p XML -i ./edits_000XXXXX-000YYYYY -o ./readable_edit.xml
* look at the created file :-)

Regards…


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>