Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5165

Parameter Error in zeppelin.cmd, Windows, 0.9.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 0.9.0
    • None
    • zeppelin-interpreter

    Description

      Problem

      When launching zeppelin-0.9.0 on Windows and execute any paragraph, it will throw exceptions:

      The error log is:

      zeppelin-kangrong-KANGRONG-PC.log

       

      Debugging

      We found that zeppelin launches the interpreter at 

      org.apache.zeppelin.interpreter.util.ProcessLauncher#launch()

      and then calling `bin\interpreter.cmd` (Windows) or `bin\interpreter.sh` (unix).

      `interpreter.xx` will call `org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer` to run an interpreter.

      However, the input parameters are different between these two scripts:

       

      // interpreter.sh provides four paramters:
      "${ZEPPELIN_SERVER}" "${CALLBACK_HOST}" "${PORT}" "${INTP_GROUP_ID}" "${INTP_PORT}"
      
      // interpreter.cmd only input the first twos:
      %ZEPPELIN_SERVER% "%CALLBACK_HOST%" %PORT%

       

       

      As a result, `RemoteInterpreterServer` cannot read args[2] as GroupId and throw `ArrayIndexOutOfBoundsException`.

      // org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer#main
      public static void main(String[] args) throws Exception {
         ...
        if (args.length > 0) {
          zeppelinServerHost = args[0];
          port = Integer.parseInt(args[1]);
          interpreterGroupId = args[2];
          ...
        }
         ...
      }

      Solution

      I'd like to submit [PR-3995|https://github.com/apache/zeppelin/pull/3995] to fix bugs in `interpreter.cmd`.

      Attachments

        1. image.png
          970 kB
          Ruslan Fialkovsky
        2. image-2020-12-18-13-21-44-612.png
          970 kB
          Rong Kang
        3. zeppelin-kangrong-KANGRONG-PC.log
          7 kB
          Rong Kang

        Activity

          People

            Unassigned Unassigned
            kangrong Rong Kang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Time Spent - 1h 40m Remaining Estimate - 70h 20m
                70h 20m
                Logged:
                Time Spent - 1h 40m Remaining Estimate - 70h 20m
                1h 40m