celeborn icon indicating copy to clipboard operation
celeborn copied to clipboard

[BUG] could not run select count(*) successful

Open xudalei1977 opened this issue 4 years ago • 5 comments

What is the bug(with logs or screenshots)?

A clear and concise description of what the bug is.

start the spark-sql as: spark-sql
--master yarn
--deploy-mode client
--num-executors 5
--executor-cores 2
--executor-memory 8G
--driver-cores 1
--driver-memory 4G
--conf "spark.dynamicAllocation.enabled=false"
--conf "spark.sql.debug.maxToStringFields=500"
--conf "spark.shuffle.manager=org.apache.spark.shuffle.rss.RssShuffleManager"
--conf "spark.serializer=org.apache.spark.serializer.KryoSerializer"
--conf "spark.rss.master.address=ip-10-0-0-151.ec2.internal:9097"
--conf "spark.shuffle.service.enabled=false"
--conf "spark.rss.push.data.replicate=true"
--conf "spark.sql.adaptive.localShuffleReader.enabled=false"
--conf "spark.sql.adaptive.enabled=true"
--conf "spark.sql.adaptive.skewJoin.enabled=true"

spark-sql> select * from rss_1; 1 1 Time taken: 6.193 seconds, Fetched 2 row(s) spark-sql> select count(*) from rss_1; 2305843014045532161 Time taken: 2.832 seconds, Fetched 1 row(s)

How to reproduce the bug?

Steps to reproduce the bug.

/cc @who-need-to-know

/assign @who-can-solve-this-bug

xudalei1977 avatar Aug 29 '22 02:08 xudalei1977

@xudalei1977 What branch do you use while running "select count(*) "? Can you share your build's git commit id?

FMX avatar Aug 29 '22 02:08 FMX

the master branch, follow the readme to build.

xudalei1977 avatar Aug 29 '22 03:08 xudalei1977

@xudalei1977 What branch do you use while running "select count(*) "? Can you share your build's git commit id?

6d9b81957e3122673c2a10731e9a3b098a03900b

xudalei1977 avatar Aug 29 '22 03:08 xudalei1977

I tested https://github.com/alibaba/RemoteShuffleService/commit/6d9b81957e3122673c2a10731e9a3b098a03900b on Spark-3.2.1 and didn't reproduce the bug.

spark-sql> select * from test;
22/08/29 15:06:31 WARN SessionState: METASTORE_FILTER_HOOK will be ignored, since hive.security.authorization.manager is set to instance of HiveAuthorizerFactory.
1
Time taken: 4.237 seconds, Fetched 1 row(s)
spark-sql> select count(*) from test;
1
Time taken: 4.064 seconds, Fetched 1 row(s)

The following log proves RSS is used

22/08/29 15:06:40,235 INFO [dispatcher-event-loop-32] Master: Offer slots successfully for 1 reducers of application_1661174368345_0183-0 on 1 workers.
22/08/29 15:06:40,236 INFO [dispatcher-event-loop-32] Master: Offered extra 2 slots for application_1661174368345_0183-0
22/08/29 15:06:40,459 INFO [dispatcher-event-loop-30] Master: [handleReleaseSlots] Release all slots of application_1661174368345_0183-0

waitinfuture avatar Aug 29 '22 07:08 waitinfuture

i use AWS EMR 6.5.0, Spark 3.1.2,

spark-sql> select * from rss_1; 22/08/29 14:24:12 WARN SessionState: METASTORE_FILTER_HOOK will be ignored, since hive.security.authorization.manager is set to instance of HiveAuthorizerFactory. 1 1 Time taken: 10.281 seconds, Fetched 2 row(s) spark-sql> select count(*) from rss_1; 2305843018340499456 Time taken: 11.333 seconds, Fetched 1 row(s) spark-sql>

xudalei1977 avatar Aug 29 '22 14:08 xudalei1977