使用hive的orcfiledump命令查看orc文件

解析 orc 格式 为 json 格式:

./hive --orcfiledump -d  hdfs的orc文件路径

把解析的 json 写入 到文件

./hive --orcfiledump -d  hdfs的orc文件路径 > myfile.txt

样例:

hive --orcfiledump /apps/hive/warehouse/adx.db/log_adx_click/year=2019/month=11/week=45/day=20191112/part-r-00000-00cae694-8d88-4f5f-9287-8b11162fec2e.snappy.orc

  

原文地址:https://www.cnblogs.com/hyh123/p/14040657.html