description="Converts the old Druid ingestion spec to the new version"
)
publicclassConvertIngestionSpecimplementsRunnable
{
@Option(name="-o",title="old ingestion file",description="file with old ingestion spec",required=true)
publicStringoldFile;
@Option(name="-n",title="new ingestion file",description="file with new ingestion spec",required=true)
publicStringnewFile;
@Option(name="-t",title="type",description="the type of ingestion spec to convert. types[standalone_realtime, cli_hadoop, index_realtime, index_hadoop, index]",required=true)
publicStringtype;
@Override
publicvoidrun()
{
Filefile=newFile(oldFile);
if(!file.exists()){
System.out.printf("File[%s] does not exist.%n",file);