1
0

[HUDI-522] Use the same version jcommander uniformly (#1214)

This commit is contained in:
lamber-ken
2020-01-13 02:48:52 +08:00
committed by vinoth chandar
parent 017ee8e661
commit d9675c4ec0
18 changed files with 15 additions and 18 deletions

View File

@@ -83,7 +83,7 @@ public class HDFSParquetImporter implements Serializable {
public static void main(String[] args) throws Exception {
final Config cfg = new Config();
JCommander cmd = new JCommander(cfg, args);
JCommander cmd = new JCommander(cfg, null, args);
if (cfg.help || args.length == 0) {
cmd.usage();
System.exit(1);

View File

@@ -337,7 +337,7 @@ public class HiveIncrementalPuller {
public static void main(String[] args) throws IOException {
final Config cfg = new Config();
JCommander cmd = new JCommander(cfg, args);
JCommander cmd = new JCommander(cfg, null, args);
if (cfg.help || args.length == 0) {
cmd.usage();
System.exit(1);

View File

@@ -103,7 +103,7 @@ public class HoodieCleaner {
public static void main(String[] args) throws Exception {
final Config cfg = new Config();
JCommander cmd = new JCommander(cfg, args);
JCommander cmd = new JCommander(cfg, null, args);
if (cfg.help || args.length == 0) {
cmd.usage();
System.exit(1);

View File

@@ -46,7 +46,7 @@ public class HoodieCompactionAdminTool {
public static void main(String[] args) throws Exception {
final Config cfg = new Config();
JCommander cmd = new JCommander(cfg, args);
JCommander cmd = new JCommander(cfg, null, args);
if (cfg.help || args.length == 0) {
cmd.usage();
System.exit(1);

View File

@@ -85,7 +85,7 @@ public class HoodieCompactor {
public static void main(String[] args) throws Exception {
final Config cfg = new Config();
JCommander cmd = new JCommander(cfg, args);
JCommander cmd = new JCommander(cfg, null, args);
if (cfg.help || args.length == 0) {
cmd.usage();
System.exit(1);

View File

@@ -164,7 +164,7 @@ public class HoodieSnapshotCopier implements Serializable {
public static void main(String[] args) throws IOException {
// Take input configs
final Config cfg = new Config();
new JCommander(cfg, args);
new JCommander(cfg, null, args);
LOG.info(String.format("Snapshot hoodie table from %s targetBasePath to %stargetBasePath", cfg.basePath,
cfg.outputPath));

View File

@@ -71,7 +71,7 @@ public class HoodieWithTimelineServer implements Serializable {
public static void main(String[] args) throws Exception {
final Config cfg = new Config();
JCommander cmd = new JCommander(cfg, args);
JCommander cmd = new JCommander(cfg, null, args);
if (cfg.help || args.length == 0) {
cmd.usage();
System.exit(1);

View File

@@ -106,7 +106,7 @@ public class UpgradePayloadFromUberToApache implements Serializable {
public static void main(String[] args) throws Exception {
final Config cfg = new Config();
JCommander cmd = new JCommander(cfg, args);
JCommander cmd = new JCommander(cfg, null, args);
if (cfg.help || args.length == 0) {
cmd.usage();
System.exit(1);

View File

@@ -284,7 +284,7 @@ public class HoodieDeltaStreamer implements Serializable {
public static void main(String[] args) throws Exception {
final Config cfg = new Config();
JCommander cmd = new JCommander(cfg, args);
JCommander cmd = new JCommander(cfg, null, args);
if (cfg.help || args.length == 0) {
cmd.usage();
System.exit(1);

View File

@@ -310,7 +310,7 @@ public class TimelineServerPerf implements Serializable {
public static void main(String[] args) throws Exception {
final Config cfg = new Config();
JCommander cmd = new JCommander(cfg, args);
JCommander cmd = new JCommander(cfg, null, args);
if (cfg.help || args.length == 0) {
cmd.usage();
System.exit(1);