密钥未加载:Key<Frame> 在 H2O API 调用中通过 ParseSetup 发布源帧时

Key not loaded: Key<Frame> while POSTing source frame through ParseSetup in H2O API call

我的代码:

curl -X POST http://localhost:54321/3/ParseSetup --data 'source_frames=["/root/documents/my_file.csv"]'

错误:

java.lang.IllegalArgumentException: Key not loaded: Key at water.api.ParseSetupHandler.guessSetup(ParseSetupHandler.java:31)

帮助:

谁能帮忙解决这个问题?我是否缺少任何参数?

使用的 H2O 版本:h2o-3.10.0.10

我的建议是在浏览器中打开 Flow (http://localhost:54321),然后启动 Firebug(或您选择的浏览器中的等效项),然后打开网络选项卡。然后从 Flow 导入文件,然后解析,并记下它发送的确切内容。

(或者使用数据包嗅探器从 R 或 Python 导入,但这听起来更难。)

您是否先进行了 /3/ImportFiles 调用? (我实际上看到了三个调用:ImportFiles、ParseSetup、Parse。)

在我的快速测试中,我在所有路径上都看到了 "nfs://" 前缀。不知道这是否重要。

但是,我的第一个猜测是您应该使用 --data-urlencode 而不是 --data。或者手动 URL 对您的数据进行编码。