[
https://issues.apache.org/jira/browse/APEXCORE-376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15180391#comment-15180391
]
ASF GitHub Bot commented on APEXCORE-376:
-----------------------------------------
GitHub user davidyan74 opened a pull request:
https://github.com/apache/incubator-apex-core/pull/261
APEXCORE-376 corrected processing of logical plan output in dtcli for…
… dump-properties-file command
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/davidyan74/incubator-apex-core
APEXCORE-376-v3.3
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-apex-core/pull/261.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #261
----
commit 34714515446eca2366cdceb3b8919f598c741e98
Author: David Yan <[email protected]>
Date: 2016-03-04T18:57:21Z
APEXCORE-376 corrected processing of logical plan output in dtcli for
dump-properties-file command
----
> dtcli command 'dump-properties-file' does not work when connected to an app
> ---------------------------------------------------------------------------
>
> Key: APEXCORE-376
> URL: https://issues.apache.org/jira/browse/APEXCORE-376
> Project: Apache Apex Core
> Issue Type: Bug
> Reporter: David Yan
> Assignee: David Yan
>
> dtcli command 'dump-properties-file' does not work when connected to an app
> Steps to reproduce:
> * Connect to dtcli in verbose mode (dtcli -vvvv)
> * Connect to a running app (connect application_1456301553414_0021)
> * Fire the command `dump-properties-file` with some output filename
> (dump-properties-file OUT.prop)
> * The command gives error as:
> {code}
> dt (application_1456301553414_0021) > dump-properties-file OUT.prop
> org.codehaus.jettison.json.JSONException: JSONObject["operators"] is not a
> JSONObject.
> at
> org.codehaus.jettison.json.JSONObject.getJSONObject(JSONObject.java:458)
> at
> com.datatorrent.stram.codec.LogicalPlanSerializer.convertToProperties(LogicalPlanSerializer.java:268)
> at
> com.datatorrent.stram.cli.DTCli$DumpPropertiesFileCommand.execute(DTCli.java:3110)
> at com.datatorrent.stram.cli.DTCli$3.run(DTCli.java:1449)
> 16/03/03 00:31:53 ERROR cli.DTCli: Exception caught:
> org.codehaus.jettison.json.JSONException: JSONObject["operators"] is not a
> JSONObject.
> at
> org.codehaus.jettison.json.JSONObject.getJSONObject(JSONObject.java:458)
> at
> com.datatorrent.stram.codec.LogicalPlanSerializer.convertToProperties(LogicalPlanSerializer.java:268)
> at
> com.datatorrent.stram.cli.DTCli$DumpPropertiesFileCommand.execute(DTCli.java:3110)
> at com.datatorrent.stram.cli.DTCli$3.run(DTCli.java:1449)
> dt (application_1456301553414_0021) >
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)