Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-533 Helium
  3. ZEPPELIN-732

Packaged user code that runs on interpreter process

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.0
    • Component/s: None
    • Labels:
      None

      Description

      User writes code and Zeppelin run and display the result on the notebook.
      If user code can be packaged and reused, that would be really useful.

      The idea is simple, run packaged user code on interpreter process, just like an user code on the notebook, and display result on notebook just like an paragraph result.

      I'd like to call packaged user code as Application.

      How user runs Application?

      Zeppelin have list of applications in 'Registry'. Depends on resources available in paragraph, Zeppelin suggest possible applications as a icon button, just like Zeppelin suggest possible visualization for table result.

      When user click the icon button, then an application is downloaded from 'Repository' and run on the interpreter process.

      How application artifact looks like?

      Application is downloadable / runnable artifact that contains user code that interact with Zeppelin provided API.
      I think Jar format would be simplest way to go without inventing new package format. And we can leverage maven repository for package distribution.

      What is Registry?

      Each application is described by package metadata. package metadata contains package name, icon, description, artifact, version, required resources, license, etc.
      Registry is collection of package metadata. Zeppelin community can maintain one central registry.

      How application displays output?

      Each paragraph has output message, angular objects, dynamic forms. Single paragraph will have multiple applications and each of them has their own output message, angular objects just like an paragraph output.

      What is resources?

      resource is object available in ResourcePool. It can be paragraph result, it can be something exposed from interpreter (e.g. SparkContext).
      Package metadata describes required resource for the package. Zeppelin will scan resource available in the resourcepool and suggest possible package for the paragraph.

      What this issue trying to do?

      Minimal implementation of 'Application runtime'.
      Which includes application download and loader, application selection icon, displaying output and examples.

      Possible future work

      This application framework can be extended to use built-in pivot function to transform input data. Then it becomes one possible implementation of pluggable visualization.

        Attachments

          Activity

            People

            • Assignee:
              moon Lee moon soo
              Reporter:
              moon Lee moon soo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: