Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-715

submitJava should allow multiple argument via arg()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.9.1
    • ClientDSL
    • None

    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:

      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. I should have a patch for it.

      Attachments

        1. KNOX-715.patch
          1 kB
          Pierre Regazzoni
        2. KNOX-715-002.patch
          4 kB
          Pierre Regazzoni
        3. KNOX-715-003.patch
          5 kB
          Pierre Regazzoni

        Activity

          People

            pregazzoni Pierre Regazzoni
            pregazzoni Pierre Regazzoni
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: