simply write the data into hdfs, the hive jobs will do the rest.