title: How to write avro to multiple output directory using spark
body: <p>Hi，There is a topic about writing text data into multiple output directories in one spark job using MultipleTextOutputFormat</p>
  
  <p><a href="https://stackoverflow.com/questions/23995040/write-to-multiple-outputs-by-key-spark-one-spark-job">Write to multiple outputs by key Spark - one Spark job</a></p>
  
  <p>I would ask if there is some similar way to write avro data to multiple directories</p>
  
  <p>What I want is to write the data in avro file to different directory(based on the timestamp field, same day in the timestamp goes to the same directory)</p>