Class OfflineAnonymizer

  extended by 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.

Nested Class Summary
static class OfflineAnonymizer.LogType
Constructor Summary
OfflineAnonymizer(OfflineAnonymizer.LogType logtype, String filename)
          Creates an OfflineAnonymizer for a specific log file.
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

Constructor Detail


public OfflineAnonymizer(OfflineAnonymizer.LogType logtype,
                         String filename)
Creates an OfflineAnonymizer for a specific log file.

logtype - the type of the log file. This can either be LogFile.HADOOP or LogFile.SYSTEM
filename - the path to the log file
Method Detail


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.



public static void main(String[] args)

Copyright © 2009 The Apache Software Foundation