title: What is a fast way to generate parquet data files with Spark for testing Hive/Presto/Drill/etc?
body: <p>I frequently find myself needing to generate parquet files for testing infrastructure components like Hive, Presto, Drill, etc.</p>
  
  <p>There are surprisingly few sample parquet data sets online, and one of the only ones I come across here <a href="https://github.com/Teradata/kylo/tree/master/samples/sample-data/parquet" rel="nofollow noreferrer">https://github.com/Teradata/kylo/tree/master/samples/sample-data/parquet</a> is mock data for credit card numbers, incomes, etc.  I don't like having that in my data lakes in case someone thinks its real.</p>
  
  <p>What is the best way to generate parquet data files when you need to test?  I usually have spark around and end up using that; and I'll post my solution as an answer since one doesn't seem to exist here.  But I'm curious what better solutions people have using spark or other technologies.</p>