You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by Zehao Zhang <ze...@gmail.com> on 2017/01/24 21:48:07 UTC

Modifying the eventserver

Hi, I'm trying to add more http endpoints to the eventserver for my
project. After I have run the command: sbt/sbt "data/run-main
org.apache.predictionio.data.api.Run", the code successfully compiles but I
don't know how to run the newly compiled files. It looks like "pio
eventserver" is still using the old code. Can you help me with this? Thank
you.

-ZZ

Re: Modifying the eventserver

Posted by Donald Szeto <do...@apache.org>.
(Please reply only to dev@)

Could you post the full error output after you run your command please?

The make-distribution.sh will make a binary distribution, plus allowing you
to run bin/pio in your code tree directly.

On Tue, Jan 24, 2017 at 2:29 PM Zehao Zhang <ze...@gmail.com> wrote:

> Hi Donald,
> Thanks for the response. So this makes another binary distribution of
> predictionio if I'm correct. Is there an easier way to test out the code
> for debugging purposes though? I tried doing "sbt/sbt "data/run-main
> org.apache.predictionio.data.api.Run"" but that gives out a classnotfound
> error for slf4jlogger,
>
> Best,
> -ZZ
> On Tue, Jan 24, 2017 at 2:11 PM Donald Szeto <do...@apache.org> wrote:
>
> Hi,
>
> This question is more suitable for the dev list, so I am moving the thread
> there.
>
> You will need to use make-distribution.sh for the command line to take
> effect. The command line uses the assembly JAR produced by the
> make-distribution.sh script.
>
> It would be great to add some kind of support in the pio command to
> support "sbt run-main". If you are interested please give it a try and make
> a pull request.
>
> Regards,
> Donald
>
> On Tue, Jan 24, 2017 at 1:48 PM Zehao Zhang <ze...@gmail.com> wrote:
>
> Hi, I'm trying to add more http endpoints to the eventserver for my
> project. After I have run the command: sbt/sbt "data/run-main
> org.apache.predictionio.data.api.Run", the code successfully compiles but I
> don't know how to run the newly compiled files. It looks like "pio
> eventserver" is still using the old code. Can you help me with this? Thank
> you.
>
> -ZZ
>
>
>
>

Re: Modifying the eventserver

Posted by Donald Szeto <do...@apache.org>.
(Please reply only to dev@)

Could you post the full error output after you run your command please?

The make-distribution.sh will make a binary distribution, plus allowing you
to run bin/pio in your code tree directly.

On Tue, Jan 24, 2017 at 2:29 PM Zehao Zhang <ze...@gmail.com> wrote:

> Hi Donald,
> Thanks for the response. So this makes another binary distribution of
> predictionio if I'm correct. Is there an easier way to test out the code
> for debugging purposes though? I tried doing "sbt/sbt "data/run-main
> org.apache.predictionio.data.api.Run"" but that gives out a classnotfound
> error for slf4jlogger,
>
> Best,
> -ZZ
> On Tue, Jan 24, 2017 at 2:11 PM Donald Szeto <do...@apache.org> wrote:
>
> Hi,
>
> This question is more suitable for the dev list, so I am moving the thread
> there.
>
> You will need to use make-distribution.sh for the command line to take
> effect. The command line uses the assembly JAR produced by the
> make-distribution.sh script.
>
> It would be great to add some kind of support in the pio command to
> support "sbt run-main". If you are interested please give it a try and make
> a pull request.
>
> Regards,
> Donald
>
> On Tue, Jan 24, 2017 at 1:48 PM Zehao Zhang <ze...@gmail.com> wrote:
>
> Hi, I'm trying to add more http endpoints to the eventserver for my
> project. After I have run the command: sbt/sbt "data/run-main
> org.apache.predictionio.data.api.Run", the code successfully compiles but I
> don't know how to run the newly compiled files. It looks like "pio
> eventserver" is still using the old code. Can you help me with this? Thank
> you.
>
> -ZZ
>
>
>
>

Re: Modifying the eventserver

Posted by Zehao Zhang <ze...@gmail.com>.
Hi Donald,
Thanks for the response. So this makes another binary distribution of
predictionio if I'm correct. Is there an easier way to test out the code
for debugging purposes though? I tried doing "sbt/sbt "data/run-main
org.apache.predictionio.data.api.Run"" but that gives out a classnotfound
error for slf4jlogger,

Best,
-ZZ
On Tue, Jan 24, 2017 at 2:11 PM Donald Szeto <do...@apache.org> wrote:

> Hi,
>
> This question is more suitable for the dev list, so I am moving the thread
> there.
>
> You will need to use make-distribution.sh for the command line to take
> effect. The command line uses the assembly JAR produced by the
> make-distribution.sh script.
>
> It would be great to add some kind of support in the pio command to
> support "sbt run-main". If you are interested please give it a try and make
> a pull request.
>
> Regards,
> Donald
>
> On Tue, Jan 24, 2017 at 1:48 PM Zehao Zhang <ze...@gmail.com> wrote:
>
> Hi, I'm trying to add more http endpoints to the eventserver for my
> project. After I have run the command: sbt/sbt "data/run-main
> org.apache.predictionio.data.api.Run", the code successfully compiles but
> I don't know how to run the newly compiled files. It looks like "pio
> eventserver" is still using the old code. Can you help me with this? Thank
> you.
>
> -ZZ
>
>
>
>

Re: Modifying the eventserver

Posted by Donald Szeto <do...@apache.org>.
Hi,

This question is more suitable for the dev list, so I am moving the thread
there.

You will need to use make-distribution.sh for the command line to take
effect. The command line uses the assembly JAR produced by the
make-distribution.sh script.

It would be great to add some kind of support in the pio command to support
"sbt run-main". If you are interested please give it a try and make a pull
request.

Regards,
Donald

On Tue, Jan 24, 2017 at 1:48 PM Zehao Zhang <ze...@gmail.com> wrote:

> Hi, I'm trying to add more http endpoints to the eventserver for my
> project. After I have run the command: sbt/sbt "data/run-main
> org.apache.predictionio.data.api.Run", the code successfully compiles but I
> don't know how to run the newly compiled files. It looks like "pio
> eventserver" is still using the old code. Can you help me with this? Thank
> you.
>
> -ZZ
>

Re: Modifying the eventserver

Posted by Donald Szeto <do...@apache.org>.
Hi,

This question is more suitable for the dev list, so I am moving the thread
there.

You will need to use make-distribution.sh for the command line to take
effect. The command line uses the assembly JAR produced by the
make-distribution.sh script.

It would be great to add some kind of support in the pio command to support
"sbt run-main". If you are interested please give it a try and make a pull
request.

Regards,
Donald

On Tue, Jan 24, 2017 at 1:48 PM Zehao Zhang <ze...@gmail.com> wrote:

> Hi, I'm trying to add more http endpoints to the eventserver for my
> project. After I have run the command: sbt/sbt "data/run-main
> org.apache.predictionio.data.api.Run", the code successfully compiles but I
> don't know how to run the newly compiled files. It looks like "pio
> eventserver" is still using the old code. Can you help me with this? Thank
> you.
>
> -ZZ
>