title: spark action throwing 'Classpath contains multiple SLF4J bindings' error from oozie
body: <p>I have a scala jar file which reads data from hive views and creates a csv file in hdfs , this jar is running fine in spark cluster mode when invoked from CLI , but when triggered from Oozie workflow it throws below error</p>
  
  <pre><code> SLF4J : Classpath contains multiple SLF4J bindings.
   SLF4J : Found binding in [jar:file:/data/hadoop-data/9/yarn/nm/filecache/7505/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J : Found binding in [jar:file:/data/hadoop-data/1/yarn/nm/usercache/cntr/filecache/216569/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J : Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.8.3-1.cdh5.8.3.p2256.2455/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  
   SLF4J : Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
  </code></pre>
  
  <p>I have done some search and found out that adding exclusions in dependencies of pom.xml will do trick , so I have added below to my exclusions in pom.xml</p>
  
  <pre><code> &lt;exclusions&gt;
      &lt;exclusion&gt;
         &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
         &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
      &lt;/exclusion&gt;
      &lt;exclusion&gt;
         &lt;groupId&gt;log4j&lt;/groupId&gt;
         &lt;artifactId&gt;log4j&lt;/artifactId&gt;
      &lt;/exclusion&gt;
      &lt;exclusion&gt;
         &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
         &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
      &lt;/exclusion&gt;
   &lt;/exclusions&gt;
  </code></pre>
  
  <p>but still I'm getting the same error when triggering the spark jar from oozie workflow</p>
  
  <p>Any suggestions are welcome</p>