Buggy code:
public class GDELTIngest { static String INSTANCE_ID = "instanceId" ; static String ZOOKEEPERS = "zookeepers" ; static String USER = "user" ; static String PASSWORD = "password" ; static String AUTHS = "auths" ; static String VISIBILITY = "visibilities" ; static String TABLE_NAME = "tableName" ; static String FEATURE_NAME = "featureName" ; static String INGEST_FILE = "ingestFile" ; static String [ ] ACCUMULO_CONNECTION_PARAMS = new String [ ] { GDELTIngest . INSTANCE_ID , GDELTIngest . ZOOKEEPERS , GDELTIngest . USER , GDELTIngest . PASSWORD , GDELTIngest . AUTHS , GDELTIngest . VISIBILITY , GDELTIngest . TABLE_NAME } ; static Options getCommonRequiredOptions ( ) { } public static Map < String , String > getAccumuloDataStoreConf ( CommandLine cmd ) { } public static void main ( String [ ] args ) throws Exception { } private static void runMapReduceJob ( String featureName , Map < String , String > dsConf , Path mapredCSVFilePath ) throws Exception { Job job = Job . getInstance ( new Configuration ( ) ) ; job . setMapperClass ( GDELTIngestMapper . class ) ; job . setOutputFormatClass ( AccumuloFileOutputFormat . class ) ; job . setJobName ( "GeoMesa<seq2seq4repair_space>GDELT<seq2seq4repair_space>Ingest" ) ; Configuration conf = job . getConfiguration ( ) ; for ( String key : dsConf . keySet ( ) ) { conf . set ( key , dsConf . get ( key ) ) ; } conf . set ( GDELTIngest . FEATURE_NAME , featureName ) ; FileSystem fs = FileSystem . get ( conf ) ; FileInputFormat . setInputPaths ( job , mapredCSVFilePath ) ; Path tmpPath = new Path ( "//////tmp" ) ; if ( ! ( fs . exists ( tmpPath ) ) ) { <START_BUG> fs . create ( tmpPath ) ; <END_BUG> } Path outputDir = new Path ( "//////tmp" , "geomesa-gdelt-output" ) ; if ( fs . exists ( outputDir ) ) { fs . delete ( outputDir , true ) ; } Path hdfsJarPath = new Path ( "//////tmp" , "geomesa-gdelt-1.0-SNAPSHOT.jar" ) ; if ( fs . exists ( hdfsJarPath ) ) { fs . delete ( hdfsJarPath , true ) ; } FileOutputFormat . setOutputPath ( job , outputDir ) ; fs . copyFromLocalFile ( new Path ( "target//geomesa-gdelt-1.0-SNAPSHOT.jar" ) , hdfsJarPath ) ; for ( FileStatus path : fs . listStatus ( hdfsJarPath ) ) { job . addArchiveToClassPath ( new Path ( path . getPath ( ) . toUri ( ) . getPath ( ) ) ) ; } job . submit ( ) ; if ( ! ( job . waitForCompletion ( true ) ) ) { throw new Exception ( "Job<seq2seq4repair_space>failed" ) ; } } private static SimpleFeatureType buildGDELTFeatureType ( String featureName ) throws SchemaException { } static List < String > attributes = Lists . newArrayList ( "GLOBALEVENTID:Integer" , "SQLDATE:Date" , "MonthYear:Integer" , "Year:Integer" , "FractionDate:Float" , "Actor1Code:String" , "Actor1Name:String" , "Actor1CountryCode:String" , "Actor1KnownGroupCode:String" , "Actor1EthnicCode:String" , "Actor1Religion1Code:String" , "Actor1Religion2Code:String" , "Actor1Type1Code:String" , "Actor1Type2Code:String" , "Actor1Type3Code:String" , "Actor2Code:String" , "Actor2Name:String" , "Actor2CountryCode:String" , "Actor2KnownGroupCode:String" , "Actor2EthnicCode:String" , "Actor2Religion1Code:String" , "Actor2Religion2Code:String" , "Actor2Type1Code:String" , "Actor2Type2Code:String" , "Actor2Type3Code:String" , "IsRootEvent:Integer" , "EventCode:String" , "EventBaseCode:String" , "EventRootCode:String" , "QuadClass:Integer" , "GoldsteinScale:Float" , "NumMentions:Integer" , "NumSources:Integer" , "NumArticles:Integer" , "AvgTone:Float" , "Actor1Geo_Type:Integer" , "Actor1Geo_FullName:String" , "Actor1Geo_CountryCode:String" , "Actor1Geo_ADM1Code:String" , "Actor1Geo_Lat:Float" , "Actor1Geo_Long:Float" , "Actor1Geo_FeatureID:Integer" , "Actor2Geo_Type:Integer" , "Actor2Geo_FullName:String" , "Actor2Geo_CountryCode:String" , "Actor2Geo_ADM1Code:String" , "Actor2Geo_Lat:Float" , "Actor2Geo_Long:Float" , "Actor2Geo_FeatureID:Integer" , "ActionGeo_Type:Integer" , "ActionGeo_FullName:String" , "ActionGeo_CountryCode:String" , "ActionGeo_ADM1Code:String" , "ActionGeo_Lat:Float" , "ActionGeo_Long:Float" , "ActionGeo_FeatureID:Integer" , "DATEADDED:Integer" , "*geom:Point:srid=4326" ) ; }

Fix:
fs . mkdirs ( tmpPath ) ;