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

@@ -126,7 +126,6 @@
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>1.48</version>
<scope>test</scope>
</dependency>

View File

@@ -63,7 +63,7 @@ public class HoodieClientExample {
public static void main(String[] args) throws Exception {
HoodieClientExample cli = new HoodieClientExample();
JCommander cmd = new JCommander(cli, args);
JCommander cmd = new JCommander(cli, null, args);
if (cli.help) {
cmd.usage();

View File

@@ -186,7 +186,7 @@ public class HiveSyncTool {
public static void main(String[] args) throws Exception {
// parse the params
final HiveSyncConfig cfg = new HiveSyncConfig();
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

@@ -89,7 +89,7 @@ public class HoodieJavaApp {
public static void main(String[] args) throws Exception {
HoodieJavaApp cli = new HoodieJavaApp();
JCommander cmd = new JCommander(cli, args);
JCommander cmd = new JCommander(cli, null, args);
if (cli.help) {
cmd.usage();

View File

@@ -98,7 +98,7 @@ public class HoodieJavaStreamingApp {
public static void main(String[] args) throws Exception {
HoodieJavaStreamingApp cli = new HoodieJavaStreamingApp();
JCommander cmd = new JCommander(cli, args);
JCommander cmd = new JCommander(cli, null, args);
if (cli.help) {
cmd.usage();

View File

@@ -110,7 +110,6 @@
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>1.48</version>
</dependency>
<dependency>

View File

@@ -157,7 +157,7 @@ public class TimelineService {
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) {
cmd.usage();
System.exit(1);

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);

View File

@@ -79,7 +79,6 @@
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>1.48</version>
</dependency>
<dependency>