Esempio n. 1
0
 def test_create_dir_hadoop1(self):
     helper.create_dir_hadoop1(self.cluster, 'Earth', 'BigBang')
     self.cluster.execute_command.assert_called_once_with(
         'sudo su - -c "hadoop dfs -mkdir Earth" BigBang')
Esempio n. 2
0
 def create_hdfs_dir(self, remote, dir_name):
     hdfs_helper.create_dir_hadoop1(remote, dir_name, self.get_hdfs_user())
Esempio n. 3
0
 def test_create_dir_hadoop1(self):
     helper.create_dir_hadoop1(self.cluster, 'Earth', 'BigBang')
     self.cluster.execute_command.assert_called_once_with(
         'sudo su - -c "hadoop dfs -mkdir Earth" BigBang')
Esempio n. 4
0
 def create_hdfs_dir(self, remote, dir_name):
     hdfs_helper.create_dir_hadoop1(remote, dir_name, self.get_hdfs_user())