Esempio n. 1
0
 def create_hdfs_dir(self, remote, dir_name):
     hdfs_helper.create_dir_hadoop2(remote, dir_name, self.get_hdfs_user())
Esempio n. 2
0
 def test_create_dir_hadoop2(self):
     helper.create_dir_hadoop2(self.cluster, 'Earth', 'BigBang')
     self.cluster.execute_command.assert_called_once_with(
         'sudo su - -c "hadoop dfs -mkdir -p Earth" BigBang')
Esempio n. 3
0
 def create_hdfs_dir(self, remote, dir_name):
     hdfs_helper.create_dir_hadoop2(remote, dir_name, self.get_hdfs_user())
Esempio n. 4
0
def create_dir_hadoop2(r, dir_name, hdfs_user, **kwargs):
    hdfs_helper.create_dir_hadoop2(r, dir_name, hdfs_user)
Esempio n. 5
0
 def test_create_dir_hadoop2(self):
     helper.create_dir_hadoop2(self.cluster, 'Earth', 'BigBang')
     self.cluster.execute_command.assert_called_once_with(
         'sudo su - -c "hadoop dfs -mkdir -p Earth" BigBang')
Esempio n. 6
0
def create_dir_hadoop2(r, dir_name, hdfs_user, **kwargs):
    hdfs_helper.create_dir_hadoop2(r, dir_name, hdfs_user)