[HOTFIX][ZEPPELIN-2294]. Interpreter fail exception is not propagated to frontend

### What is this PR for?

This PR would address the issue of Interpreter fail exception is not propagated to frontend. This is due to the bug fix of restarting button issue.  Make referenceCount as number of sessions attached to this process. Open and close all the interpreters in one session together. I don't think there's scenario for close a single interpreter for now.

### What type of PR is it?
[Bug Fix | Improvement]

### Todos
* [ ] - Task

### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-2294

### How should this be tested?
I don't have time to write test, just verify zombie process issue manually in the following scenario
* Per User + Isolated
* Per Note + Isolated
* Per User + Scoped
* Per Note + Scoped

### Screenshots (if appropriate)
Before
![2017-03-22_1538](https://cloud.githubusercontent.com/assets/164491/24198052/227d42e6-0f3f-11e7-9918-bf9827e44f92.png)

After
![2017-03-22_1523](https://cloud.githubusercontent.com/assets/164491/24198062/31043cc0-0f3f-11e7-8ab3-87938e3918ce.png)

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Jeff Zhang <zjffdu@apache.org>

Closes #2175 from zjffdu/ZEPPELIN-2294 and squashes the following commits:

a3f8aa0b [Jeff Zhang] [ZEPPELIN-2294]. Interpreter fail exception is not propagated to frontend

(cherry picked from commit 0aea2416dc60fb6e2e181ee1c593d9d2c575bcb7)
Signed-off-by: Jongyoul Lee <jongyoul@apache.org>
7 files changed
tree: 955d7eccdd2f8bd44e2f2e4a45d214e96d88a255
  1. .github/
  2. _tools/
  3. alluxio/
  4. angular/
  5. beam/
  6. bigquery/
  7. bin/
  8. cassandra/
  9. conf/
  10. dev/
  11. docs/
  12. elasticsearch/
  13. file/
  14. flink/
  15. geode/
  16. hbase/
  17. helium-dev/
  18. ignite/
  19. interpreter/
  20. jdbc/
  21. kylin/
  22. lens/
  23. licenses/
  24. livy/
  25. markdown/
  26. notebook/
  27. pig/
  28. postgresql/
  29. python/
  30. r/
  31. scalding/
  32. scio/
  33. scripts/
  34. shell/
  35. spark/
  36. spark-dependencies/
  37. testing/
  38. zeppelin-display/
  39. zeppelin-distribution/
  40. zeppelin-examples/
  41. zeppelin-interpreter/
  42. zeppelin-server/
  43. zeppelin-web/
  44. zeppelin-zengine/
  45. .gitignore
  46. .travis.yml
  47. LICENSE
  48. NOTICE
  49. pom.xml
  50. README.md
  51. Roadmap.md
  52. SECURITY-README.md
  53. STYLE.md
  54. travis_check.py
README.md

Apache Zeppelin

Documentation: User Guide
Mailing Lists: User and Dev mailing list
Continuous Integration: Build Status
Contributing: Contribution Guide
Issue Tracker: Jira
License: Apache 2.0

Zeppelin, a web-based notebook that enables interactive data analytics. You can make beautiful data-driven, interactive and collaborative documents with SQL, Scala and more.

Core feature:

  • Web based notebook style editor.
  • Built-in Apache Spark support

To know more about Zeppelin, visit our web site http://zeppelin.apache.org

Getting Started

Install binary package

Please go to install to install Apache Zeppelin from binary package.

Build from source

Please check Build from source to build Zeppelin from source.