#NEWLINE# def EnvironmentSetUp( self ) : #NEWLINE# #INDENT# 'Sets up Hadoop-on-Compute environment.\n\n    Must be run once per project/Cloud Storage bucket pair.\n\n    Raises:\n      EnvironmentSetUpError: Script failed.\n    ' #NEWLINE# command = ' ' . join ( [ MakeScriptRelativePath ( 'preprocess.sh' ) , self . LOCAL_TMP_DIR , self . flags . project , self . tmp_storage ] ) #NEWLINE# logging . debug ( 'Environment set-up command: %s' , command ) #NEWLINE# if subprocess . call ( command , shell = True ) : #NEWLINE# #INDENT# raise EnvironmentSetUpError ( 'Environment set up failed.' )