|
@@ -84,6 +84,37 @@ class TestSparkClient(RMFTestCase):
|
|
|
dfs_type = '',
|
|
|
hadoop_conf_dir = '/usr/hdp/current/hadoop-client/conf',
|
|
|
)
|
|
|
+ self.assertResourceCalled('HdfsResource', '/livy2-recovery',
|
|
|
+ immutable_paths = self.DEFAULT_IMMUTABLE_PATHS,
|
|
|
+ security_enabled = False,
|
|
|
+ hadoop_bin_dir = '/usr/hdp/current/hadoop-client/bin',
|
|
|
+ keytab = UnknownConfigurationMock(),
|
|
|
+ default_fs = 'hdfs://c6401.ambari.apache.org:8020',
|
|
|
+ hdfs_site = {u'a': u'b'},
|
|
|
+ kinit_path_local = '/usr/bin/kinit',
|
|
|
+ principal_name = UnknownConfigurationMock(),
|
|
|
+ user = 'hdfs',
|
|
|
+ owner = 'livy',
|
|
|
+ hadoop_conf_dir = '/usr/hdp/current/hadoop-client/conf',
|
|
|
+ type = 'directory',
|
|
|
+ action = ['create_on_execute'], hdfs_resource_ignore_file='/var/lib/ambari-agent/data/.hdfs_resource_ignore',
|
|
|
+ dfs_type = '',
|
|
|
+ mode = 0775,
|
|
|
+ )
|
|
|
+ self.assertResourceCalled('HdfsResource', None,
|
|
|
+ immutable_paths = self.DEFAULT_IMMUTABLE_PATHS,
|
|
|
+ security_enabled = False,
|
|
|
+ hadoop_bin_dir = '/usr/hdp/current/hadoop-client/bin',
|
|
|
+ keytab = UnknownConfigurationMock(),
|
|
|
+ default_fs = 'hdfs://c6401.ambari.apache.org:8020',
|
|
|
+ hdfs_site = {u'a': u'b'},
|
|
|
+ kinit_path_local = '/usr/bin/kinit',
|
|
|
+ principal_name = UnknownConfigurationMock(),
|
|
|
+ user = 'hdfs',
|
|
|
+ action = ['execute'], hdfs_resource_ignore_file='/var/lib/ambari-agent/data/.hdfs_resource_ignore',
|
|
|
+ dfs_type = '',
|
|
|
+ hadoop_conf_dir = '/usr/hdp/current/hadoop-client/conf',
|
|
|
+ )
|
|
|
self.assertResourceCalled('File', '/usr/hdp/current/livy2-server/conf/livy-env.sh',
|
|
|
content = InlineTemplate(self.getConfig()['configurations']['livy2-env']['content']),
|
|
|
owner = 'livy',
|