Skip to content

Commit

Permalink
Added utilities for LogCopier
Browse files Browse the repository at this point in the history
  • Loading branch information
oclc committed May 8, 2012
1 parent 2eac25a commit 3301ea7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/main/java/org/oclc/firefly/hadoop/backup/BackupUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ public final class BackupUtils {
/** date format used in backup directories */
public static final DateFormat BACKUP_DATE_FORMAT = new SimpleDateFormat("yyyyMMdd.kkmmss.SSS", Locale.US);

/** date format used for log copier */
public static final DateFormat LOG_COPIER_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd", Locale.US);

/**
* Cannot instantiate
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/oclc/firefly/hadoop/backup/Import.java
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,6 @@ private static Options getOptions() {
private static void printOptions() {
HelpFormatter formatter = new HelpFormatter();
String header = "Tool to import a previous backup into a live HDFS cluster";
formatter.printHelp("Backup", header, getOptions(), "", true);
formatter.printHelp("Import", header, getOptions(), "", true);
}
}

0 comments on commit 3301ea7

Please sign in to comment.