|
@@ -321,7 +321,6 @@ class TestDruid(RMFTestCase):
|
|
|
|
|
|
self.assertResourceCalled('Directory', '/var/log/druid',
|
|
self.assertResourceCalled('Directory', '/var/log/druid',
|
|
mode=0755,
|
|
mode=0755,
|
|
- cd_access='a',
|
|
|
|
owner='druid',
|
|
owner='druid',
|
|
group='hadoop',
|
|
group='hadoop',
|
|
create_parents=True,
|
|
create_parents=True,
|
|
@@ -330,7 +329,14 @@ class TestDruid(RMFTestCase):
|
|
|
|
|
|
self.assertResourceCalled('Directory', '/var/run/druid',
|
|
self.assertResourceCalled('Directory', '/var/run/druid',
|
|
mode=0755,
|
|
mode=0755,
|
|
- cd_access='a',
|
|
|
|
|
|
+ owner='druid',
|
|
|
|
+ group='hadoop',
|
|
|
|
+ create_parents=True,
|
|
|
|
+ recursive_ownership=True
|
|
|
|
+ )
|
|
|
|
+
|
|
|
|
+ self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf'),
|
|
|
|
+ mode=0700,
|
|
owner='druid',
|
|
owner='druid',
|
|
group='hadoop',
|
|
group='hadoop',
|
|
create_parents=True,
|
|
create_parents=True,
|
|
@@ -338,8 +344,7 @@ class TestDruid(RMFTestCase):
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/_common'),
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/_common'),
|
|
- mode=0755,
|
|
|
|
- cd_access='a',
|
|
|
|
|
|
+ mode=0700,
|
|
owner='druid',
|
|
owner='druid',
|
|
group='hadoop',
|
|
group='hadoop',
|
|
create_parents=True,
|
|
create_parents=True,
|
|
@@ -347,8 +352,7 @@ class TestDruid(RMFTestCase):
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/coordinator'),
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/coordinator'),
|
|
- mode=0755,
|
|
|
|
- cd_access='a',
|
|
|
|
|
|
+ mode=0700,
|
|
owner='druid',
|
|
owner='druid',
|
|
group='hadoop',
|
|
group='hadoop',
|
|
create_parents=True,
|
|
create_parents=True,
|
|
@@ -356,8 +360,7 @@ class TestDruid(RMFTestCase):
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/broker'),
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/broker'),
|
|
- mode=0755,
|
|
|
|
- cd_access='a',
|
|
|
|
|
|
+ mode=0700,
|
|
owner='druid',
|
|
owner='druid',
|
|
group='hadoop',
|
|
group='hadoop',
|
|
create_parents=True,
|
|
create_parents=True,
|
|
@@ -365,8 +368,7 @@ class TestDruid(RMFTestCase):
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/middleManager'),
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/middleManager'),
|
|
- mode=0755,
|
|
|
|
- cd_access='a',
|
|
|
|
|
|
+ mode=0700,
|
|
owner='druid',
|
|
owner='druid',
|
|
group='hadoop',
|
|
group='hadoop',
|
|
create_parents=True,
|
|
create_parents=True,
|
|
@@ -374,8 +376,7 @@ class TestDruid(RMFTestCase):
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/historical'),
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/historical'),
|
|
- mode=0755,
|
|
|
|
- cd_access='a',
|
|
|
|
|
|
+ mode=0700,
|
|
owner='druid',
|
|
owner='druid',
|
|
group='hadoop',
|
|
group='hadoop',
|
|
create_parents=True,
|
|
create_parents=True,
|
|
@@ -383,8 +384,7 @@ class TestDruid(RMFTestCase):
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/overlord'),
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/overlord'),
|
|
- mode=0755,
|
|
|
|
- cd_access='a',
|
|
|
|
|
|
+ mode=0700,
|
|
owner='druid',
|
|
owner='druid',
|
|
group='hadoop',
|
|
group='hadoop',
|
|
create_parents=True,
|
|
create_parents=True,
|
|
@@ -392,8 +392,23 @@ class TestDruid(RMFTestCase):
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/router'),
|
|
self.assertResourceCalled('Directory', format('/usr/hdp/current/{role}/conf/router'),
|
|
- mode=0755,
|
|
|
|
- cd_access='a',
|
|
|
|
|
|
+ mode=0700,
|
|
|
|
+ owner='druid',
|
|
|
|
+ group='hadoop',
|
|
|
|
+ create_parents=True,
|
|
|
|
+ recursive_ownership=True
|
|
|
|
+ )
|
|
|
|
+
|
|
|
|
+ self.assertResourceCalled('Directory', '/apps/druid/segmentCache/info_dir',
|
|
|
|
+ mode=0700,
|
|
|
|
+ owner='druid',
|
|
|
|
+ group='hadoop',
|
|
|
|
+ create_parents=True,
|
|
|
|
+ recursive_ownership=True
|
|
|
|
+ )
|
|
|
|
+
|
|
|
|
+ self.assertResourceCalled('Directory', '/apps/druid/tasks',
|
|
|
|
+ mode=0700,
|
|
owner='druid',
|
|
owner='druid',
|
|
group='hadoop',
|
|
group='hadoop',
|
|
create_parents=True,
|
|
create_parents=True,
|
|
@@ -401,8 +416,7 @@ class TestDruid(RMFTestCase):
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('Directory', '/apps/druid/segmentCache',
|
|
self.assertResourceCalled('Directory', '/apps/druid/segmentCache',
|
|
- mode=0755,
|
|
|
|
- cd_access='a',
|
|
|
|
|
|
+ mode=0700,
|
|
owner='druid',
|
|
owner='druid',
|
|
group='hadoop',
|
|
group='hadoop',
|
|
create_parents=True,
|
|
create_parents=True,
|
|
@@ -411,7 +425,8 @@ class TestDruid(RMFTestCase):
|
|
|
|
|
|
self.assertResourceCalled('File', format('/usr/hdp/current/{role}/conf/druid-env.sh'),
|
|
self.assertResourceCalled('File', format('/usr/hdp/current/{role}/conf/druid-env.sh'),
|
|
owner = 'druid',
|
|
owner = 'druid',
|
|
- content = InlineTemplate(self.getConfig()['configurations']['druid-env']['content'])
|
|
|
|
|
|
+ content = InlineTemplate(self.getConfig()['configurations']['druid-env']['content']),
|
|
|
|
+ mode = 0700
|
|
)
|
|
)
|
|
druid_common_config = mutable_config_dict(self.getConfig()['configurations']['druid-common'])
|
|
druid_common_config = mutable_config_dict(self.getConfig()['configurations']['druid-common'])
|
|
druid_common_config['druid.host'] = 'c6401.ambari.apache.org'
|
|
druid_common_config['druid.host'] = 'c6401.ambari.apache.org'
|
|
@@ -424,7 +439,8 @@ class TestDruid(RMFTestCase):
|
|
dir=format("/usr/hdp/current/{role}/conf/_common"),
|
|
dir=format("/usr/hdp/current/{role}/conf/_common"),
|
|
properties=druid_common_config,
|
|
properties=druid_common_config,
|
|
owner='druid',
|
|
owner='druid',
|
|
- group='hadoop'
|
|
|
|
|
|
+ group='hadoop',
|
|
|
|
+ mode = 0600
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('File', format('/usr/hdp/current/{role}/conf/_common/druid-log4j.xml'),
|
|
self.assertResourceCalled('File', format('/usr/hdp/current/{role}/conf/_common/druid-log4j.xml'),
|
|
@@ -445,7 +461,8 @@ class TestDruid(RMFTestCase):
|
|
dir=format('/usr/hdp/current/{role}/conf/coordinator'),
|
|
dir=format('/usr/hdp/current/{role}/conf/coordinator'),
|
|
properties=self.getConfig()['configurations']['druid-coordinator'],
|
|
properties=self.getConfig()['configurations']['druid-coordinator'],
|
|
owner='druid',
|
|
owner='druid',
|
|
- group='hadoop'
|
|
|
|
|
|
+ group='hadoop',
|
|
|
|
+ mode = 0600
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/coordinator/jvm.config"),
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/coordinator/jvm.config"),
|
|
@@ -463,7 +480,8 @@ class TestDruid(RMFTestCase):
|
|
dir=format('/usr/hdp/current/{role}/conf/overlord'),
|
|
dir=format('/usr/hdp/current/{role}/conf/overlord'),
|
|
properties=self.getConfig()['configurations']['druid-overlord'],
|
|
properties=self.getConfig()['configurations']['druid-overlord'],
|
|
owner='druid',
|
|
owner='druid',
|
|
- group='hadoop'
|
|
|
|
|
|
+ group='hadoop',
|
|
|
|
+ mode = 0600
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/overlord/jvm.config"),
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/overlord/jvm.config"),
|
|
@@ -481,7 +499,8 @@ class TestDruid(RMFTestCase):
|
|
dir=format('/usr/hdp/current/{role}/conf/historical'),
|
|
dir=format('/usr/hdp/current/{role}/conf/historical'),
|
|
properties=self.getConfig()['configurations']['druid-historical'],
|
|
properties=self.getConfig()['configurations']['druid-historical'],
|
|
owner='druid',
|
|
owner='druid',
|
|
- group='hadoop'
|
|
|
|
|
|
+ group='hadoop',
|
|
|
|
+ mode = 0600
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/historical/jvm.config"),
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/historical/jvm.config"),
|
|
@@ -500,7 +519,8 @@ class TestDruid(RMFTestCase):
|
|
dir=format('/usr/hdp/current/{role}/conf/broker'),
|
|
dir=format('/usr/hdp/current/{role}/conf/broker'),
|
|
properties=self.getConfig()['configurations']['druid-broker'],
|
|
properties=self.getConfig()['configurations']['druid-broker'],
|
|
owner='druid',
|
|
owner='druid',
|
|
- group='hadoop'
|
|
|
|
|
|
+ group='hadoop',
|
|
|
|
+ mode = 0600
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/broker/jvm.config"),
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/broker/jvm.config"),
|
|
@@ -519,7 +539,8 @@ class TestDruid(RMFTestCase):
|
|
dir=format('/usr/hdp/current/{role}/conf/middleManager'),
|
|
dir=format('/usr/hdp/current/{role}/conf/middleManager'),
|
|
properties=self.getConfig()['configurations']['druid-middlemanager'],
|
|
properties=self.getConfig()['configurations']['druid-middlemanager'],
|
|
owner='druid',
|
|
owner='druid',
|
|
- group='hadoop'
|
|
|
|
|
|
+ group='hadoop',
|
|
|
|
+ mode = 0600
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/middleManager/jvm.config"),
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/middleManager/jvm.config"),
|
|
@@ -537,7 +558,8 @@ class TestDruid(RMFTestCase):
|
|
dir=format('/usr/hdp/current/{role}/conf/router'),
|
|
dir=format('/usr/hdp/current/{role}/conf/router'),
|
|
properties=self.getConfig()['configurations']['druid-router'],
|
|
properties=self.getConfig()['configurations']['druid-router'],
|
|
owner='druid',
|
|
owner='druid',
|
|
- group='hadoop'
|
|
|
|
|
|
+ group='hadoop',
|
|
|
|
+ mode = 0600
|
|
)
|
|
)
|
|
|
|
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/router/jvm.config"),
|
|
self.assertResourceCalled('File', format("/usr/hdp/current/{role}/conf/router/jvm.config"),
|