Skip to content

Commit

Permalink
Adding main method for LaunchDataIngestionJobCommand for spark-submit…
Browse files Browse the repository at this point in the history
… command (#8168)
  • Loading branch information
xiangfu0 authored Feb 10, 2022
1 parent 8d867ed commit b404e4a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.apache.pinot.spi.ingestion.batch.IngestionJobLauncher;
import org.apache.pinot.spi.ingestion.batch.spec.SegmentGenerationJobSpec;
import org.apache.pinot.spi.ingestion.batch.spec.TlsSpec;
import org.apache.pinot.spi.plugin.PluginManager;
import org.apache.pinot.spi.utils.GroovyTemplateUtils;
import org.apache.pinot.tools.Command;
import org.slf4j.Logger;
Expand Down Expand Up @@ -146,4 +147,9 @@ public String toString() {
public String description() {
return "Launch a data ingestion job.";
}

public static void main(String[] args) {
PluginManager.get().init();
new CommandLine(new LaunchDataIngestionJobCommand()).execute(args);
}
}

0 comments on commit b404e4a

Please sign in to comment.