You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@apex.apache.org by "Doyle, Austin O." <Au...@leidos.com> on 2016/05/04 14:44:14 UTC

Apex DTCLI issue

I've been creating different applications and running them off of DTCLI.  Generally after launching there are no issues.  However whenever attempting to use create-operator or create-stream, many other of the features, including show-logical-plan, start failing with the error:
com.datatorrent.stram.cli.DTCli$CliException: Failed to request web service for appid (application_name)
        at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1670)
        at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1642)
        at com.datatorrent.stram.cli.DTCli.access$6600(DTCli.java:106)
        at com.datatorrent.stram.cli.DTCli$ConnectCommand.execute(DTCli.java:1794)
        at com.datatorrent.stram.cli.DTCli$3.run(DTCli.java:1449)
Caused by: App id (application_name) is not found
        at com.datatorrent.stram.client.StramAgent.issueStramWebRequest(StramAgent.java:277)
        at com.datatorrent.stram.client.StramAgent.issueStramWebRequest(StramAgent.java:305)
        at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1664)
        ... 4 more
Anytime a new application is created after the initial time the error occurs, the error persists.  The application runs fine in the background, but the dtcli commands continue to throw that error.

Re: Apex DTCLI issue

Posted by Munagala Ramanath <ra...@datatorrent.com>.
I tried something very close to that sequence of commands: deleted a couple
of operators and
attached stream, created a new console operator, reattached stream and
everything worked
as expected on the sandbox.

Guess, I need to try it on CDH-5.5.3 to see if it can be reproduced there.

Ram

On Wed, May 4, 2016 at 8:03 AM, Doyle, Austin O. <
Austin.O.Doyle-2@leidos.com> wrote:

> Hadoop distribution CDH-5.5.3
>
> Apex version incubator-apex-core-3.3.0-incubating
>
>
>
> These were the commands used before the issue:
>
>
>
> begin-logical-plan-change
>
> remove-stream outStream
>
> remove-operator mongo
>
> create-operator xyz com.datatorrent.lib.io.ConsoleOutputOperator
>
> create-stream stream_xyz jsonMapping output xyz input
>
> submit
>
>
>
> The original setup had a stream between jsonMapping and mongo, so the goal
> was to remove that stream and the mongo operator and create a new operator
> for the console and stream from jsonMapping to the console.
>
>
>
> *From:* Munagala Ramanath [mailto:ram@datatorrent.com]
> *Sent:* Wednesday, May 04, 2016 10:55 AM
> *To:* users@apex.incubator.apache.org
> *Subject:* Re: Apex DTCLI issue
>
>
>
> I just launched an application on the sandbox and had no such problems. I
> connected to the app with:
>
> connect application_1462344831356_0004
>
>
>
> and was able to see the logical plan with:
>
> show-logical-plan
>
>
>
> Can you tell us more about your environment, which Hadoop distribution,
> which version of Apex, etc. ? Can you
>
> also paste the exact commands you entered ?
>
>
>
> Thanks.
>
>
>
> Ram
>
>
>
> On Wed, May 4, 2016 at 7:44 AM, Doyle, Austin O. <
> Austin.O.Doyle-2@leidos.com> wrote:
>
> I’ve been creating different applications and running them off of DTCLI.
> Generally after launching there are no issues.  However whenever attempting
> to use create-operator or create-stream, many other of the features,
> including show-logical-plan, start failing with the error:
>
> com.datatorrent.stram.cli.DTCli$CliException: Failed to request web
> service for appid (application_name)
>
>         at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1670)
>
>         at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1642)
>
>         at com.datatorrent.stram.cli.DTCli.access$6600(DTCli.java:106)
>
>         at
> com.datatorrent.stram.cli.DTCli$ConnectCommand.execute(DTCli.java:1794)
>
>         at com.datatorrent.stram.cli.DTCli$3.run(DTCli.java:1449)
>
> Caused by: App id (application_name) is not found
>
>         at
> com.datatorrent.stram.client.StramAgent.issueStramWebRequest(StramAgent.java:277)
>
>         at
> com.datatorrent.stram.client.StramAgent.issueStramWebRequest(StramAgent.java:305)
>
>         at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1664)
>
>         ... 4 more
>
> Anytime a new application is created after the initial time the error
> occurs, the error persists.  The application runs fine in the background,
> but the dtcli commands continue to throw that error.
>
>
>

RE: Apex DTCLI issue

Posted by "Doyle, Austin O." <Au...@leidos.com>.
Hadoop distribution CDH-5.5.3
Apex version incubator-apex-core-3.3.0-incubating

These were the commands used before the issue:

begin-logical-plan-change
remove-stream outStream
remove-operator mongo
create-operator xyz com.datatorrent.lib.io.ConsoleOutputOperator
create-stream stream_xyz jsonMapping output xyz input
submit

The original setup had a stream between jsonMapping and mongo, so the goal was to remove that stream and the mongo operator and create a new operator for the console and stream from jsonMapping to the console.

From: Munagala Ramanath [mailto:ram@datatorrent.com]
Sent: Wednesday, May 04, 2016 10:55 AM
To: users@apex.incubator.apache.org
Subject: Re: Apex DTCLI issue

I just launched an application on the sandbox and had no such problems. I connected to the app with:
connect application_1462344831356_0004

and was able to see the logical plan with:
show-logical-plan

Can you tell us more about your environment, which Hadoop distribution, which version of Apex, etc. ? Can you
also paste the exact commands you entered ?

Thanks.

Ram

On Wed, May 4, 2016 at 7:44 AM, Doyle, Austin O. <Au...@leidos.com>> wrote:
I’ve been creating different applications and running them off of DTCLI.  Generally after launching there are no issues.  However whenever attempting to use create-operator or create-stream, many other of the features, including show-logical-plan, start failing with the error:
com.datatorrent.stram.cli.DTCli$CliException: Failed to request web service for appid (application_name)
        at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1670)
        at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1642)
        at com.datatorrent.stram.cli.DTCli.access$6600(DTCli.java:106)
        at com.datatorrent.stram.cli.DTCli$ConnectCommand.execute(DTCli.java:1794)
        at com.datatorrent.stram.cli.DTCli$3.run(DTCli.java:1449)
Caused by: App id (application_name) is not found
        at com.datatorrent.stram.client.StramAgent.issueStramWebRequest(StramAgent.java:277)
        at com.datatorrent.stram.client.StramAgent.issueStramWebRequest(StramAgent.java:305)
        at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1664)
        ... 4 more
Anytime a new application is created after the initial time the error occurs, the error persists.  The application runs fine in the background, but the dtcli commands continue to throw that error.


Re: Apex DTCLI issue

Posted by Munagala Ramanath <ra...@datatorrent.com>.
I just launched an application on the sandbox and had no such problems. I
connected to the app with:
connect application_1462344831356_0004

and was able to see the logical plan with:
show-logical-plan

Can you tell us more about your environment, which Hadoop distribution,
which version of Apex, etc. ? Can you
also paste the exact commands you entered ?

Thanks.

Ram

On Wed, May 4, 2016 at 7:44 AM, Doyle, Austin O. <
Austin.O.Doyle-2@leidos.com> wrote:

> I’ve been creating different applications and running them off of DTCLI.
> Generally after launching there are no issues.  However whenever attempting
> to use create-operator or create-stream, many other of the features,
> including show-logical-plan, start failing with the error:
>
> com.datatorrent.stram.cli.DTCli$CliException: Failed to request web
> service for appid (application_name)
>
>         at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1670)
>
>         at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1642)
>
>         at com.datatorrent.stram.cli.DTCli.access$6600(DTCli.java:106)
>
>         at
> com.datatorrent.stram.cli.DTCli$ConnectCommand.execute(DTCli.java:1794)
>
>         at com.datatorrent.stram.cli.DTCli$3.run(DTCli.java:1449)
>
> Caused by: App id (application_name) is not found
>
>         at
> com.datatorrent.stram.client.StramAgent.issueStramWebRequest(StramAgent.java:277)
>
>         at
> com.datatorrent.stram.client.StramAgent.issueStramWebRequest(StramAgent.java:305)
>
>         at com.datatorrent.stram.cli.DTCli.getResource(DTCli.java:1664)
>
>         ... 4 more
>
> Anytime a new application is created after the initial time the error
> occurs, the error persists.  The application runs fine in the background,
> but the dtcli commands continue to throw that error.
>