Generate Parquet Files for S3 Integration Using Java and Maven
Overview
Use the following Java code to generate a Parquet file containing events for use with the Amazon S3 integration with Split.
Prerequisites
The following environments:
- Maven
- Java 10.0.1
Generate your event file
- 
Unzip the attached folder. 
- 
Open the PraquetDemo.javafile. This file contains two event records similar to the one below.Make sure to set the correct event data: Event e1 = Event.builder()
 .environmentId("029bd160-7e36-11e8-9a1c-0acd31e5aef0")
 .trafficTypeId("e6910420-5c85-11e9-bbc9-12a5cc2af8fe")
 .eventTypeId("s3-integration")
 .key("key1")
 .timestamp(System.currentTimeMillis())
 .withProperty("foo", "bar")
 .build();
- 
From the command line, cdto the folder and typemvn install.
The resulted parquet file is generated under ./demo.parquet.gz.