Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What‘s the difference between spark.rss.storage.type and rss.storage.type? #127

Closed
xunxunmimi5577 opened this issue May 7, 2022 · 18 comments

Comments

@xunxunmimi5577
Copy link
Contributor

No description provided.

@jerqi
Copy link
Collaborator

jerqi commented May 7, 2022

spark.rss.storage.type is client's configuration.rss.storage.type is server's configuration.

@xunxunmimi5577
Copy link
Contributor Author

Both parameters affect the storage mode of ShuffleServer? Then,which one has a higher priority?

@jerqi
Copy link
Collaborator

jerqi commented May 7, 2022

Both parameters affect the storage mode of ShuffleServer? Then,which one has a higher priority?

Only rss.storage.type affects.

@xunxunmimi5577
Copy link
Contributor Author

What is spark.rss.storage.type used for?

@jerqi
Copy link
Collaborator

jerqi commented May 7, 2022

What is spark.rss.storage.type used for?

client

@xunxunmimi5577
Copy link
Contributor Author

Does the client also can store data to a local disk or HDFS?

@jerqi
Copy link
Collaborator

jerqi commented May 7, 2022

Does the client also can store data to a local disk or HDFS?

Client need to know where to read data.

@xunxunmimi5577
Copy link
Contributor Author

So these two parameters need be set to the same?

@jerqi
Copy link
Collaborator

jerqi commented May 7, 2022

So these two parameters need be set to the same?

Yes

@xunxunmimi5577
Copy link
Contributor Author

ok,thanks

@xunxunmimi5577
Copy link
Contributor Author

I have a problem,when I set storageType = HDFS, Error: Blocks read Inconsistent: Expected 61 Blocks, actual 0 Blocks
The version I'm using is 0.2.0

@xunxunmimi5577
Copy link
Contributor Author

xunxunmimi5577 commented May 7, 2022

The configuration items are as follows
rss.rpc.server.port 19969
rss.jetty.http.port 19968
rss.storage.basePath /rss-0.2.0/shuffle-data1,/rss-0.2.0/shuffle-data2
rss.storage.type HDFS
rss.coordinator.quorum xxx:19999,xxx:19999,xxx:19999
rss.server.buffer.capacity 4gb
rss.server.buffer.spill.threshold 2gb
rss.server.partition.buffer.size 15mb
rss.server.read.buffer.capacity 2gb
rss.server.flush.thread.alive 5
rss.server.flush.threadPool.size 10
rss.server.health.check.enable false

#multistorage config
rss.server.multistorage.enable true
rss.server.uploader.enable true
rss.server.uploader.base.path hdfs:/firestorm/shuffle-data
rss.server.uploader.thread.number 3
rss.server.disk.capacity 5115506975

Spark client
spark.shuffle.manager org.apache.spark.shuffle.RssShuffleManager
spark.rss.coordinator.quorum xxx:19999,xxx:19999,xxx:19999
spark.rss.storage.type HDFS

@jerqi
Copy link
Collaborator

jerqi commented May 7, 2022

We don't recommend the storageType HDFS, you would better to use MEMORY_LOCALE.

@jerqi
Copy link
Collaborator

jerqi commented May 7, 2022

Storage HDFS will be removed soon.

@xunxunmimi5577
Copy link
Contributor Author

Is there some problems with HDFS storage mode, so you want to remove it?

@xunxunmimi5577
Copy link
Contributor Author

In terms of the results of my tests, only when I set storage type = LOCALFILE_HDFS that the shuffle data will be written to HDFS.
But I also find, in this case,if I delete local data, the same exception 'Blocks read Inconsistent' is reported, so i want to figure out if the function of reading shuffle data from HDFS is not sound enough so far.
Thanks for your time!

@jerqi
Copy link
Collaborator

jerqi commented May 7, 2022

Is there some problems with HDFS storage mode, so you want to remove it?

HDFS mode have poor performance. HDFS can work correctly.

@xunxunmimi5577
Copy link
Contributor Author

Is there some problems with HDFS storage mode, so you want to remove it?

HDFS mode have poor performance. HDFS can work correctly.

Yes, you're right. I've got some configurations set incorrectly.

@jerqi jerqi closed this as completed May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants