Program: 112891
Project: 112891
Buggy source:
/** 
 * Main method to execute the MapReduce analytic.
 */
@SuppressWarnings("String_Node_Str") public int runJob() throws Exception {
  Configuration conf=super.getConf();
  if (conf == null) {
    conf=new Configuration();
    setConf(conf);
  }
  PrimaryIndex inputPrimaryIndex=null;
  final CloseableIterator<Index<?,?>> it1=inputDataStoreOptions.createIndexStore().getIndices();
  while (it1.hasNext()) {
    Index<?,?> index=it1.next();
    if (index instanceof PrimaryIndex) {
      inputPrimaryIndex=(PrimaryIndex)index;
      break;
    }
  }
  CoordinateReferenceSystem inputIndexCrs=GeometryUtils.getIndexCrs(inputPrimaryIndex);
  String inputCrsCode=GeometryUtils.getCrsCode(inputIndexCrs);
  PrimaryIndex outputPrimaryIndex=outputIndex;
  CoordinateReferenceSystem outputIndexCrs=null;
  String outputCrsCode=null;
  if (outputPrimaryIndex != null) {
    outputIndexCrs=GeometryUtils.getIndexCrs(outputPrimaryIndex);
    outputCrsCode=GeometryUtils.getCrsCode(outputIndexCrs);
  }
 else {
    SpatialDimensionalityTypeProvider sdp=new SpatialDimensionalityTypeProvider();
    SpatialOptions so=sdp.createOptions();
    so.setCrs(inputCrsCode);
    outputPrimaryIndex=sdp.createPrimaryIndex(so);
    outputIndexCrs=inputIndexCrs;
    outputCrsCode=inputCrsCode;
  }
  CoordinateSystem cs=outputIndexCrs.getCoordinateSystem();
  CoordinateSystemAxis csx=cs.getAxis(0);
  CoordinateSystemAxis csy=cs.getAxis(1);
  double xMax=csx.getMaximumValue();
  double xMin=csx.getMinimumValue();
  double yMax=csy.getMaximumValue();
  double yMin=csy.getMinimumValue();
  if (xMax == Double.POSITIVE_INFINITY || xMin == Double.NEGATIVE_INFINITY || yMax == Double.POSITIVE_INFINITY || yMin == Double.NEGATIVE_INFINITY) {
    LOGGER.error("String_Node_Str");
    throw new RuntimeException("String_Node_Str");
  }
  DataStorePluginOptions rasterResizeOutputDataStoreOptions;
  String kdeCoverageName;
  if ((kdeCommandLineOptions.getTileSize() > 1)) {
    rasterResizeOutputDataStoreOptions=outputDataStoreOptions;
    final Map<String,String> configOptions=outputDataStoreOptions.getOptionsAsMap();
    final StoreFactoryOptions options=ConfigUtils.populateOptionsFromList(outputDataStoreOptions.getFactoryFamily().getDataStoreFactory().createOptionsInstance(),configOptions);
    options.setGeowaveNamespace(outputDataStoreOptions.getGeowaveNamespace() + "String_Node_Str");
    outputDataStoreOptions=new DataStorePluginOptions(options);
    kdeCoverageName=kdeCommandLineOptions.getCoverageName() + TMP_COVERAGE_SUFFIX;
  }
 else {
    rasterResizeOutputDataStoreOptions=null;
    kdeCoverageName=kdeCommandLineOptions.getCoverageName();
  }
  if (kdeCommandLineOptions.getHdfsHostPort() == null) {
    Properties configProperties=ConfigOptions.loadProperties(configFile);
    String hdfsFSUrl=ConfigHDFSCommand.getHdfsUrl(configProperties);
    kdeCommandLineOptions.setHdfsHostPort(hdfsFSUrl);
  }
  GeoWaveConfiguratorBase.setRemoteInvocationParams(kdeCommandLineOptions.getHdfsHostPort(),kdeCommandLineOptions.getJobTrackerOrResourceManHostPort(),conf);
  conf.setInt(MAX_LEVEL_KEY,kdeCommandLineOptions.getMaxLevel());
  conf.setInt(MIN_LEVEL_KEY,kdeCommandLineOptions.getMinLevel());
  conf.set(COVERAGE_NAME_KEY,kdeCoverageName);
  if (kdeCommandLineOptions.getCqlFilter() != null) {
    conf.set(GaussianCellMapper.CQL_FILTER_KEY,kdeCommandLineOptions.getCqlFilter());
  }
  conf.setDouble(X_MIN_KEY,xMin);
  conf.setDouble(X_MAX_KEY,xMax);
  conf.setDouble(Y_MIN_KEY,yMin);
  conf.setDouble(Y_MAX_KEY,yMax);
  conf.set(INPUT_CRSCODE_KEY,inputCrsCode);
  conf.set(OUTPUT_CRSCODE_KEY,outputCrsCode);
  preJob1Setup(conf);
  final Job job=new Job(conf);
  job.setJarByClass(this.getClass());
  addJobClasspathDependencies(job,conf);
  job.setJobName(getJob1Name());
  job.setMapperClass(getJob1Mapper());
  job.setCombinerClass(CellSummationCombiner.class);
  job.setReducerClass(getJob1Reducer());
  job.setMapOutputKeyClass(LongWritable.class);
  job.setMapOutputValueClass(DoubleWritable.class);
  job.setOutputKeyClass(DoubleWritable.class);
  job.setOutputValueClass(LongWritable.class);
  job.setInputFormatClass(GeoWaveInputFormat.class);
  job.setOutputFormatClass(SequenceFileOutputFormat.class);
  job.setNumReduceTasks(8);
  job.setSpeculativeExecution(false);
  final AdapterStore adapterStore=inputDataStoreOptions.createAdapterStore();
  final IndexStore indexStore=inputDataStoreOptions.createIndexStore();
  final DataAdapter<?> adapter=adapterStore.getAdapter(new ByteArrayId(kdeCommandLineOptions.getFeatureType()));
  final QueryOptions queryOptions=new QueryOptions(adapter);
  if (kdeCommandLineOptions.getIndexId() != null) {
    final Index index=indexStore.getIndex(new ByteArrayId(kdeCommandLineOptions.getIndexId()));
    if ((index != null) && (index instanceof PrimaryIndex)) {
      queryOptions.setIndex((PrimaryIndex)index);
    }
  }
  GeoWaveInputFormat.setQueryOptions(job.getConfiguration(),queryOptions);
  GeoWaveInputFormat.setMinimumSplitCount(job.getConfiguration(),kdeCommandLineOptions.getMinSplits());
  GeoWaveInputFormat.setMaximumSplitCount(job.getConfiguration(),kdeCommandLineOptions.getMaxSplits());
  GeoWaveInputFormat.setStoreOptions(job.getConfiguration(),inputDataStoreOptions);
  if (kdeCommandLineOptions.getCqlFilter() != null) {
    Geometry bbox=null;
    if (adapter instanceof FeatureDataAdapter) {
      final String geometryAttribute=((FeatureDataAdapter)adapter).getFeatureType().getGeometryDescriptor().getLocalName();
      final Filter filter=ECQL.toFilter(kdeCommandLineOptions.getCqlFilter());
      final ExtractGeometryFilterVisitorResult geoAndCompareOpData=(ExtractGeometryFilterVisitorResult)filter.accept(new ExtractGeometryFilterVisitor(GeometryUtils.DEFAULT_CRS,geometryAttribute),null);
      bbox=geoAndCompareOpData.getGeometry();
    }
    if ((bbox != null) && !bbox.equals(GeometryUtils.infinity())) {
      GeoWaveInputFormat.setQuery(job.getConfiguration(),new SpatialQuery(bbox));
    }
  }
  FileSystem fs=null;
  try {
    fs=FileSystem.get(conf);
    fs.delete(new Path("String_Node_Str" + inputDataStoreOptions.getGeowaveNamespace() + "String_Node_Str"+ kdeCommandLineOptions.getMinLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getMaxLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getCoverageName()),true);
    FileOutputFormat.setOutputPath(job,new Path("String_Node_Str" + inputDataStoreOptions.getGeowaveNamespace() + "String_Node_Str"+ kdeCommandLineOptions.getMinLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getMaxLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getCoverageName()+ "String_Node_Str"));
    final boolean job1Success=job.waitForCompletion(true);
    boolean job2Success=false;
    boolean postJob2Success=false;
    if (job1Success) {
      setupEntriesPerLevel(job,conf);
      final Job statsReducer=new Job(conf);
      statsReducer.setJarByClass(this.getClass());
      addJobClasspathDependencies(statsReducer,conf);
      statsReducer.setJobName(getJob2Name());
      statsReducer.setMapperClass(IdentityMapper.class);
      statsReducer.setPartitionerClass(getJob2Partitioner());
      statsReducer.setReducerClass(getJob2Reducer());
      statsReducer.setNumReduceTasks(getJob2NumReducers((kdeCommandLineOptions.getMaxLevel() - kdeCommandLineOptions.getMinLevel()) + 1));
      statsReducer.setMapOutputKeyClass(DoubleWritable.class);
      statsReducer.setMapOutputValueClass(LongWritable.class);
      statsReducer.setOutputKeyClass(getJob2OutputKeyClass());
      statsReducer.setOutputValueClass(getJob2OutputValueClass());
      statsReducer.setInputFormatClass(SequenceFileInputFormat.class);
      statsReducer.setOutputFormatClass(getJob2OutputFormatClass());
      FileInputFormat.setInputPaths(statsReducer,new Path("String_Node_Str" + inputDataStoreOptions.getGeowaveNamespace() + "String_Node_Str"+ kdeCommandLineOptions.getMinLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getMaxLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getCoverageName()+ "String_Node_Str"));
      setupJob2Output(conf,statsReducer,outputDataStoreOptions.getGeowaveNamespace(),kdeCoverageName,outputPrimaryIndex);
      job2Success=statsReducer.waitForCompletion(true);
      if (job2Success) {
        postJob2Success=postJob2Actions(conf,outputDataStoreOptions.getGeowaveNamespace(),kdeCoverageName);
      }
    }
 else {
      job2Success=false;
    }
    if (rasterResizeOutputDataStoreOptions != null) {
      final ResizeCommand resizeCommand=new ResizeCommand();
      File configFile=File.createTempFile("String_Node_Str",null);
      ManualOperationParams params=new ManualOperationParams();
      params.getContext().put(ConfigOptions.PROPERTIES_FILE_CONTEXT,configFile);
      AddStoreCommand addStore=new AddStoreCommand();
      addStore.setParameters("String_Node_Str");
      addStore.setPluginOptions(outputDataStoreOptions);
      addStore.execute(params);
      addStore.setParameters("String_Node_Str");
      addStore.setPluginOptions(rasterResizeOutputDataStoreOptions);
      addStore.execute(params);
      resizeCommand.setParameters("String_Node_Str","String_Node_Str");
      resizeCommand.getOptions().setInputCoverageName(kdeCoverageName);
      resizeCommand.getOptions().setMinSplits(kdeCommandLineOptions.getMinSplits());
      resizeCommand.getOptions().setMaxSplits(kdeCommandLineOptions.getMaxSplits());
      resizeCommand.getOptions().setHdfsHostPort(kdeCommandLineOptions.getHdfsHostPort());
      resizeCommand.getOptions().setJobTrackerOrResourceManHostPort(kdeCommandLineOptions.getJobTrackerOrResourceManHostPort());
      resizeCommand.getOptions().setOutputCoverageName(kdeCommandLineOptions.getCoverageName());
      resizeCommand.getOptions().setOutputTileSize(kdeCommandLineOptions.getTileSize());
      final int resizeStatus=ToolRunner.run(resizeCommand.createRunner(params),new String[]{});
      if (resizeStatus == 0) {
        final ClearCommand clearCommand=new ClearCommand();
        clearCommand.setParameters("String_Node_Str");
        clearCommand.execute(params);
      }
 else {
        LOGGER.warn("String_Node_Str" + resizeStatus + "String_Node_Str"+ outputDataStoreOptions.getGeowaveNamespace()+ "String_Node_Str");
      }
    }
    fs.delete(new Path("String_Node_Str" + inputDataStoreOptions.getGeowaveNamespace() + "String_Node_Str"+ kdeCommandLineOptions.getMinLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getMaxLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getCoverageName()),true);
    return (job1Success && job2Success && postJob2Success) ? 0 : 1;
  }
  finally {
    if (fs != null) {
      try {
        fs.close();
      }
 catch (      IOException e) {
        LOGGER.info(e.getMessage());
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Main method to execute the MapReduce analytic.
 */
@SuppressWarnings("String_Node_Str") public int runJob() throws Exception {
  Configuration conf=super.getConf();
  if (conf == null) {
    conf=new Configuration();
    setConf(conf);
  }
  PrimaryIndex inputPrimaryIndex=null;
  final CloseableIterator<Index<?,?>> it1=inputDataStoreOptions.createIndexStore().getIndices();
  while (it1.hasNext()) {
    Index<?,?> index=it1.next();
    if (index instanceof PrimaryIndex) {
      inputPrimaryIndex=(PrimaryIndex)index;
      break;
    }
  }
  CoordinateReferenceSystem inputIndexCrs=GeometryUtils.getIndexCrs(inputPrimaryIndex);
  String inputCrsCode=GeometryUtils.getCrsCode(inputIndexCrs);
  PrimaryIndex outputPrimaryIndex=outputIndex;
  CoordinateReferenceSystem outputIndexCrs=null;
  String outputCrsCode=null;
  if (outputPrimaryIndex != null) {
    outputIndexCrs=GeometryUtils.getIndexCrs(outputPrimaryIndex);
    outputCrsCode=GeometryUtils.getCrsCode(outputIndexCrs);
  }
 else {
    SpatialDimensionalityTypeProvider sdp=new SpatialDimensionalityTypeProvider();
    SpatialOptions so=sdp.createOptions();
    so.setCrs(inputCrsCode);
    outputPrimaryIndex=sdp.createPrimaryIndex(so);
    outputIndexCrs=inputIndexCrs;
    outputCrsCode=inputCrsCode;
  }
  CoordinateSystem cs=outputIndexCrs.getCoordinateSystem();
  CoordinateSystemAxis csx=cs.getAxis(0);
  CoordinateSystemAxis csy=cs.getAxis(1);
  double xMax=csx.getMaximumValue();
  double xMin=csx.getMinimumValue();
  double yMax=csy.getMaximumValue();
  double yMin=csy.getMinimumValue();
  if (xMax == Double.POSITIVE_INFINITY || xMin == Double.NEGATIVE_INFINITY || yMax == Double.POSITIVE_INFINITY || yMin == Double.NEGATIVE_INFINITY) {
    LOGGER.error("String_Node_Str");
    throw new RuntimeException("String_Node_Str");
  }
  DataStorePluginOptions rasterResizeOutputDataStoreOptions;
  String kdeCoverageName;
  if ((kdeCommandLineOptions.getTileSize() > 1)) {
    rasterResizeOutputDataStoreOptions=outputDataStoreOptions;
    final Map<String,String> configOptions=outputDataStoreOptions.getOptionsAsMap();
    final StoreFactoryOptions options=ConfigUtils.populateOptionsFromList(outputDataStoreOptions.getFactoryFamily().getDataStoreFactory().createOptionsInstance(),configOptions);
    options.setGeowaveNamespace(outputDataStoreOptions.getGeowaveNamespace() + "String_Node_Str");
    outputDataStoreOptions=new DataStorePluginOptions(options);
    kdeCoverageName=kdeCommandLineOptions.getCoverageName() + TMP_COVERAGE_SUFFIX;
  }
 else {
    rasterResizeOutputDataStoreOptions=null;
    kdeCoverageName=kdeCommandLineOptions.getCoverageName();
  }
  if (kdeCommandLineOptions.getHdfsHostPort() == null) {
    Properties configProperties=ConfigOptions.loadProperties(configFile);
    String hdfsFSUrl=ConfigHDFSCommand.getHdfsUrl(configProperties);
    kdeCommandLineOptions.setHdfsHostPort(hdfsFSUrl);
  }
  GeoWaveConfiguratorBase.setRemoteInvocationParams(kdeCommandLineOptions.getHdfsHostPort(),kdeCommandLineOptions.getJobTrackerOrResourceManHostPort(),conf);
  conf.setInt(MAX_LEVEL_KEY,kdeCommandLineOptions.getMaxLevel());
  conf.setInt(MIN_LEVEL_KEY,kdeCommandLineOptions.getMinLevel());
  conf.set(COVERAGE_NAME_KEY,kdeCoverageName);
  if (kdeCommandLineOptions.getCqlFilter() != null) {
    conf.set(GaussianCellMapper.CQL_FILTER_KEY,kdeCommandLineOptions.getCqlFilter());
  }
  conf.setDouble(X_MIN_KEY,xMin);
  conf.setDouble(X_MAX_KEY,xMax);
  conf.setDouble(Y_MIN_KEY,yMin);
  conf.setDouble(Y_MAX_KEY,yMax);
  conf.set(INPUT_CRSCODE_KEY,inputCrsCode);
  conf.set(OUTPUT_CRSCODE_KEY,outputCrsCode);
  preJob1Setup(conf);
  final Job job=new Job(conf);
  job.setJarByClass(this.getClass());
  addJobClasspathDependencies(job,conf);
  job.setJobName(getJob1Name());
  job.setMapperClass(getJob1Mapper());
  job.setCombinerClass(CellSummationCombiner.class);
  job.setReducerClass(getJob1Reducer());
  job.setMapOutputKeyClass(LongWritable.class);
  job.setMapOutputValueClass(DoubleWritable.class);
  job.setOutputKeyClass(DoubleWritable.class);
  job.setOutputValueClass(LongWritable.class);
  job.setInputFormatClass(GeoWaveInputFormat.class);
  job.setOutputFormatClass(SequenceFileOutputFormat.class);
  job.setNumReduceTasks(8);
  job.setSpeculativeExecution(false);
  final AdapterStore adapterStore=inputDataStoreOptions.createAdapterStore();
  final IndexStore indexStore=inputDataStoreOptions.createIndexStore();
  final DataAdapter<?> adapter=adapterStore.getAdapter(new ByteArrayId(kdeCommandLineOptions.getFeatureType()));
  final QueryOptions queryOptions=new QueryOptions(adapter);
  if (kdeCommandLineOptions.getIndexId() != null) {
    final Index index=indexStore.getIndex(new ByteArrayId(kdeCommandLineOptions.getIndexId()));
    if ((index != null) && (index instanceof PrimaryIndex)) {
      queryOptions.setIndex((PrimaryIndex)index);
    }
  }
  GeoWaveInputFormat.setQueryOptions(job.getConfiguration(),queryOptions);
  GeoWaveInputFormat.setMinimumSplitCount(job.getConfiguration(),kdeCommandLineOptions.getMinSplits());
  GeoWaveInputFormat.setMaximumSplitCount(job.getConfiguration(),kdeCommandLineOptions.getMaxSplits());
  GeoWaveInputFormat.setStoreOptions(job.getConfiguration(),inputDataStoreOptions);
  if (kdeCommandLineOptions.getCqlFilter() != null) {
    Geometry bbox=null;
    if (adapter instanceof FeatureDataAdapter) {
      final String geometryAttribute=((FeatureDataAdapter)adapter).getFeatureType().getGeometryDescriptor().getLocalName();
      final Filter filter=ECQL.toFilter(kdeCommandLineOptions.getCqlFilter());
      final ExtractGeometryFilterVisitorResult geoAndCompareOpData=(ExtractGeometryFilterVisitorResult)filter.accept(new ExtractGeometryFilterVisitor(GeometryUtils.getDefaultCRS(),geometryAttribute),null);
      bbox=geoAndCompareOpData.getGeometry();
    }
    if ((bbox != null) && !bbox.equals(GeometryUtils.infinity())) {
      GeoWaveInputFormat.setQuery(job.getConfiguration(),new SpatialQuery(bbox));
    }
  }
  FileSystem fs=null;
  try {
    fs=FileSystem.get(conf);
    fs.delete(new Path("String_Node_Str" + inputDataStoreOptions.getGeowaveNamespace() + "String_Node_Str"+ kdeCommandLineOptions.getMinLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getMaxLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getCoverageName()),true);
    FileOutputFormat.setOutputPath(job,new Path("String_Node_Str" + inputDataStoreOptions.getGeowaveNamespace() + "String_Node_Str"+ kdeCommandLineOptions.getMinLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getMaxLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getCoverageName()+ "String_Node_Str"));
    final boolean job1Success=job.waitForCompletion(true);
    boolean job2Success=false;
    boolean postJob2Success=false;
    if (job1Success) {
      setupEntriesPerLevel(job,conf);
      final Job statsReducer=new Job(conf);
      statsReducer.setJarByClass(this.getClass());
      addJobClasspathDependencies(statsReducer,conf);
      statsReducer.setJobName(getJob2Name());
      statsReducer.setMapperClass(IdentityMapper.class);
      statsReducer.setPartitionerClass(getJob2Partitioner());
      statsReducer.setReducerClass(getJob2Reducer());
      statsReducer.setNumReduceTasks(getJob2NumReducers((kdeCommandLineOptions.getMaxLevel() - kdeCommandLineOptions.getMinLevel()) + 1));
      statsReducer.setMapOutputKeyClass(DoubleWritable.class);
      statsReducer.setMapOutputValueClass(LongWritable.class);
      statsReducer.setOutputKeyClass(getJob2OutputKeyClass());
      statsReducer.setOutputValueClass(getJob2OutputValueClass());
      statsReducer.setInputFormatClass(SequenceFileInputFormat.class);
      statsReducer.setOutputFormatClass(getJob2OutputFormatClass());
      FileInputFormat.setInputPaths(statsReducer,new Path("String_Node_Str" + inputDataStoreOptions.getGeowaveNamespace() + "String_Node_Str"+ kdeCommandLineOptions.getMinLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getMaxLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getCoverageName()+ "String_Node_Str"));
      setupJob2Output(conf,statsReducer,outputDataStoreOptions.getGeowaveNamespace(),kdeCoverageName,outputPrimaryIndex);
      job2Success=statsReducer.waitForCompletion(true);
      if (job2Success) {
        postJob2Success=postJob2Actions(conf,outputDataStoreOptions.getGeowaveNamespace(),kdeCoverageName);
      }
    }
 else {
      job2Success=false;
    }
    if (rasterResizeOutputDataStoreOptions != null) {
      final ResizeCommand resizeCommand=new ResizeCommand();
      File configFile=File.createTempFile("String_Node_Str",null);
      ManualOperationParams params=new ManualOperationParams();
      params.getContext().put(ConfigOptions.PROPERTIES_FILE_CONTEXT,configFile);
      AddStoreCommand addStore=new AddStoreCommand();
      addStore.setParameters("String_Node_Str");
      addStore.setPluginOptions(outputDataStoreOptions);
      addStore.execute(params);
      addStore.setParameters("String_Node_Str");
      addStore.setPluginOptions(rasterResizeOutputDataStoreOptions);
      addStore.execute(params);
      resizeCommand.setParameters("String_Node_Str","String_Node_Str");
      resizeCommand.getOptions().setInputCoverageName(kdeCoverageName);
      resizeCommand.getOptions().setMinSplits(kdeCommandLineOptions.getMinSplits());
      resizeCommand.getOptions().setMaxSplits(kdeCommandLineOptions.getMaxSplits());
      resizeCommand.getOptions().setHdfsHostPort(kdeCommandLineOptions.getHdfsHostPort());
      resizeCommand.getOptions().setJobTrackerOrResourceManHostPort(kdeCommandLineOptions.getJobTrackerOrResourceManHostPort());
      resizeCommand.getOptions().setOutputCoverageName(kdeCommandLineOptions.getCoverageName());
      resizeCommand.getOptions().setOutputTileSize(kdeCommandLineOptions.getTileSize());
      final int resizeStatus=ToolRunner.run(resizeCommand.createRunner(params),new String[]{});
      if (resizeStatus == 0) {
        final ClearCommand clearCommand=new ClearCommand();
        clearCommand.setParameters("String_Node_Str");
        clearCommand.execute(params);
      }
 else {
        LOGGER.warn("String_Node_Str" + resizeStatus + "String_Node_Str"+ outputDataStoreOptions.getGeowaveNamespace()+ "String_Node_Str");
      }
    }
    fs.delete(new Path("String_Node_Str" + inputDataStoreOptions.getGeowaveNamespace() + "String_Node_Str"+ kdeCommandLineOptions.getMinLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getMaxLevel()+ "String_Node_Str"+ kdeCommandLineOptions.getCoverageName()),true);
    return (job1Success && job2Success && postJob2Success) ? 0 : 1;
  }
  finally {
    if (fs != null) {
      try {
        fs.close();
      }
 catch (      IOException e) {
        LOGGER.info(e.getMessage());
      }
    }
  }
}