|
@@ -34,6 +34,11 @@ class TestHiveClient(RMFTestCase):
|
|
|
group = 'hadoop',
|
|
|
recursive = True,
|
|
|
)
|
|
|
+ self.assertResourceCalled('Directory', '/etc/hive/conf.server',
|
|
|
+ owner = 'hive',
|
|
|
+ group = 'hadoop',
|
|
|
+ recursive = True,
|
|
|
+ )
|
|
|
self.assertResourceCalled('XmlConfig', 'mapred-site.xml',
|
|
|
owner = 'hive',
|
|
|
group = 'hadoop',
|
|
@@ -50,6 +55,22 @@ class TestHiveClient(RMFTestCase):
|
|
|
configurations = self.getConfig()['configurations']['hive-site'],
|
|
|
configuration_attributes = self.getConfig()['configuration_attributes']['hive-site']
|
|
|
)
|
|
|
+ self.assertResourceCalled('XmlConfig', 'mapred-site.xml',
|
|
|
+ owner = 'hive',
|
|
|
+ group = 'hadoop',
|
|
|
+ mode = 0600,
|
|
|
+ conf_dir = '/etc/hive/conf.server',
|
|
|
+ configurations = self.getConfig()['configurations']['mapred-site'],
|
|
|
+ configuration_attributes = self.getConfig()['configuration_attributes']['mapred-site']
|
|
|
+ )
|
|
|
+ self.assertResourceCalled('XmlConfig', 'hive-site.xml',
|
|
|
+ owner = 'hive',
|
|
|
+ group = 'hadoop',
|
|
|
+ mode = 0600,
|
|
|
+ conf_dir = '/etc/hive/conf.server',
|
|
|
+ configurations = self.getConfig()['configurations']['hive-site'],
|
|
|
+ configuration_attributes = self.getConfig()['configuration_attributes']['hive-site']
|
|
|
+ )
|
|
|
self.assertResourceCalled('Execute', "/bin/sh -c 'cd /usr/lib/ambari-agent/ && curl -kf -x \"\" --retry 5 http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar'",
|
|
|
not_if = '[ -f DBConnectionVerification.jar]',
|
|
|
environment = {'no_proxy': 'c6401.ambari.apache.org'}
|
|
@@ -59,6 +80,11 @@ class TestHiveClient(RMFTestCase):
|
|
|
owner = 'hive',
|
|
|
group = 'hadoop',
|
|
|
)
|
|
|
+ self.assertResourceCalled('File', '/etc/hive/conf.server/hive-env.sh',
|
|
|
+ content = InlineTemplate(self.getConfig()['configurations']['hive-env']['content']),
|
|
|
+ owner = 'hive',
|
|
|
+ group = 'hadoop',
|
|
|
+ )
|
|
|
self.assertResourceCalled('File', '/etc/hive/conf/hive-default.xml.template',
|
|
|
owner = 'hive',
|
|
|
group = 'hadoop',
|
|
@@ -97,6 +123,11 @@ class TestHiveClient(RMFTestCase):
|
|
|
group = 'hadoop',
|
|
|
recursive = True,
|
|
|
)
|
|
|
+ self.assertResourceCalled('Directory', '/etc/hive/conf.server',
|
|
|
+ owner = 'hive',
|
|
|
+ group = 'hadoop',
|
|
|
+ recursive = True,
|
|
|
+ )
|
|
|
self.assertResourceCalled('XmlConfig', 'mapred-site.xml',
|
|
|
owner = 'hive',
|
|
|
group = 'hadoop',
|
|
@@ -113,6 +144,22 @@ class TestHiveClient(RMFTestCase):
|
|
|
configurations = self.getConfig()['configurations']['hive-site'],
|
|
|
configuration_attributes = self.getConfig()['configuration_attributes']['hive-site']
|
|
|
)
|
|
|
+ self.assertResourceCalled('XmlConfig', 'mapred-site.xml',
|
|
|
+ owner = 'hive',
|
|
|
+ group = 'hadoop',
|
|
|
+ mode = 0600,
|
|
|
+ conf_dir = '/etc/hive/conf.server',
|
|
|
+ configurations = self.getConfig()['configurations']['mapred-site'],
|
|
|
+ configuration_attributes = self.getConfig()['configuration_attributes']['mapred-site']
|
|
|
+ )
|
|
|
+ self.assertResourceCalled('XmlConfig', 'hive-site.xml',
|
|
|
+ owner = 'hive',
|
|
|
+ group = 'hadoop',
|
|
|
+ mode = 0600,
|
|
|
+ conf_dir = '/etc/hive/conf.server',
|
|
|
+ configurations = self.getConfig()['configurations']['hive-site'],
|
|
|
+ configuration_attributes = self.getConfig()['configuration_attributes']['hive-site']
|
|
|
+ )
|
|
|
self.assertResourceCalled('Execute', "/bin/sh -c 'cd /usr/lib/ambari-agent/ && curl -kf -x \"\" --retry 5 http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar'",
|
|
|
not_if = '[ -f DBConnectionVerification.jar]',
|
|
|
environment = {'no_proxy': 'c6401.ambari.apache.org'}
|
|
@@ -122,6 +169,11 @@ class TestHiveClient(RMFTestCase):
|
|
|
owner = 'hive',
|
|
|
group = 'hadoop',
|
|
|
)
|
|
|
+ self.assertResourceCalled('File', '/etc/hive/conf.server/hive-env.sh',
|
|
|
+ content = InlineTemplate(self.getConfig()['configurations']['hive-env']['content']),
|
|
|
+ owner = 'hive',
|
|
|
+ group = 'hadoop',
|
|
|
+ )
|
|
|
self.assertResourceCalled('File', '/etc/hive/conf/hive-default.xml.template',
|
|
|
owner = 'hive',
|
|
|
group = 'hadoop',
|