如何在独立的Java代码中读取镶木地板文件? [英] how to read a parquet file, in a standalone java code?
本文介绍了如何在独立的Java代码中读取镶木地板文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
来自cloudera的实木复合地板文档显示了与猪/蜂巢/黑斑羚整合的例子。但在许多情况下,我想阅读镶木地板文件本身以进行调试。
the parquet docs from cloudera shows examples of integration with pig/hive/impala. but in many cases I want to read the parquet file itself for debugging purposes.
是否有一个简单的java阅读器api来读取镶木地板文件?
is there a straightforward java reader api to read a parquet file ?
谢谢
Yang
Thanks Yang
推荐答案
您可以从parquet-avro库中使用 AvroParquetReader
来阅读实木复合地板文件作为一组AVRO GenericRecord
对象。
You can use AvroParquetReader
from parquet-avro library to read a parquet file as a set of AVRO GenericRecord
objects.
这篇关于如何在独立的Java代码中读取镶木地板文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文