#NEWLINE# def _hadoop_dirs( self ) : #NEWLINE# #INDENT# 'Yield all possible hadoop directories (used for streaming jar\n        and logs). May yield duplicates' #NEWLINE# if self . _opts [ 'hadoop_home' ] : #NEWLINE# #INDENT# ( yield self . _opts [ 'hadoop_home' ] ) #NEWLINE# #UNINDENT# for name in ( 'HADOOP_PREFIX' , 'HADOOP_HOME' , 'HADOOP_INSTALL' , 'HADOOP_MAPRED_HOME' ) : #NEWLINE# #INDENT# path = os . environ . get ( name ) #NEWLINE# if path : #NEWLINE# #INDENT# ( yield path ) #NEWLINE# #UNINDENT# #UNINDENT# hadoop_home = _hadoop_prefix_from_bin ( self . get_hadoop_bin ( ) [ 0 ] ) #NEWLINE# if hadoop_home : #NEWLINE# #INDENT# ( yield hadoop_home ) #NEWLINE# #UNINDENT# for ( name , path ) in sorted ( os . environ . items ( ) ) : #NEWLINE# #INDENT# if ( name . startswith ( 'HADOOP_' ) and name . endswith ( '_HOME' ) ) : #NEWLINE# #INDENT# ( yield name )