#NEWLINE# def __init__( self , host = None , port = None , user = None ) : #NEWLINE# #INDENT# self . host = ( host or hdfs_config . hdfs ( ) . namenode_host ) #NEWLINE# self . port = ( port or webhdfs ( ) . port ) #NEWLINE# self . user = ( user or webhdfs ( ) . user or os . environ [ 'USER' ] )