Exception in thread "main" java.lang.Error: premature EOF

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, shell

Research direction

The report names run_example.sh, pipeline.mojo, mojo2-runtime.jar, and example.csv; start by reproducing the failure with the included script and commands. Done means identifying the cause of the premature EOF when loading the downloaded MOJO pipeline and documenting a verified resolution.

Written by the indexing model from the issue text.

Description

I completed an 'Experiment' run on DriverlessAI, and downloaded mozo.zip from 'Download MOJO scoring pipeline' button.

I unzipped it, and tried to run run_example.sh included in it, but it produces the following error. It doesn't matter what method I use to run run_example.sh, but all ends up with the same error.

Can you pls help ?


[bsyu@p57a22 mojo-pipeline]$ export DRIVERLESS_AI_LICENSE_FILE=/opt/h2oai/dai/home/.driverlessai/license.sig

[bsyu@p57a22 mojo-pipeline]$ ./run_example.sh pipeline.mojo /home/bsyu/files/DJI_Sep17_Sep18.csv

======================
Running MOJO2 example

MOJO file : pipeline.mojo
Input file : /home/bsyu/files/DJI_Sep17_Sep18.csv

Command line : java -Xmx5g -Dai.h2o.mojos.runtime.license.file= -cp mojo2-runtime.jar ai.h2o.mojos.ExecuteMojo pipeline.mojo /home/bsyu/files/DJI_Sep17_Sep18.csv

Exception in thread "main" java.lang.Error: premature EOF
at org.capnproto.BufferedInputStreamWrapper.readAtLeast(SourceFile:103)
at org.capnproto.BufferedInputStreamWrapper.getReadBuffer(SourceFile:83)
at org.capnproto.PackedInputStream.read(SourceFile:47)
at org.capnproto.Serialize.fillBuffer(SourceFile:42)
at org.capnproto.Serialize.read(SourceFile:56)
at org.capnproto.SerializePacked.readFromUnbuffered(SourceFile:42)
at org.capnproto.SerializePacked.readFromUnbuffered(SourceFile:36)
at ai.h2o.mojos.runtime.d.b.a(SourceFile:17)
at ai.h2o.mojos.runtime.d.h.a(SourceFile:91)
at ai.h2o.mojos.runtime.b.D.b(SourceFile:60)
at ai.h2o.mojos.runtime.b.a.a(SourceFile:29)
at ai.h2o.mojos.runtime.MojoPipeline.read_pipeline(SourceFile:229)
at ai.h2o.mojos.runtime.MojoPipeline.(SourceFile:182)
at ai.h2o.mojos.runtime.MojoModelFactory.loadFrom(SourceFile:81)
at ai.h2o.mojos.runtime.MojoPipeline.loadFrom(SourceFile:67)
at ai.h2o.mojos.runtime.b.i.b(SourceFile:51)
at ai.h2o.mojos.runtime.b.a.a(SourceFile:32)
at ai.h2o.mojos.runtime.MojoPipeline.read_pipeline(SourceFile:229)
at ai.h2o.mojos.runtime.MojoPipeline.(SourceFile:182)
at ai.h2o.mojos.runtime.MojoModelFactory.loadFrom(SourceFile:81)
at ai.h2o.mojos.runtime.MojoModelFactory.loadFrom(SourceFile:48)
at ai.h2o.mojos.runtime.MojoPipeline.loadFrom(SourceFile:50)
at ai.h2o.mojos.ExecuteMojo.main(SourceFile:49)

[bsyu@p57a22 mojo-pipeline]$ bash ./run_example.sh

Running MOJO2 example

MOJO file : pipeline.mojo
Input file : example.csv

Command line : java -Xmx5g -Dai.h2o.mojos.runtime.license.file= -cp mojo2-runtime.jar ai.h2o.mojos.ExecuteMojo pipeline.mojo example.csv

Exception in thread "main" java.lang.Error: premature EOF
at org.capnproto.BufferedInputStreamWrapper.readAtLeast(SourceFile:103)
at org.capnproto.BufferedInputStreamWrapper.getReadBuffer(SourceFile:83)
at org.capnproto.PackedInputStream.read(SourceFile:47)
at org.capnproto.Serialize.fillBuffer(SourceFile:42)
at org.capnproto.Serialize.read(SourceFile:56)
at org.capnproto.SerializePacked.readFromUnbuffered(SourceFile:42)
at org.capnproto.SerializePacked.readFromUnbuffered(SourceFile:36)
at ai.h2o.mojos.runtime.d.b.a(SourceFile:17)
at ai.h2o.mojos.runtime.d.h.a(SourceFile:91)
at ai.h2o.mojos.runtime.b.D.b(SourceFile:60)
at ai.h2o.mojos.runtime.b.a.a(SourceFile:29)
at ai.h2o.mojos.runtime.MojoPipeline.read_pipeline(SourceFile:229)
at ai.h2o.mojos.runtime.MojoPipeline.(SourceFile:182)
at ai.h2o.mojos.runtime.MojoModelFactory.loadFrom(SourceFile:81)
at ai.h2o.mojos.runtime.MojoPipeline.loadFrom(SourceFile:67)
at ai.h2o.mojos.runtime.b.i.b(SourceFile:51)
at ai.h2o.mojos.runtime.b.a.a(SourceFile:32)
at ai.h2o.mojos.runtime.MojoPipeline.read_pipeline(SourceFile:229)
at ai.h2o.mojos.runtime.MojoPipeline.(SourceFile:182)
at ai.h2o.mojos.runtime.MojoModelFactory.loadFrom(SourceFile:81)
at ai.h2o.mojos.runtime.MojoModelFactory.loadFrom(SourceFile:48)
at ai.h2o.mojos.runtime.MojoPipeline.loadFrom(SourceFile:50)
at ai.h2o.mojos.ExecuteMojo.main(SourceFile:49)

[bsyu@p57a22 mojo-pipeline]$ java -cp license.sig:mojo2-runtime.jar ai.h2o.mojos.ExecuteMojo pipeline.mojo example.csv
Exception in thread "main" java.lang.Error: premature EOF
at org.capnproto.BufferedInputStreamWrapper.readAtLeast(SourceFile:103)
at org.capnproto.BufferedInputStreamWrapper.getReadBuffer(SourceFile:83)
at org.capnproto.PackedInputStream.read(SourceFile:47)
at org.capnproto.Serialize.fillBuffer(SourceFile:42)
at org.capnproto.Serialize.read(SourceFile:56)
at org.capnproto.SerializePacked.readFromUnbuffered(SourceFile:42)
at org.capnproto.SerializePacked.readFromUnbuffered(SourceFile:36)
at ai.h2o.mojos.runtime.d.b.a(SourceFile:17)
at ai.h2o.mojos.runtime.d.h.a(SourceFile:91)
at ai.h2o.mojos.runtime.b.D.b(SourceFile:60)
at ai.h2o.mojos.runtime.b.a.a(SourceFile:29)
at ai.h2o.mojos.runtime.MojoPipeline.read_pipeline(SourceFile:229)
at ai.h2o.mojos.runtime.MojoPipeline.(SourceFile:182)
at ai.h2o.mojos.runtime.MojoModelFactory.loadFrom(SourceFile:81)
at ai.h2o.mojos.runtime.MojoPipeline.loadFrom(SourceFile:67)
at ai.h2o.mojos.runtime.b.i.b(SourceFile:51)
at ai.h2o.mojos.runtime.b.a.a(SourceFile:32)
at ai.h2o.mojos.runtime.MojoPipeline.read_pipeline(SourceFile:229)
at ai.h2o.mojos.runtime.MojoPipeline.(SourceFile:182)
at ai.h2o.mojos.runtime.MojoModelFactory.loadFrom(SourceFile:81)
at ai.h2o.mojos.runtime.MojoModelFactory.loadFrom(SourceFile:48)
at ai.h2o.mojos.runtime.MojoPipeline.loadFrom(SourceFile:50)
at ai.h2o.mojos.ExecuteMojo.main(SourceFile:49)

Dominant language
Jupyter Notebook
Stars
38
Forks
22
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from h2oai/driverlessai-tutorials

All issues in h2oai/driverlessai-tutorials

Similar issues

More Machine Learning issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.