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

我的梦境 提交于 2021-01-27 19:05:22

问题


My code:

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

Error:

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

Help:

Could anyone help to resolve this? Am I missing any parameter?

Used H2O version: h2o-3.10.0.10


回答1:


My suggestion is to open Flow (http://localhost:54321) in a browser, then start Firebug (or the equivalent in your browser of choice), and the network tab. Then do a file import from Flow, then the parse, and make a note of exactly what it is sending.

(Alternatively do the import from R or Python with a packet sniffer going, but that sounds like harder work.)

Did you do the /3/ImportFiles calls first? (I actually see three calls: ImportFiles, ParseSetup, Parse.)

In my quick test I'm seeing the "nfs://" prefix on all the paths. Don't know if that is important.

But, my first guess would be that you should be using --data-urlencode instead of --data. Or manually URL-encode your data.



来源:https://stackoverflow.com/questions/40543314/key-not-loaded-keyframe-while-posting-source-frame-through-parsesetup-in-h2o

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!