<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Oozie Spark Integration giving FAILED for SLA error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151380#M113859</link>
    <description>&lt;P&gt;@Timithy I haven't tried Nifi. Please find the below details.&lt;/P&gt;&lt;P&gt;yarn.nodemanager.resource.memory-mb=200GB&lt;/P&gt;&lt;P&gt;yarn.scheduler.minimum-allocation-mb=2GB&lt;/P&gt;&lt;P&gt;yarn.scheduler.maximum-allocation-mb=6GB&lt;/P&gt;&lt;P&gt;yarn.scheduler.maximum-allocation-vcores=8&lt;/P&gt;&lt;P&gt;yarn.scheduler.minumum-allocation-vcores=1&lt;/P&gt;&lt;P&gt;yarn.nodemanager.resource.cpu-vcores=16&lt;/P&gt;&lt;P&gt;yarn.nodemanager.resource.percentage-physical-cpu-limit=80%&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2016 10:30:42 GMT</pubDate>
    <dc:creator>vijaykumar243</dc:creator>
    <dc:date>2016-06-24T10:30:42Z</dc:date>
    <item>
      <title>Oozie Spark Integration giving FAILED for SLA error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151376#M113855</link>
      <description>&lt;PRE&gt;&amp;lt;a href="/storage/attachments/5152-img-22062016-154852.png"&amp;gt;img-22062016-154852.png&amp;lt;/a&amp;gt;Hi Team,
&lt;/PRE&gt;&lt;P&gt;We are using HDP 2.4.0.0-169 which is installed on Ubuntu 14.04.&lt;/P&gt;&lt;P&gt;There is a spark- mongo application which extracts the data from mongodb into HDFS. This application ins executed by using 3 spark modes which are local[*] , yarn-client and yarn-cluster. All these 3 spark-submit commands works from the command prompt.&lt;/P&gt;&lt;P&gt;We have written an oozie workflow to execute the job on hourly basis. While executing the oozie job, job is in RUNNING state but failed due to SLA  error.&lt;/P&gt;&lt;P&gt;I have followed steps as mentioned below.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have changed the propeties for YARN in ambari&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;yarn.nodemanager.resource.memory-mb = 67436288 and increased upto 200999168
yarn.scheduler.minimum-allocation-mb = 1024 and increased to 2048
yarn.scheduler.maximum-allocation-mb = 8192 and decreased to 6144&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;2.I have also added below changes in custom spark-defaults :&lt;/P&gt;&lt;PRE&gt;spark.authenticate = false spark.driver.extraLibraryPath = /usr/hdp/2.4.0.0-169/hadoop/lib/native spark.dynamicAllocation.executorIdleTimeout = 60 spark.dynamicAllocation.schedulerBacklogTimeout = 1 spark.executor.extraLibraryPath = /usr/hdp/2.4.0.0-169/hadoop/lib/native spark.serializer = org.apache.spark.serializer.KryoSerializer spark.yarn.am.extraLibraryPath = /usr/hdp/2.4.0.0-169/hadoop/lib/native spark.yarn.config.gatewayPath = /usr/hdp spark.yarn.config.replacementPath = {{HADOOP_COMMON_HOME}}/../../.. spark.yarn.jar = local:/usr/hdp/2.4.0.0-169/spark/lib/spark-assembly-1.6.0.2.4.0.0-169-hadoop2.7.1.2.4.0.0-169.jar&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;3. Added below property in advanced hadoop-env:&lt;/P&gt;&lt;PRE&gt;export SPARK_HOME=/usr/hdp/2.4.0.0-169/spark&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;4.I have added spark jars in the oozie lib folder with required permissions. Tried 777 and 755 permissions for all jars. But no luck:&lt;/P&gt;&lt;PRE&gt;spark-assembly-1.6.0.2.4.0.0-169-hadoop2.7.1.2.4.0.0-169.jar
spark-1.6.0.2.4.0.0-169-hadoop2.7.1.2.4.0.0-169-yarn-shuffle.jar&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;5.Also added the above mentioned jars and below mentioned jars in oozie share folder with required permission but no luck&lt;/P&gt;&lt;PRE&gt;/user/oozie/share/lib/lib_20160420150601/oozie&lt;/PRE&gt;&lt;P&gt;Code is defined as follows:&lt;/P&gt;&lt;P&gt;workflow.xml:&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;workflow-app name="sparkmongo" xmlns="uri:oozie:workflow:0.5"&amp;gt;
    &amp;lt;start to="spark-mongo-ETL"/&amp;gt;
    &amp;lt;action name="spark-mongo-ETL"&amp;gt;
        &amp;lt;spark xmlns="uri:oozie:spark-action:0.1"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
             &amp;lt;master&amp;gt;${master}&amp;lt;/master&amp;gt;
	    &amp;lt;mode&amp;gt;client&amp;lt;/mode&amp;gt;
            &amp;lt;name&amp;gt;SparkMongoLoading&amp;lt;/name&amp;gt;
            &amp;lt;class&amp;gt;com.snapfish.spark.etl.MongoETL&amp;lt;/class&amp;gt;
            &amp;lt;jar&amp;gt;/user/hadoop/Sparkmongo/lib/original-etl-0.0.1-SNAPSHOT.jar&amp;lt;/jar&amp;gt;
            &amp;lt;spark-opts&amp;gt; spark.driver.extraClassPath=hdfs://namenode1:8020/user/oozie/share/lib/lib_20150711021244/spark/* spark.yarn.historyServer.address=http://yarnNM:19888/ spark.eventLog.dir=hdfs://namenode1:8020/spark-history spark.eventLog.enabled=true &amp;lt;/spark-opts&amp;gt;
			&amp;lt;arg&amp;gt;orders&amp;lt;/arg&amp;gt;
        &amp;lt;/spark&amp;gt;
        &amp;lt;ok to="End"/&amp;gt;
        &amp;lt;error to="killAction"/&amp;gt;
    &amp;lt;/action&amp;gt;
        &amp;lt;kill name="killAction"&amp;gt;
        &amp;lt;message&amp;gt;Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
    &amp;lt;/kill&amp;gt;
    &amp;lt;end name="End"/&amp;gt;
&amp;lt;/workflow-app&amp;gt;

&lt;/PRE&gt;&lt;PRE&gt;Tried removing below property. but no luck

spark.driver.extraClassPath=hdfs://namenode1:8020/user/oozie/share/lib/lib_20150711021244/spark/* spark.yarn.historyServer.address=http://yarnNM:19888/ spark.eventLog.dir=hdfs://namenode1:8020/spark-history spark.eventLog.enabled=true
&lt;/PRE&gt;&lt;P&gt;Jars in lib folder :&lt;/P&gt;&lt;PRE&gt;mongo-hadoop-spark-1.5.2.jar
mongo-java-driver-3.2.2.jar
mongodb-driver-3.2.2.jar
original-etl-0.0.1-SNAPSHOT.jar
spark-1.6.0.2.4.0.0-169-yarn-shuffle.jar
spark-assembly-1.6.0.2.4.0.0-169-hadoop2.7.1.2.4.0.0-169.jar
spark-core_2.10-1.6.0.jar
spark-mongodb_2.10-0.11.2.jar
&lt;/PRE&gt;&lt;PRE&gt;Tried removing all jars except below two jars but no luck:

original-etl-0.0.1-SNAPSHOT.jar
spark-assembly-1.6.0.2.4.0.0-169-hadoop2.7.1.2.4.0.0-169.jar
&lt;/PRE&gt;&lt;P&gt;job.properties :&lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://namenode1:8020
jobTracker=yarnNM:8050
master=yarn-client
queueName=default
oozie.use.system.libpath=true
oozie.libpath=/user/oozie/share/lib/
user.name=hadoop
mapreduce.job.username=yarn
oozie.wf.application.path=${nameNode}/user/hadoop/Sparkmongo/
&lt;/PRE&gt;&lt;P&gt;Also changed the below properties but no luck:&lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://namenode1:8020
jobTracker=yarnNM:8050
master=yarn-client
queueName=default
oozie.use.system.libpath=true
user.name=hadoop
oozie.wf.application.path=${nameNode}/user/hadoop/Sparkmongo/&lt;/PRE&gt;&lt;PRE&gt;nameNode=hdfs://namenode1:8020
jobTracker=yarnNM:8050
master=yarn-client
queueName=default
oozie.use.system.libpath=true
oozie.libpath=/user/oozie/share/lib/
user.name=hadoop
oozie.wf.application.path=${nameNode}/user/hadoop/Sparkmongo/&lt;/PRE&gt;&lt;P&gt;After trying all the combinations i am facing some issue which is attached.&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/5140-capture1.jpg"&gt;capture1.jpg&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/5151-capture2.jpg"&gt;capture2.jpg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:46:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151376#M113855</guid>
      <dc:creator>vijaykumar243</dc:creator>
      <dc:date>2016-06-22T16:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark Integration giving FAILED for SLA error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151377#M113856</link>
      <description>&lt;P&gt;Also note that there is no Security implemented on the cluster&lt;/P&gt;&lt;P&gt;Please help me.. Thanks in Advance!!!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:48:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151377#M113856</guid>
      <dc:creator>vijaykumar243</dc:creator>
      <dc:date>2016-06-22T16:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark Integration giving FAILED for SLA error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151378#M113857</link>
      <description>&lt;P&gt;Please help me.. Thanks in Advance!!!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:48:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151378#M113857</guid>
      <dc:creator>vijaykumar243</dc:creator>
      <dc:date>2016-06-22T16:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark Integration giving FAILED for SLA error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151379#M113858</link>
      <description>&lt;P&gt;Think yarn is low on memory it needs extra data overhead for 3 spark jobs&lt;/P&gt;&lt;P&gt;Have you tried nifi&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 00:59:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151379#M113858</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-06-24T00:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark Integration giving FAILED for SLA error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151380#M113859</link>
      <description>&lt;P&gt;@Timithy I haven't tried Nifi. Please find the below details.&lt;/P&gt;&lt;P&gt;yarn.nodemanager.resource.memory-mb=200GB&lt;/P&gt;&lt;P&gt;yarn.scheduler.minimum-allocation-mb=2GB&lt;/P&gt;&lt;P&gt;yarn.scheduler.maximum-allocation-mb=6GB&lt;/P&gt;&lt;P&gt;yarn.scheduler.maximum-allocation-vcores=8&lt;/P&gt;&lt;P&gt;yarn.scheduler.minumum-allocation-vcores=1&lt;/P&gt;&lt;P&gt;yarn.nodemanager.resource.cpu-vcores=16&lt;/P&gt;&lt;P&gt;yarn.nodemanager.resource.percentage-physical-cpu-limit=80%&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 10:30:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151380#M113859</guid>
      <dc:creator>vijaykumar243</dc:creator>
      <dc:date>2016-06-24T10:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark Integration giving FAILED for SLA error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151381#M113860</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11346/vijaykumar243.html" nodeid="11346"&gt;@Vijay Kumar J&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Before copying the spark assembly jar into share lib have you cleared other contents of the sharelib? If not, can you backup the current sharelib and then do following-&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Backup current sharelib - hdfs dfs -mv /user/oozie/share/lib/lib_&amp;lt;timestamp&amp;gt;/spark /user/oozie/share/lib/lib_&amp;lt;timestamp&amp;gt;/spark_old&lt;/LI&gt;&lt;LI&gt;Create spark folder - hdfs dfs -mkdir /user/oozie/share/lib/lib_&amp;lt;timestamp&amp;gt;/spark&lt;/LI&gt;&lt;LI&gt;Copy and Update all the required libraries ,files to the spark folder&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;hdfs dfs -put /hdp/2.4.0.0-169/spark/lib/spark-assembly-1.6.0.2.4.0.0-169-hadoop2.7.1.2.4.0.0-169.jar /user/oozie/share/lib/lib_&amp;lt;timestamp&amp;gt;/spark &lt;/LI&gt;&lt;LI&gt;hdfs dfs -put /hdp/2.4.0.0-169/oozie/libserver/oozie-sharelib-spark-4.2.0.2.4.0.0-169.jar /user/oozie/share/lib/lib_&amp;lt;timestamp&amp;gt;/spark&lt;/LI&gt;&lt;LI&gt;hdfs dfs -put /etc/hadoop/conf/hdfs-site.xml /user/oozie/share/lib/lib_&amp;lt;timestamp&amp;gt;/spark&lt;/LI&gt;&lt;LI&gt;hdfs dfs -put /etc/hadoop/conf/core-site.xml /user/oozie/share/lib/lib_&amp;lt;timestamp&amp;gt;/spark&lt;/LI&gt;&lt;LI&gt;hdfs dfs -put /etc/hadoop/conf/mapred-site.xml /user/oozie/share/lib/lib_&amp;lt;timestamp&amp;gt;/spark&lt;/LI&gt;&lt;LI&gt;hdfs dfs -put /etc/hadoop/conf/yarn-site.xml /user/oozie/share/lib/lib_&amp;lt;timestamp&amp;gt;/spark
oozie admin -oozie &lt;A href="http://&amp;lt;oozie_server&amp;gt;:11000/oozie" target="_blank"&gt;http://&amp;lt;oozie_server&amp;gt;:11000/oozie&lt;/A&gt; -sharelibupdate&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 24 Jun 2016 23:41:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151381#M113860</guid>
      <dc:creator>trupti</dc:creator>
      <dc:date>2016-06-24T23:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark Integration giving FAILED for SLA error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151382#M113861</link>
      <description>&lt;P&gt;Hi Trupti,&lt;/P&gt;&lt;P&gt;Sorry for delay &amp;amp; thanks for the response.&lt;/P&gt;&lt;P&gt;I have tried the above mentioned process, But still facing the same error.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 02:04:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151382#M113861</guid>
      <dc:creator>vijaykumar243</dc:creator>
      <dc:date>2016-07-06T02:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Spark Integration giving FAILED for SLA error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151383#M113862</link>
      <description>&lt;P&gt;Spark action is not supported in HDP 2.4.0 it is available in 2.4.2 so before you can investigate issue with it, consider upgrading HDP.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 18:31:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Spark-Integration-giving-FAILED-for-SLA-error/m-p/151383#M113862</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-07-08T18:31:25Z</dc:date>
    </item>
  </channel>
</rss>

