Exemplo n.º 1
0
 def test_retry_configs(self):
     conf_path = self.get_config_path('ha-retry-hdfs-site.xml')
     config = HDFSConfig.read_hdfs_config(conf_path)
     self.assertEquals(config['client_retries'], 5)
     self.assertEquals(config['client_sleep_base_millis'], 400)
     self.assertEquals(config['client_sleep_max_millis'], 14000)
     self.assertEquals(config['socket_timeout_millis'], 25000)
     self.assertEquals(config['failover_max_attempts'], 7)
Exemplo n.º 2
0
 def test_retry_configs(self):
     conf_path = self.get_config_path('ha-retry-hdfs-site.xml')
     config = HDFSConfig.read_hdfs_config(conf_path)
     self.assertEquals(config['client_retries'], 5)
     self.assertEquals(config['client_sleep_base_millis'], 400)
     self.assertEquals(config['client_sleep_max_millis'], 14000)
     self.assertEquals(config['socket_timeout_millis'], 25000)
     self.assertEquals(config['failover_max_attempts'], 7)
Exemplo n.º 3
0
 def test_read_hdfs_config_ha(self):
     hdfs_site_path = self.get_config_path('ha-port-hdfs-site.xml')
     config = HDFSConfig.read_hdfs_config(hdfs_site_path)
     self._verify_hdfs_settings(config)
Exemplo n.º 4
0
 def test_use_datanode_hostname_configs(self):
     conf_path = self.get_config_path('use-datanode-hostname-hdfs-site.xml')
     config = HDFSConfig.read_hdfs_config(conf_path)
     self.assertTrue(config['use_datanode_hostname'])
Exemplo n.º 5
0
 def test_read_hdfs_config_ha(self):
     hdfs_site_path = self.get_config_path('ha-port-hdfs-site.xml')
     config = HDFSConfig.read_hdfs_config(hdfs_site_path)
     self._verify_hdfs_settings(config)
Exemplo n.º 6
0
 def test_use_datanode_hostname_configs(self):
     conf_path = self.get_config_path('use-datanode-hostname-hdfs-site.xml')
     config = HDFSConfig.read_hdfs_config(conf_path)
     self.assertTrue(config['use_datanode_hostname'])
Exemplo n.º 7
0
 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)
Exemplo n.º 8
0
 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)