- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Loading spark-shell took too long. 5 minutes
- Labels:
-
Apache Spark
-
Apache YARN
Created ‎03-29-2021 02:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
When running spark-shell, it took me about 5 minutes to get into this cli
There are no errors. Tuned my YARN memory but still having 5 minutes everytime.
Cluster is small setup about 10 nodes.
Didn't encounter this on a smaller cluster(3nodes), and on bigger cluster(40nodes).
Anyone got idea?it is really appreciated.
Created ‎04-06-2021 10:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@muslihuddin There might be network latency between nodes. You may want to enable Debug logging for Spark and then see the logs. Try using iperf, ping, etc. and see if there is low bandwidth and high latency between the edge node and the cluster.
Cheers!
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Created ‎04-07-2021 02:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @GangWar . thanks for the suggestion. I tried to ping between the nodes, not seing abnormal latency.
But looks like the loading time solve by changing my java version.
It now load pretty quick.
Btw the same happen when I'm running simple hdfs command such as
hdfs dfs -ls / . It will take me quite sometimes to list the directory.
But once java version changed, it is now looks fine. You think this is the real root cause?
Created ‎04-07-2021 07:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@muslihuddin It could be but I can't confirm since we don't have any insight may be the old logs digging can give some clue. I haven't seen this before.
Cheers!
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
