apache spark - How to set up dynamic allocation on Cloudera 5 in YARN? -
i'm trying run spark dynamic resource allocation on cloudera 5 using yarn.
in spark documentation properties required set on yarn-site.xml
missing cloudera configuration interface. though set manually properties in yarn-site.xml
, add yarn-shuffle.jar
classpath, shuffling service not working.
i got following exception
org.apache.hadoop.yarn.exceptions.invalidauxserviceexception: auxservice:spark_shuffle not exist
this worked me:
if have cloudera deployed, go cloudera manager (port 7180) have cdh 5.6.0
go yarn (mr2 included) -> configuration -> nodemanager default group -> advanced
in textbox associated "nodemanager advanced configuration snippet (safety valve) yarn-site.xml" paste following:
<property> <name>yarn.nodemanager.aux-services</name> <value>spark_shuffle,mapreduce_shuffle</value> </property> <property> <name>yarn.nodemanager.aux-services.spark_shuffle.class</name> <value>org.apache.spark.network.yarn.yarnshuffleservice</value> </property>
click on save changes. actions -> deploy client configuration actions -> restart
Comments
Post a Comment