title: ClassNotFoundException for AvroSchema while saving to hdfs
body: <p>I am trying to get data from hive, and saving it to hdfs,
  I am getting classnotfound exception for avro schema while saving to hdfs using 
  <code>saveAsNewAPIHadoopDataset</code>, I am executing using spark-submit
  Please have a look at the code,</p>
  
  <pre><code>withValues.saveAsNewAPIHadoopFile(
      outputPath,
      classOf[IdentifiersData],
      classOf[org.apache.hadoop.io.NullWritable],
      classOf[AvroKeyOutputFormat[IdentifiersData]],
      conf.getConfiguration)
  </code></pre>
  
  <p>Any help??
  Thanks in advance </p>