Map input data files, reduce to a given format and export to elasticsearch.