[jira] [Commented] (STORM-3742) Topology arguments starting with -c get removed

2021-03-06 Thread Julien Nioche (Jira)


[ 
https://issues.apache.org/jira/browse/STORM-3742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17296519#comment-17296519
 ] 

Julien Nioche commented on STORM-3742:
--

thanks [~bipinprasad], the aim is to have the class process the arguments. 
These topologies expect to get '-conf xxx'.
Inserting '–' seems to have done the trick! Thanks a lot

This is to use with 
[ConfigurableTopologies|[https://github.com/apache/storm/blob/2.2.x-branch/storm-client/src/jvm/org/apache/storm/topology/ConfigurableTopology.java#L136];]
 they expect to get such arguments.

> Topology arguments starting with -c get removed
> ---
>
> Key: STORM-3742
> URL: https://issues.apache.org/jira/browse/STORM-3742
> Project: Apache Storm
>  Issue Type: Bug
>Affects Versions: 2.2.0
>Reporter: Julien Nioche
>Assignee: Bipin Prasad
>Priority: Major
>
>  with the following command
> storm local target/stormcrawler-1.0-SNAPSHOT.jar 
> global.climateemergency.ESCrawlTopology -conf crawler-conf.yaml -conf 
> es-conf.yaml . seeds.txt
> the topology class is only getting [crawler-conf.yaml, es-conf.yaml, ., 
> seeds.txt]and the -conf have been removed.
> Anything after the class name should be left as-is. 
> This does not happen with Storm 1.2.3
>  
>  
> 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (STORM-3742) Topology arguments starting with -c get removed

2021-03-05 Thread Bipin Prasad (Jira)


[ 
https://issues.apache.org/jira/browse/STORM-3742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17296322#comment-17296322
 ] 

Bipin Prasad commented on STORM-3742:
-

Alternatively, if your intent is to have your class process the arguments: then 
insert "--" to stop argument processing:

{code}
storm local target/stormcrawler-1.0-SNAPSHOT.jar 
global.climateemergency.ESCrawlTopology -- -conf crawler-conf.yaml -conf 
es-conf.yaml . seeds.txt
{code}

Storm 2.2.x will parse "-c" as a single override and --config accepts file 
argument. 
But "-conf crawler-conf.yaml" will be parsed as "-c onf crawler-conf.yaml" 

> Topology arguments starting with -c get removed
> ---
>
> Key: STORM-3742
> URL: https://issues.apache.org/jira/browse/STORM-3742
> Project: Apache Storm
>  Issue Type: Bug
>Affects Versions: 2.2.0
>Reporter: Julien Nioche
>Assignee: Bipin Prasad
>Priority: Major
>
>  with the following command
> storm local target/stormcrawler-1.0-SNAPSHOT.jar 
> global.climateemergency.ESCrawlTopology -conf crawler-conf.yaml -conf 
> es-conf.yaml . seeds.txt
> the topology class is only getting [crawler-conf.yaml, es-conf.yaml, ., 
> seeds.txt]and the -conf have been removed.
> Anything after the class name should be left as-is. 
> This does not happen with Storm 1.2.3
>  
>  
> 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (STORM-3742) Topology arguments starting with -c get removed

2021-03-05 Thread Bipin Prasad (Jira)


[ 
https://issues.apache.org/jira/browse/STORM-3742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17296297#comment-17296297
 ] 

Bipin Prasad commented on STORM-3742:
-

Can you try after replacing -conf with --config

> Topology arguments starting with -c get removed
> ---
>
> Key: STORM-3742
> URL: https://issues.apache.org/jira/browse/STORM-3742
> Project: Apache Storm
>  Issue Type: Bug
>Affects Versions: 2.2.0
>Reporter: Julien Nioche
>Priority: Major
>
>  with the following command
> storm local target/stormcrawler-1.0-SNAPSHOT.jar 
> global.climateemergency.ESCrawlTopology -conf crawler-conf.yaml -conf 
> es-conf.yaml . seeds.txt
> the topology class is only getting [crawler-conf.yaml, es-conf.yaml, ., 
> seeds.txt]and the -conf have been removed.
> Anything after the class name should be left as-is. 
> This does not happen with Storm 1.2.3
>  
>  
> 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)