-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-15987. Improve oiv tool to parse fsimage file in parallel with d… #2918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
91e3eb2
97aab8c
3ddf00a
8ff25ea
66502f9
f99527d
0dbfa74
362762d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -146,7 +146,13 @@ public String build() { | |
| PBImageDelimitedTextWriter(PrintStream out, String delimiter, | ||
| String tempPath, boolean printStoragePolicy) | ||
| throws IOException { | ||
| super(out, delimiter, tempPath); | ||
| this(out, delimiter, tempPath, printStoragePolicy, 1, "-"); | ||
|
||
| } | ||
|
|
||
| PBImageDelimitedTextWriter(PrintStream out, String delimiter, | ||
| String tempPath, boolean printStoragePolicy, int threads, | ||
| String parallelOut) throws IOException { | ||
| super(out, delimiter, tempPath, threads, parallelOut); | ||
| this.printStoragePolicy = printStoragePolicy; | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am concerned that parameter
-threadswill collide with-t, and it could be parsed to-t hreadshere. It is safe to changes names to another one to avoid abuse.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it should be renamed and will be fixed in next commit. By the way, is there a suitable parameter name recommendation ? 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option name
threadshas to rename here. Otherwise it will conflict with-t.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New option as follow. Point it out If any better option, thanks!