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.
Performs anonymization for the log file.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public OfflineAnonymizer(OfflineAnonymizer.LogType logtype,
- 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
public void anonymize()
- 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