是否可以从命令行读取 orcserde hadoop 文件?

is it possible to read a orcserde hadoop file from command line?

我正在尝试从命令行读取 hadoop 文件系统中的 ORC 文件,但以下命令不起作用。

hadoop fs -text 不工作

什么是等效命令?

看来您必须从 Hive 中转储它。这似乎是这个问题的重复 - How to see contents of Hive orc files in linux

hive --orcfiledump <location-of-orc-file> 或类似的东西,具体取决于您的 Hive 版本应该可以。 https://cwiki.apache.org/confluence/display/Hive/LanguageManual+ORC