Export log data to hdfs

I am able to import data from ES to HDFS properly. But the issue is there is no schema associated with the data.How do I import the schema from ES?

Thanks

First, I have to understand how are you importing data from ES to HDFS? Did you follow a doc?
please provide the link if so.