问题
I'm trying to read a .parquet file in Scala without using Spark.
I found this SO post, but so far have been unable to find how to use the parquet-mr library to actually read from a file (including getting the schema). There are things like RecordReader.java and RecordReaderImplementation.java (which extends RecordReader), but I'm struggling to understand how to use these in my Scala code. I'm very new to Scala and the Parquet format, but would like to accomplish this without using Spark.
What am I missing here?
回答1:
After not finding anything else, I ended up building something myself. In case anyone else struggles with this in the future: https://github.com/jmd1011/parquet-readers
来源:https://stackoverflow.com/questions/37754062/using-parquet-mr-in-scala-without-spark