diff --git a/warehouse/metrics-core/src/main/java/datawave/metrics/mapreduce/MetricsIngester.java b/warehouse/metrics-core/src/main/java/datawave/metrics/mapreduce/MetricsIngester.java index 936cbe2e3c0..e67a69ca388 100644 --- a/warehouse/metrics-core/src/main/java/datawave/metrics/mapreduce/MetricsIngester.java +++ b/warehouse/metrics-core/src/main/java/datawave/metrics/mapreduce/MetricsIngester.java @@ -31,7 +31,8 @@ import org.apache.accumulo.hadoop.mapreduce.AccumuloInputFormat; import org.apache.accumulo.hadoop.mapreduce.AccumuloOutputFormat; import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.GnuParser; +import org.apache.commons.cli.CommandLineParser; +import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.Option; import org.apache.commons.cli.ParseException; import org.apache.hadoop.conf.Configuration; @@ -341,7 +342,7 @@ protected int launchErrorsJob(Job job, Configuration conf) * Goes through the arguments and attempts to add relevant values to the configuration */ private void _configure(String[] args) { - GnuParser parser = new GnuParser(); + CommandLineParser parser = new DefaultParser(); CommandLine cmd; try { cmd = parser.parse(new MetricsOptions(), args); diff --git a/warehouse/metrics-core/src/main/java/datawave/metrics/mapreduce/util/JobSetupUtil.java b/warehouse/metrics-core/src/main/java/datawave/metrics/mapreduce/util/JobSetupUtil.java index f96f7369d36..11ebe80ec59 100644 --- a/warehouse/metrics-core/src/main/java/datawave/metrics/mapreduce/util/JobSetupUtil.java +++ b/warehouse/metrics-core/src/main/java/datawave/metrics/mapreduce/util/JobSetupUtil.java @@ -18,7 +18,7 @@ import org.apache.accumulo.core.data.Range; import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.GnuParser; +import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.Option; import org.apache.commons.cli.ParseException; import org.apache.hadoop.conf.Configuration; @@ -46,7 +46,7 @@ public static Configuration configure(String[] args, Configuration conf, Logger } MetricsOptions mOpts = new MetricsOptions(); - CommandLine cl = new GnuParser().parse(mOpts, args); + CommandLine cl = new DefaultParser().parse(mOpts, args); // add the file config options first String confFiles = cl.getOptionValue("conf", ""); if (confFiles != null && !confFiles.isEmpty()) {