Skip to content

Instantly share code, notes, and snippets.

View shardulm94's full-sized avatar

Shardul Mahadik shardulm94

View GitHub Profile
@shardulm94
shardulm94 / Creator.java
Last active February 16, 2022 12:48
ORC Sample file creator
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector;
import org.apache.hadoop.hive.ql.exec.vector.LongColumnVector;
import org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch;
import org.apache.orc.CompressionKind;
import org.apache.orc.OrcFile;
import org.apache.orc.TypeDescription;