[
https://issues.apache.org/jira/browse/APEXCORE-644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15860406#comment-15860406
]
ASF GitHub Bot commented on APEXCORE-644:
-----------------------------------------
GitHub user sgolovko opened a pull request:
https://github.com/apache/apex-core/pull/469
APEXCORE-644 get-app-package-operators with parent option does not work
There are two apex command line operators that have the option "-parent"
(get-app-package-operators and get-jar-operator-classes). And both of them have
the mandatory argument <full name of the parent class>.
The implementation of the class GetOperatorClassesCommandLineOptions that
builds command line parser options created the descriptor of the option
"-parent" without an argument. And as the result, the argument of the option
was ignored and it was moved to the list of the regular command line parameters.
The bug fix is trivial. It defines the option "-parent" as an option with
an argument.
The new unit test ApexCliTest.testGetOperatorClassesCommandLineInfo() has
been added too.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sgolovko/apex-core APEXCORE-644
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/apex-core/pull/469.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 #469
----
commit e70da43880a2aec49831e70ae83b0edc91c9d5f5
Author: Sergey Golovko <[email protected]>
Date: 2017-02-09T21:53:38Z
APEXCORE-644 get-app-package-operators with parent option does not work
There are two apex command line operators that have the option "-parent"
(get-app-package-operators and get-jar-operator-classes). And both of them have
the mandatory argument <full name of the parent class>.
The implementation of the class GetOperatorClassesCommandLineOptions that
builds command line parser options created the descriptor of the option
"-parent" without an argument. And as the result, the argument of the option
was ignored and it was moved to the list of the regular command line parameters.
The bug fix is trivial. It defines the option "-parent" as an option with
an argument.
The new unit test ApexCliTest.testGetOperatorClassesCommandLineInfo() has
been added too.
----
> get-app-package-operators with parent option does not work
> ----------------------------------------------------------
>
> Key: APEXCORE-644
> URL: https://issues.apache.org/jira/browse/APEXCORE-644
> Project: Apache Apex Core
> Issue Type: Bug
> Reporter: Yatin Chaubal
> Assignee: Sergey Golovko
> Priority: Minor
>
> Issue: get-app-package-operators with -parent option doesnot work
>
> Steps:
> 1) Start dtcli/apex
> 2) Run get-app-package-operators -parent com.datatorrent.demos.pi
> /home/hduser/tf2jan/apa/pi-demo-3.4.0.apa
> Expected out output: valid JSON
> Actual output:
> {noformat}
> com.datatorrent.stram.cli.ApexCli$CliException:
> /home/hduser/tf2jan/com.datatorrent.demos.pi does not match any file
> at com.datatorrent.stram.cli.ApexCli.expandFileName(ApexCli.java:918)
> at com.datatorrent.stram.cli.ApexCli.access$000(ApexCli.java:152)
> at
> com.datatorrent.stram.cli.ApexCli$GetAppPackageOperatorsCommand.execute(ApexCli.java:3827)
> at com.datatorrent.stram.cli.ApexCli$3.run(ApexCli.java:1492)
> {noformat}
> Reference:
> Without -parent option this work fine
> apex> get-app-package-operators /home/hduser/tf2jan/apa/pi-demo-3.4.0.apa
> {
> "operatorClasses": [
> {
> "name": "com.datatorrent.common.util.DefaultDelayOperator",
> "properties": [],
> "portTypeInfo": [
> {
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)