ÇöÀç Spark¸¦ Standalone mode·Î ÀÌ¿ëÇÏ°í ÀÖ½À´Ï´Ù.
Yarn ¸ðµå¸¦ »ç¿ëÇϱâ À§ÇØ HadoopÀ» ¼³Ä¡ÇÏ¿´°í
´ÙÀ½°ú °°ÀÌ JPS·Î È®ÀÎÇÏ¿´À» ¶§, datanode¿Í yarn manager°¡ Á¤»óÀûÀ¸·Î ¿Ã¶ó¿É´Ï´Ù.(localhost¸¸ »ç¿ëÇÒ¶§)
11872 Worker ------> spark worker
15346 Jps
14036 ResourceManager ------> yarn manager
13877 SecondaryNameNode ------> hadoop secondary
13669 DataNode ------> hadoop datanode
13499 NameNode ------> hadoop namenode
11724 Master ------> spark master
ÀÌ »óÅ¿¡¼ ¾Æ·¡¿Í °°ÀÌ ¿¹Á¦¸¦ ½ÇÇàÇϸé... (¿¹Á¦ Ãâó : spark °ø½Ä ȨÆäÀÌÁö)
./bin/spark-submit --class org.apache.spark.examples.SparkPi \
> --master yarn \
> --deploy-mode cluster \
> --driver-memory 4g \
> --executor-memory 2g \
> --executor-cores 1 \
> --queue thequeue \
> lib/spark-examples*.jar \
> 10
½ÇÇà ÀÌÈÄ ¿¡·¯¶óµµ ¶ß¸é ã¾Æº¼ÅÙµ¥ ¾Æ¹«·± logµµ ¾øÀÌ ¹¬¹¬ ºÎ´äÀÔ´Ï´Ù. µµ¿ÍÁÖ¼¼¿ä.
hadoopÀÇ start-dfs.sh¶û start-yarn.sh ¾øÀÌ sparkÀÇ start-all.sh¸¸ ½ÇÇàÇÑ »óÅ¿¡¼ ¿¹Á¦¸¦ ½ÇÇàÇصµ ¿¡·¯ ¾øÀÌ ¹¬¹¬ºÎ´äÀÔ´Ï´Ù. |