【发布时间】:2016-11-18 18:47:04
【问题描述】:
我正在尝试使用 parquet-tools.jar (https://github.com/Parquet/parquet-mr/tree/master/parquet-tools) 从 parquet 文件中打印一列。 我正在使用这个命令:
java -jar parquet-tools-1.6.1-SNAPSHOT.jar dump -c COLUMNNAME someParquet.parquet
但我明白了:
Invalid arguments: missing required arguments
usage: parquet-dump [option...] <input>
where option is one of:
-c,--column <arg> Dump only the given column, can be specified more than
once
-d,--disable-data Do not dump column data
--debug Enable debug output
-h,--help Show this help string
-m,--disable-meta Do not dump row group and page metadata
--no-color Disable color output even if supported
where <input> is the parquet file to print to stdout
不知道我在哪里弄错了语法。
【问题讨论】:
-
也许你想使用这些脚本github.com/wesleypeck/parquet-tools/tree/master/src/main/… - 这应该会给你帮助页面建议的语法
-
我认为你的语法是正确的。这似乎是 Apache CLI 库或 parquet-tools 使用它的方式中的一个错误。
-
我同意,这似乎是 apache cli 使用的问题。尝试使用
--column NAME、--column=NAME等。