Application report for application_ (state: ACCEPTED) never ends for Spark Submit (with Spark 1.2.0 on YARN) -


i running kinesis plus spark application https://spark.apache.org/docs/1.2.0/streaming-kinesis-integration.html

i running below

command on ec2 instance :

 ./spark/bin/spark-submit --class org.apache.spark.examples.streaming.myclassname --master yarn-cluster --num-executors 2 --driver-memory 1g --executor-memory 1g --executor-cores 1  /home/hadoop/test.jar  

i have installed spark on emr.

emr details master instance group - 1   running master  m1.medium    1  core instance group - 2 running core    m1.medium 

i getting below info , never ends.

15/06/14 11:33:23 info yarn.client: requesting new application cluster 2 nodemanagers 15/06/14 11:33:23 info yarn.client: verifying our application has not requested more maximum memory capability of cluster (2048 mb per container) 15/06/14 11:33:23 info yarn.client: allocate container, 1408 mb memory including 384 mb overhead 15/06/14 11:33:23 info yarn.client: setting container launch context our 15/06/14 11:33:23 info yarn.client: preparing resources our container 15/06/14 11:33:24 info yarn.client: uploading resource file:/home/hadoop/.versions/spark-1.3.1.e/lib/spark-assembly-1.3.1-hadoop2.4.0.jar -> hdfs://172.31.13.68:9000/user/hadoop/.sparkstaging/application_1434263747091_0023/spark-assembly-1.3.1-hadoop2.4.0.jar 15/06/14 11:33:29 info yarn.client: uploading resource file:/home/hadoop/test.jar -> hdfs://172.31.13.68:9000/user/hadoop/.sparkstaging/application_1434263747091_0023/test.jar 15/06/14 11:33:31 info yarn.client: setting launch environment our container 15/06/14 11:33:31 info spark.securitymanager: changing view acls to: hadoop 15/06/14 11:33:31 info spark.securitymanager: changing modify acls to: hadoop 15/06/14 11:33:31 info spark.securitymanager: securitymanager: authentication disabled; ui acls disabled; users view permissions: set(hadoop); users modify permissions: set(hadoop) 15/06/14 11:33:31 info yarn.client: submitting application 23 resourcemanager 15/06/14 11:33:31 info impl.yarnclientimpl: submitted application application_1434263747091_0023 15/06/14 11:33:32 info yarn.client: application report application_1434263747091_0023 (state: accepted) 15/06/14 11:33:32 info yarn.client:          client token: n/a          diagnostics: n/a          applicationmaster host: n/a          applicationmaster rpc port: -1          queue: default          start time: 1434281611893          final status: undefined          tracking url: http://172.31.13.68:9046/proxy/application_1434263747091_0023/          user: hadoop 15/06/14 11:33:33 info yarn.client: application report application_1434263747091_0023 (state: accepted) 15/06/14 11:33:34 info yarn.client: application report application_1434263747091_0023 (state: accepted) 15/06/14 11:33:35 info yarn.client: application report application_1434263747091_0023 (state: accepted) 15/06/14 11:33:36 info yarn.client: application report application_1434263747091_0023 (state: accepted) 15/06/14 11:33:37 info yarn.client: application report application_1434263747091_0023 (state: accepted) 15/06/14 11:33:38 info yarn.client: application report application_1434263747091_0023 (state: accepted) 15/06/14 11:33:39 info yarn.client: application report application_1434263747091_0023 (state: accepted) 15/06/14 11:33:40 info yarn.client: application report application_1434263747091_0023 (state: accepted) 15/06/14 11:33:41 info yarn.client: application report application_1434263747091_0023 (state: accepted) 

could please let me know why it's not working ?

i had exact problem when multiple users trying run on our cluster @ once. fix change setting of scheduler.

in file /etc/hadoop/conf/capacity-scheduler.xml changed property yarn.scheduler.capacity.maximum-am-resource-percent 0.1 0.5.

changing setting increases fraction of resources made available allocated application masters, increasing number of masters possible run @ once , hence increasing number of possible concurrent applications.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -