Using parquet-mr in Scala without Spark

爱⌒轻易说出口 提交于 2019-12-11 05:35:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!