private Map<String,String> getBasicSystemConfig() {
		Map<String,String> map = new HashMap<String,String>();
		// Job & Task
		if (this.isLocalMode) 
			map.put(JOB_FACTORY_CLASS_KEY, LocalJobFactory.class.getName());
		else {
			map.put(JOB_FACTORY_CLASS_KEY, YarnJobFactory.class.getName());

			// yarn
			map.put(YARN_PACKAGE_KEY,jarPath);
			map.put(CONTAINER_MEMORY_KEY, Integer.toString(this.containerMemory));
			map.put(AM_MEMORY_KEY, Integer.toString(this.amMemory));
			map.put(CONTAINER_COUNT_KEY, "1"); 
			map.put(YARN_CONF_HOME_KEY, SystemsUtils.getHadoopConfigHome());
			
			// Task opts (Heap size = 0.75 container memory) 
			int heapSize = (int)(0.75*this.containerMemory);
			map.put("task.opts", "-Xmx"+Integer.toString(heapSize)+"M -XX:+PrintGCDateStamps");
		}


		map.put(JOB_NAME_KEY, "");
		map.put(TASK_CLASS_KEY, "");
		map.put(TASK_INPUTS_KEY, "");

		// register serializer
		map.put("serializers.registry.kryo.class",SamzaKryoSerdeFactory.class.getName());

		// Serde registration
		setKryoRegistration(map, this.kryoRegisterFile);

		return map;
	}
private Map < String , String > getBasicSystemConfig ( ) { Map < String , String > map = new HashMap < String , String > ( ) ; if ( this . isLocalMode ) map . put ( JOB_FACTORY_CLASS_KEY , LocalJobFactory . class . getName ( ) ) ; else { map . put ( JOB_FACTORY_CLASS_KEY , YarnJobFactory . class . getName ( ) ) ; map . put ( YARN_PACKAGE_KEY , jarPath ) ; map . put ( CONTAINER_MEMORY_KEY , Integer . toString ( this . containerMemory ) ) ; map . put ( AM_MEMORY_KEY , Integer . toString ( this . amMemory ) ) ; map . put ( CONTAINER_COUNT_KEY , "1" ) ; map . put ( YARN_CONF_HOME_KEY , SystemsUtils . getHadoopConfigHome ( ) ) ; int heapSize = ( int ) ( 0.75 * this . containerMemory ) ; map . put ( "task.opts" , "-Xmx" + Integer . toString ( heapSize ) + "M -XX:+PrintGCDateStamps" ) ; } map . put ( JOB_NAME_KEY , "" ) ; map . put ( TASK_CLASS_KEY , "" ) ; map . put ( TASK_INPUTS_KEY , "" ) ; map . put ( "serializers.registry.kryo.class" , SamzaKryoSerdeFactory . class . getName ( ) ) ; setKryoRegistration ( map , this . kryoRegisterFile ) ; return map ; }
/*
Generate a map with common properties for PIs and EPI