title: Spark-submit cluster mode - NoClassDefFoundError
body: <p>i am getting below error while submitting spark job in cluster mode.
  –deploy-mode client model is working fine</p>
  
  <pre><code>/usr/spark2.0.2/bin/    spark-submit --name hello --master yarn --deploy-mode client --executor-memory 1g --executor-cores 1 --num-executors 1 --class com.first.load.Hello /home/udaychitukula6587/first.load/target/scala-2.10/helloworld_2.10-1.0.jar
  </code></pre>
  
  <p><strong>Below one throwing error:</strong></p>
  
  <pre><code>/usr/spark2.0.2/bin/    spark-submit --name hello --master yarn --deploy-mode cluster --executor-memory 1g --executor-cores 1 --num-executors 1 --class com.first.load.Hello /home/udaychitukula6587/first.load/target/scala-2.10/helloworld_2.10-1.0.jar*
  </code></pre>
  
  <p><strong>ERROR:</strong></p>
  
  <pre><code>*:: problems summary ::
  :::: ERRORS
  _ unknown resolver null_
  :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
  :: retrieving :: org.apache.spark#spark-submit-parent
  _ confs: [default]_
  _ 0 artifacts copied, 17 already retrieved (0kB/19ms)_
  
      Exception in thread “main” java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig
      _ at org.apache.hadoop.yarn.client.api.TimelineClient.createTimelineClient(TimelineClient.java:55)_
      _ at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.createTimelineClient(YarnClientImpl.java:181)_
      _ at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.serviceInit(YarnClientImpl.java:168)_*
  </code></pre>
  
  <p>this program is to print welcome message</p>
  
  <p>please help me in resolving this</p>