You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Pierre Regazzoni (JIRA)" <ji...@apache.org> on 2016/05/20 15:56:13 UTC

[jira] [Updated] (KNOX-715) submitJava should allow multiple argument via arg()

     [ https://issues.apache.org/jira/browse/KNOX-715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre Regazzoni updated KNOX-715:
----------------------------------
    Description: 
Like with submitPig (KNOX-712). I want to be able to provide multiple argument when submitting a jar via submitJava. For example, should be able to do:
{no-format}
jobId = Job.submitJava(session) \
     .jar( "path-to-my-jar" ) \
     .app( "class-name" ) \
     .arg( "argument1").arg("value1") \
     .arg( "argument2").arg("value2") \
     .arg( "argument3") \
     .output("path-to-output-dir ) \
     .now().jobId
{no-format}
Current code limits execution to only specifying jar,class,input,output.


  was:
Like with submitPig (KNOX-712). I want to be able to provide multiple argument when submitting a jar via submitJava. For example, should be able to do:
```
jobId = Job.submitJava(session) \
     .jar( "path-to-my-jar" ) \
     .app( "class-name" ) \
     .arg( "argument1").arg("value1") \
     .arg( "argument2").arg("value2") \
     .arg( "argument3") \
     .output("path-to-output-dir ) \
     .now().jobId
```
Current code limits execution to only specifying jar,class,input,output.



> submitJava should allow multiple argument via arg()
> ---------------------------------------------------
>
>                 Key: KNOX-715
>                 URL: https://issues.apache.org/jira/browse/KNOX-715
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: ClientDSL
>    Affects Versions: 0.7.0
>            Reporter: Pierre Regazzoni
>
> Like with submitPig (KNOX-712). I want to be able to provide multiple argument when submitting a jar via submitJava. For example, should be able to do:
> {no-format}
> jobId = Job.submitJava(session) \
>      .jar( "path-to-my-jar" ) \
>      .app( "class-name" ) \
>      .arg( "argument1").arg("value1") \
>      .arg( "argument2").arg("value2") \
>      .arg( "argument3") \
>      .output("path-to-output-dir ) \
>      .now().jobId
> {no-format}
> Current code limits execution to only specifying jar,class,input,output.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)