In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
The first time I saw Spark crash.
The phenomenon of Spark Shell memory OOM
To do Spark diagram calculation, so the use of Google web-Google.txt, size 71.8MB.
To command:
Val graph = GraphLoader.edgeListFile (sc, "hdfs://192.168.0.10:9000/input/graph/web-Google.txt")
When building the graph, it was returned directly to the console after a long time of operation.
Interface xian
Scala > val graph = GraphLoader.edgeListFile (sc, "hdfs://192.168.0.10:9000/input/graph/web-Google.txt")
[Stage 0: > (0 + 2) / 2]. / bin/spark-shell: line 44: 3592 Killed "${SPARK_HOME}" / bin/spark-submit-- class org.apache.spark.repl.Main-- name "Spark shell"$@"
The second Spark crash!
Perform the pagerank algorithm test, using the data web-Google.txt of google, the size 71.8MB.
Val rank = graph.pageRank. Vertices
Spark is a cluster of master,2 worker. As a result, slave2 is down.
09:51:44 INFO cluster.SparkDeploySchedulerBackend on 16-11-14: Granted executor ID app-20161114084026-0000 on hostPort 1333 on hostPort 192.168.0.5 with 4 cores, 1024.0 MB RAM
09:51:44 on 16-11-14 INFO client.AppClient$ClientEndpoint: Executor updated: app-20161114084026-0000Universe 1333 is now RUNNING
09:51:44 on 16-11-14 INFO client.AppClient$ClientEndpoint: Executor updated: app-20161114084026-0000Universe 1333 is now EXITED (Command exited with code 1)
09:51:44 on 16-11-14 INFO cluster.SparkDeploySchedulerBackend: Executor app-20161114084026-0000Compact 1333 removed: Command exited with code 1
16-11-14 09:51:44 INFO cluster.SparkDeploySchedulerBackend: Asked to remove non-existent executor 1333
09:51:44 on 16-11-14 INFO client.AppClient$ClientEndpoint: Executor added: app-20161114084026-0000max 1334 on worker-20161114083607-192.168.0.5-42898 (192.168.0.5 with 42898) with 4 cores
As a result, I have been trying to connect to slave2, hehe.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.