Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

use dfs command to create file parallel #1505

Merged
merged 4 commits into from
Dec 26, 2017

Conversation

duzhen1996
Copy link
Contributor

No description provided.

@@ -73,6 +73,27 @@ def test_create_10M_DFSIO(self):
subprocess.call("hdfs dfs -mv /benchmarks/TestDFSIO/io_data " +
TEST_DIR + str(i) + "_data")


def test_create_10K_0KB_DFSIO_parallel(self):
dir_name = TEST_DIR + random_string()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this line below your comments.


file_index = 0;
for i in range(10000 / process_group_size):
process_group = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This array will become larger and larger without deleting any items.

file_index = file_index + 1

# wait
for k in range(process_group_size):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -73,6 +73,27 @@ def test_create_10M_DFSIO(self):
subprocess.call("hdfs dfs -mv /benchmarks/TestDFSIO/io_data " +
TEST_DIR + str(i) + "_data")


def test_create_10K_0KB_DFSIO_parallel(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think each client should create several dirs, each dir has 10,000~100,000 files. So, maybe you need another loop.

@@ -16,6 +18,62 @@ def test_create_100M_0KB_thread(max_number):
wait_for_cmdlets(cids)


def cpu_count():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this method to util.py

@qiyuangong qiyuangong merged commit ebe83c4 into Intel-bigdata:trunk Dec 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants