public boolean setJstormConf ( String key , String value ) { //todo: how to set conf from a signal // could pull configuration file from nimbus String line = " " + key + ": " + value ; try { Files . write ( Paths . get ( "deploy/jstorm/conf/storm.yaml" ) , line . getBytes ( ) , StandardOpenOption . APPEND ) ; } catch ( IOException e ) { LOG . error ( e ) ; return false ; } return true ; }
set local conf