java jar 无效,java – 运行parquet-tools jar的无效参数

java -jar parquet-tools-1.6.1-SNAPSHOT.jar dump -c COLUMNNAME someParquet.parquet

但我得到:

Invalid arguments: missing required arguments

usage: parquet-dump [option...]

where option is one of:

-c,--column 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 is the parquet file to print to stdout

不确定我的语法错误.

解决方法:

选项-c, – column认为你已经指定了多个列作为“dump”commnad的参数,并最终吃掉所有参数.因此,您将看到缺少的需求参数异常.

一种解决方法,我可以建议你需要在-c选项之后添加一个额外的选项.这将使CLI解析器停止为-c选项吃掉意外的参数.

使用Below命令(添加了–debug选项),您应该能够执行该程序:

java -jar parquet-tools-1.6.1-SNAPSHOT.jar dump -c COLUMNNAME --debug someParquet.parquet

您也可以尝试使用–no-color而不是–debug.

希望这可以帮助.

标签:java,jar,parquet

来源: https://codeday.me/bug/20190627/1309219.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值