def test_read_hdfs_port_config_ha(self): hdfs_core_path = self.get_config_path('ha-port-hdfs-site.xml') conf = HDFSConfig.read_hadoop_config(hdfs_core_path) config = HDFSConfig.read_hdfs_config('', conf, 'testha', ['namenode1-mydomain', 'namenode2-mydomain']) self._verify_hdfs_port_settings(config)
def test_read_hdfs_config_ha(self): hdfs_core_path = self.get_config_path('ha-port-hdfs-site.xml') conf = HDFSConfig.read_hadoop_config(hdfs_core_path) config = HDFSConfig.read_hdfs_config('', conf, '', []) self._verify_hdfs_settings_all(config)