def InstallSpark(vm): vm.Install('spark') if self.cloud == 'GCP': hadoop.InstallGcsConnector(vm) if self.cloud == 'AWS': hadoop.InstallS3Connector(vm)
def InstallHadoop(vm): vm.Install('hadoop') if self.cloud == 'GCP': hadoop.InstallGcsConnector(vm) if self.cloud == 'AWS': hadoop.InstallS3Connector(vm)