#NEWLINE# def get_instance_params_mapping( inst ) : #NEWLINE# #INDENT# configs = _create_ambari_configs ( inst . node_group . node_configs , inst . node_group . cluster . hadoop_version ) #NEWLINE# storage_paths = inst . storage_paths ( ) #NEWLINE# configs . setdefault ( 'hdfs-site' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# configs [ 'hdfs-site' ] [ 'dfs.datanode.data.dir' ] = _make_paths ( storage_paths , '/hdfs/data' ) #NEWLINE# configs [ 'hdfs-site' ] [ 'dfs.journalnode.edits.dir' ] = _make_paths ( storage_paths , '/hdfs/journalnode' ) #NEWLINE# configs [ 'hdfs-site' ] [ 'dfs.namenode.checkpoint.dir' ] = _make_paths ( storage_paths , '/hdfs/namesecondary' ) #NEWLINE# configs [ 'hdfs-site' ] [ 'dfs.namenode.name.dir' ] = _make_paths ( storage_paths , '/hdfs/namenode' ) #NEWLINE# configs . setdefault ( 'yarn-site' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# configs [ 'yarn-site' ] [ 'yarn.nodemanager.local-dirs' ] = _make_paths ( storage_paths , '/yarn/local' ) #NEWLINE# configs [ 'yarn-site' ] [ 'yarn.nodemanager.log-dirs' ] = _make_paths ( storage_paths , '/yarn/log' ) #NEWLINE# configs [ 'yarn-site' ] [ 'yarn.timeline-service.leveldb-timeline-store.path' ] = _make_paths ( inst , '/yarn/timeline' ) #NEWLINE# configs . setdefault ( 'oozie-site' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# configs [ 'oozie-site' ] [ 'oozie.service.AuthorizationService.security.enabled' ] = 'false' #NEWLINE# return configs