I am running kinesis plus spark application https://spark.apache.org/docs/1.2.0/streaming-kinesis-integration.html
I am running as below
command on ec2 inst
I had this exact problem when multiple users were trying to run on our cluster at once. The fix was to change setting of the scheduler.
In the file /etc/hadoop/conf/capacity-scheduler.xml
we changed the property yarn.scheduler.capacity.maximum-am-resource-percent
from 0.1
to 0.5
.
Changing this setting increases the fraction of the resources that is made available to be allocated to application masters, increasing the number of masters possible to run at once and hence increasing the number of possible concurrent applications.