org.apache.hadoop.contrib.failmon
Class OfflineAnonymizer
java.lang.Object
org.apache.hadoop.contrib.failmon.OfflineAnonymizer
public class OfflineAnonymizer
- extends Object
This class can be used to anonymize logs independently of
Hadoop and the Executor. It parses the specified log file to
create log records for it and then passes them to the Anonymizer.
After they are anonymized, they are written to a local file,
which is then compressed and stored locally.
Method Summary |
void |
anonymize()
Performs anonymization for the log file. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OfflineAnonymizer
public OfflineAnonymizer(OfflineAnonymizer.LogType logtype,
String filename)
- Creates an OfflineAnonymizer for a specific log file.
- Parameters:
logtype
- the type of the log file. This can either be
LogFile.HADOOP or LogFile.SYSTEMfilename
- the path to the log file
anonymize
public void anonymize()
throws Exception
- Performs anonymization for the log file. Log entries are
read one by one and EventRecords are created, which are then
anonymized and written to the output.
- Throws:
Exception
main
public static void main(String[] args)
Copyright © 2009 The Apache Software Foundation