Example #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)
Example #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)
Example #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)
Example #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'])
Example #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)
Example #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'])
Example #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)
Example #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)