def import_bin_files(self): os.makedirs(os.path.join(self.get_path(), "resources", "cassandra", "bin")) common.copy_directory(os.path.join(self.get_install_dir(), "bin"), self.get_bin_dir()) common.copy_directory( os.path.join(self.get_install_dir(), "resources", "cassandra", "bin"), os.path.join(self.get_path(), "resources", "cassandra", "bin"), )
def copy_config_files(self): for product in ['dse', 'cassandra', 'hadoop', 'sqoop', 'hive', 'tomcat', 'spark', 'shark', 'mahout', 'pig']: if not os.path.isdir(os.path.join(self.get_path(), 'resources', product, 'conf')): os.makedirs(os.path.join(self.get_path(), 'resources', product, 'conf')) common.copy_directory(os.path.join(self.get_install_dir(), 'resources', product, 'conf'), os.path.join(self.get_path(), 'resources', product, 'conf')) if product == 'cassandra': os.mkdir(os.path.join(self.get_path(), 'resources', product, 'conf', 'triggers'))
def import_bin_files(self): cassandra_bin_dir = os.path.join(self.get_path(), 'resources', 'cassandra', 'bin') shutil.rmtree(cassandra_bin_dir, ignore_errors=True) os.makedirs(cassandra_bin_dir) common.copy_directory(os.path.join(self.get_install_dir(), 'bin'), self.get_bin_dir()) common.copy_directory(os.path.join(self.get_install_dir(), 'resources', 'cassandra', 'bin'), cassandra_bin_dir) self.export_dse_home_in_dse_env_sh()
def import_dse_config_files(self): self._update_config() if not os.path.isdir(os.path.join(self.get_path(), "resources", "dse", "conf")): os.makedirs(os.path.join(self.get_path(), "resources", "dse", "conf")) common.copy_directory( os.path.join(self.get_install_dir(), "resources", "dse", "conf"), os.path.join(self.get_path(), "resources", "dse", "conf"), ) self.__update_yaml()
def import_dse_config_files(self): self._update_config() if not os.path.isdir( os.path.join(self.get_path(), 'resources', 'dse', 'conf')): os.makedirs( os.path.join(self.get_path(), 'resources', 'dse', 'conf')) common.copy_directory( os.path.join(self.get_install_dir(), 'resources', 'dse', 'conf'), os.path.join(self.get_path(), 'resources', 'dse', 'conf')) self.__update_yaml()
def import_bin_files(self): common.copy_directory(os.path.join(self.get_install_dir(), 'bin'), self.get_bin_dir()) cassandra_bin_dir = os.path.join(self.get_path(), 'resources', 'cassandra', 'bin') shutil.rmtree(cassandra_bin_dir, ignore_errors=True) os.makedirs(cassandra_bin_dir) common.copy_directory(os.path.join(self.get_install_dir(), 'resources', 'cassandra', 'bin'), cassandra_bin_dir) if os.path.exists(os.path.join(self.get_install_dir(), 'resources', 'cassandra', 'tools')): cassandra_tools_dir = os.path.join(self.get_path(), 'resources', 'cassandra', 'tools') shutil.rmtree(cassandra_tools_dir, ignore_errors=True) shutil.copytree(os.path.join(self.get_install_dir(), 'resources', 'cassandra', 'tools'), cassandra_tools_dir) self.export_dse_home_in_dse_env_sh()
def import_bin_files(self): os.makedirs(os.path.join(self.get_path(), 'resources', 'cassandra', 'bin')) common.copy_directory(os.path.join(self.get_install_dir(), 'bin'), self.get_bin_dir()) common.copy_directory(os.path.join(self.get_install_dir(), 'resources', 'cassandra', 'bin'), os.path.join(self.get_path(), 'resources', 'cassandra', 'bin'))
def import_dse_config_files(self): self._update_config() if not os.path.isdir(os.path.join(self.get_path(), 'resources', 'dse', 'conf')): os.makedirs(os.path.join(self.get_path(), 'resources', 'dse', 'conf')) common.copy_directory(os.path.join(self.get_install_dir(), 'resources', 'dse', 'conf'), os.path.join(self.get_path(), 'resources', 'dse', 'conf')) self._update_yaml()