How to split HDFS file into multiple directories using some key on the data
<p>I have a HDFS file with following sample data</p>

<blockquote>
  <p>id name timestamp <br> 1 Lorem 2013-01-01 <br> 2 Ipsum 2013-02-01 <br>
  3 Ipsum 2013-03-01 <br></p>
</blockquote>

<p>Now I want to split the data in multiple directory in format <code>/data/YYYY/MM/DD</code> such as record 1 goes to directory <code>/data/2016/01/01</code>.</p>

<p>There is MultiStorage UDF in pig which can be used split into single directory either by year or month or date. Is there any way by which I can split into multiple directory?  </p>