title: Generate metadata for parquet files
body: <p>I have a hive table that is built on top of a load of external parquet files.  Parquet files should be generated by the spark job, but due to setting metadata flag to false they were not generated. I'm wondering if it is possible to restore it in some painless way. The structure of files is like follows:</p>
  
  <pre><code>/apps/hive/warehouse/test_db.db/test_table/_SUCCESS
  /apps/hive/warehouse/test_db.db/test_table/_common_metadata
  /apps/hive/warehouse/test_db.db/test_table/_metadata
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-20
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-21
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-22
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-23
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-24
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-25
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-26
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-27
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-28
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-29
  /apps/hive/warehouse/test_db.db/test_table/end_date=2016-04-30
  </code></pre>
  
  <p>Let's assume that the file <code>_metadata</code> is non-existing or outdated. Is there a way to recreate it via hive command/generate it without having to start the whole spark job?</p>