Buggy code:
DatagenParams . tagCountryCorrProb = Double . parseDouble ( conf . get ( DatagenParams . ParameterNames . TAG_UNCORRELATED_COUNTRY . toString ( ) ) ) ; DatagenParams . flashmobTagsPerMonth = Integer . parseInt ( conf . get ( DatagenParams . ParameterNames . FLASHMOB_TAGS_PER_MONTH . toString ( ) ) ) ; DatagenParams . probInterestFlashmobTag = Double . parseDouble ( conf . get ( DatagenParams . ParameterNames . PROB_INTEREST_FLASHMOB_TAG . toString ( ) ) ) ; DatagenParams . probRandomPerLevel = Double . parseDouble ( conf . get ( DatagenParams . ParameterNames . PROB_RANDOM_PER_LEVEL . toString ( ) ) ) ; DatagenParams . maxNumFlashmobPostPerMonth = Integer . parseInt ( conf . get ( DatagenParams . ParameterNames . MAX_NUM_FLASHMOB_POST_PER_MONTH . toString ( ) ) ) ; DatagenParams . maxNumGroupFlashmobPostPerMonth = Integer . parseInt ( conf . get ( DatagenParams . ParameterNames . MAX_NUM_GROUP_FLASHMOB_POST_PER_MONTH . toString ( ) ) ) ; DatagenParams . maxNumTagPerFlashmobPost = Integer . parseInt ( conf . get ( DatagenParams . ParameterNames . MAX_NUM_TAG_PER_FLASHMOB_POST . toString ( ) ) ) ; DatagenParams . flashmobTagMinLevel = Double . parseDouble ( conf . get ( DatagenParams . ParameterNames . FLASHMOB_TAG_MIN_LEVEL . toString ( ) ) ) ; DatagenParams . flashmobTagMaxLevel = Double . parseDouble ( conf . get ( DatagenParams . ParameterNames . FLASHMOB_TAG_MAX_LEVEL . toString ( ) ) ) ; DatagenParams . flashmobTagDistExp = Double . parseDouble ( conf . get ( DatagenParams . ParameterNames . FLASHMOB_TAG_DIST_EXP . toString ( ) ) ) ; DatagenParams . updatePortion = Double . parseDouble ( conf . get ( DatagenParams . ParameterNames . UPDATE_PORTION . toString ( ) ) ) ; DatagenParams . blockSize = Integer . parseInt ( conf . get ( DatagenParams . ParameterNames . BLOCK_SIZE . toString ( ) ) ) ; DatagenParams . scaleFactors = new TreeMap < Integer , ScaleFactor > ( ) ; DocumentBuilderFactory dbFactory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder dBuilder = dbFactory . newDocumentBuilder ( ) ; Document doc = dBuilder . parse ( LDBCDatagen . class . getResourceAsStream ( ( "//" + ( DatagenParams . SCALE_FACTORS_FILE ) ) ) ) ; doc . getDocumentElement ( ) . normalize ( ) ; System . out . println ( "Reading<seq2seq4repair_space>scale<seq2seq4repair_space>factors.." ) ; NodeList nodes = doc . getElementsByTagName ( "scale_factor" ) ; for ( int i = 0 ; i < ( nodes . getLength ( ) ) ; i ++ ) { Node node = nodes . item ( i ) ; if ( ( node . getNodeType ( ) ) == ( Node . ELEMENT_NODE ) ) { Element element = ( ( Element ) ( node ) ) ; Integer num = Integer . parseInt ( element . getAttribute ( "number" ) ) ; ScaleFactor scaleFactor = new ScaleFactor ( ) ; NodeList files = element . getElementsByTagName ( "num_persons" ) ; scaleFactor . numPersons = Integer . parseInt ( files . item ( 0 ) . getTextContent ( ) ) ; files = element . getElementsByTagName ( "start_year" ) ; scaleFactor . startYear = Integer . parseInt ( files . item ( 0 ) . getTextContent ( ) ) ; files = element . getElementsByTagName ( "num_years" ) ; scaleFactor . numYears = Integer . parseInt ( files . item ( 0 ) . getTextContent ( ) ) ; DatagenParams . scaleFactors . put ( num , scaleFactor ) ; } } System . out . println ( ( "Number<seq2seq4repair_space>of<seq2seq4repair_space>scale<seq2seq4repair_space>factors<seq2seq4repair_space>read<seq2seq4repair_space>" + ( DatagenParams . scaleFactors . size ( ) ) ) ) ; } catch ( Exception e ) { System . out . println ( "Error<seq2seq4repair_space>reading<seq2seq4repair_space>scale<seq2seq4repair_space>factors" ) ; System . err . println ( e . getMessage ( ) ) ; System . exit ( ( - 1 ) ) ; } try { if ( ( ( ( conf . get ( "ldbc.snb.datagen.generator.numPersons" ) ) != null ) && ( ( conf . get ( "ldbc.snb.datagen.generator.numYears" ) ) != null ) ) && ( ( conf . get ( "ldbc.snb.datagen.generator.startYear" ) ) != null ) ) { DatagenParams . numPersons = Integer . parseInt ( conf . get ( "ldbc.snb.datagen.generator.numPersons" ) ) ; DatagenParams . startYear = Integer . parseInt ( conf . get ( "ldbc.snb.datagen.generator.startYear" ) ) ; DatagenParams . numYears = Integer . parseInt ( conf . get ( "ldbc.snb.datagen.generator.numYears" ) ) ; DatagenParams . endYear = ( DatagenParams . startYear ) + ( DatagenParams . numYears ) ; } else { int scaleFactorId = Integer . parseInt ( conf . get ( "ldbc.snb.datagen.generator.scaleFactor" ) ) ; ScaleFactor scaleFactor = DatagenParams . scaleFactors . get ( scaleFactorId ) ; System . out . println ( ( "Executing<seq2seq4repair_space>with<seq2seq4repair_space>scale<seq2seq4repair_space>factor<seq2seq4repair_space>" + scaleFactorId ) ) ; System . out . println ( ( "<seq2seq4repair_space>...<seq2seq4repair_space>Num<seq2seq4repair_space>Persons<seq2seq4repair_space>" + ( scaleFactor . numPersons ) ) ) ; System . out . println ( ( "<seq2seq4repair_space>...<seq2seq4repair_space>Start<seq2seq4repair_space>Year<seq2seq4repair_space>" + ( scaleFactor . startYear ) ) ) ; System . out . println ( ( "<seq2seq4repair_space>...<seq2seq4repair_space>Num<seq2seq4repair_space>Years<seq2seq4repair_space>" + ( scaleFactor . numYears ) ) ) ; DatagenParams . numPersons = scaleFactor . numPersons ; DatagenParams . startYear = scaleFactor . startYear ; DatagenParams . numYears = scaleFactor . numYears ; DatagenParams . endYear = ( DatagenParams . startYear ) + ( DatagenParams . numYears ) ; } DatagenParams . compressed = conf . getBoolean ( "ldbc.snb.datagen.serializer.compressed" , false ) ; DatagenParams . numThreads = conf . getInt ( "ldbc.snb.datagen.generator.numThreads" , 1 ) ; DatagenParams . updateStreams = conf . getBoolean ( "ldbc.snb.datagen.serializer.updateStreams" , false ) ; <START_BUG> DatagenParams . updateStreams = conf . getBoolean ( "ldbc.snb.datagen.serializer.numPartitions" , false ) ; <END_BUG> DatagenParams . deltaTime = conf . getInt ( "ldbc.snb.datagen.generator.deltaTime" , 10000 ) ; DatagenParams . outputDir = conf . get ( "ldbc.snb.datagen.serializer.outputDir" ) ; DatagenParams . hadoopDir = ( DatagenParams . outputDir ) + "//hadoop" ; DatagenParams . socialNetworkDir = ( DatagenParams . outputDir ) + "social_network" ; } catch ( Exception e ) { System . err . println ( e . getMessage ( ) ) ; System . exit ( ( - 1 ) ) ; } } }

Fix:
DatagenParams . numPartitions = conf . getBoolean ( "ldbc.snb.datagen.serializer.numPartitions" , false ) ;