You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by prabhjyotsingh <gi...@git.apache.org> on 2016/04/11 09:20:06 UTC

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

GitHub user prabhjyotsingh opened a pull request:

    https://github.com/apache/incubator-zeppelin/pull/827

    ZEPPELIN-773 : Livy interperter

    ### What is this PR for?
    As Zeppelin evolves its notebook, for large scale data analysis, multiple zeppelin users are expected to use and connect to the same set of data repositories within an enterprise. Since Zeppelin notebooks could affect data, state and its lineage, it is important to have separation of users, provide them with appropriate sandboxes, in addition to capturing the right audit details. Further, the IT within the organization would prefer to support fewer Zeppelin instances (preferably one) to support its customers. Therefore, the objectives of creating a multi-tenant zeppelin are:
    ●	Supporting workloads of multiple customers
    ●	Supporting multiple LOBs (lines of business), on a single data systems
    ●	Support fine grained audits
    As a natural evolution of Zeppelin Authentication and Authorization design, partly user awareness in downstream data systems such as Spark/Hive and others, is essential to achieve the above stated objectives.
    
    
    ### What type of PR is it?
    Feature
    
    ### Todos
    * [ ] - Test case
    * [ ] - Review Comments
    * [ ] - Documentation
    
    ### What is the Jira issue?
    ZEPPELIN-773
    
    ### How should this be tested?
     - Install Livy by following steps on https://github.com/cloudera/livy
     - Start the Livy server
     - Now by using Zeppelin-Livy interpreter, run any of the spark, pyspark or R commands.
    
    ### Screenshots (if appropriate)
    <img width="1436" alt="screen shot 2016-04-11 at 12 41 35 pm" src="https://cloud.githubusercontent.com/assets/674497/14419479/b514979c-ffe3-11e5-9dea-df9854d8409c.png">
    
    
    <img width="1434" alt="screen shot 2016-04-11 at 12 41 59 pm" src="https://cloud.githubusercontent.com/assets/674497/14419478/b514922e-ffe3-11e5-9c98-93c5b99de106.png">
    
    
    <img width="1440" alt="screen shot 2016-04-11 at 12 48 13 pm" src="https://cloud.githubusercontent.com/assets/674497/14419480/b515d8c8-ffe3-11e5-8c20-4c988c621f51.png">
    
    
    ### Questions:
    * Does the licenses files need update? n/a
    * Is there breaking changes for older versions? n/a
    * Does this needs documentation? yes


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/prabhjyotsingh/incubator-zeppelin livyInterperter

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-zeppelin/pull/827.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #827
    
----
commit fadc6d92ffabc0dc4cb2079702ad292df3fd070a
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-08T16:29:13Z

    userName to be present in InterpreterContext/RemoteInterpreterContext

commit d928203cf6d69b3c6427aa35f047b25a399b3198
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-08T16:48:37Z

    revert shiri.ini
    if fromMessage.principal.equals("anonymous") then set user as null

commit 320790cf4581ba14dfa6791220818058ba3bc7ba
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-09T09:00:40Z

    fix for CI, missing change signature

commit 57ca5771f968ed93fcc566b24cfa699aaf7fb301
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-16T16:23:32Z

    review change create such class AuthenticationInfo, and pass it into InterpreterContext

commit ba91da4121668f5082aa6e0d73a69ecd2b35fa32
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-16T16:23:53Z

    Merge remote-tracking branch 'origin/master' into UserInInterpreterContext

commit 34dcc32035128cc7ecd0b4c2ed8ad7342b034ecd
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-16T16:44:06Z

    instead of null pass "new AuthenticationInfo()"

commit a5a991d2df197d6242d96e2451b4ea0112a7c56e
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-16T18:38:10Z

    check for selenium

commit 95e7c13086de56df000a6cd014fd02d475bd977d
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-16T18:38:55Z

    test for selenium

commit 0709b9c51c6bc7aaa4dafa5c6d52a0eb4530fefe
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-16T18:58:37Z

    moving AuthenticationInfo to org.apache.zeppelin.display.AuthenticationInfo

commit 40534974ae1ce813214d6e13dc5d5558a4815f07
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-17T19:45:52Z

    test livy

commit ace28a8000a8f8a65c66344bccec1b868d9a85be
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-17T21:35:26Z

    working livy

commit d0519d5a02ff5979a37dec9b8c9976db57db400b
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-19T13:05:43Z

    Working livy interpreter with spark, pyspark, R

commit 10311d3bafa2234852e84ca5f75424646c909a4e
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-20T06:43:00Z

    This works in all cases

commit 07f0846d789213200ddedd54352c35d3e446902a
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-20T18:51:35Z

    with lspark sql

commit 8f4ec479d8fbbbc938e9bbfa8eb3bf6be6ed9fe5
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-20T18:54:08Z

    removing unrequired logs

commit 9cb081993dd964d87f91e15864c3a5fcd998a6c0
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-21T06:29:14Z

    Fix for 1st request failing

commit de2fd3cd60811d891234c88030c1bf80378ee553
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-22T14:43:35Z

    have spark streaming

commit b53fd8bfb7da935fb511444f4c70e63b6490e616
Author: Rohit Choudhary <rc...@gmail.com>
Date:   2016-02-23T03:19:13Z

    Don't need so many interpreters

commit 1f9a111188bcfc67c0d02826963d92d49ba8ef1d
Author: Rohit Choudhary <rc...@gmail.com>
Date:   2016-02-23T04:29:33Z

    remove references to LivyInterpreters

commit ee2dcebe3551b09f5986cb6a3414680d4929762e
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-23T06:27:44Z

    working spark sql

commit 68f438de8b4d76d1019f261dfb9a47b8d9c7b45b
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-23T06:46:13Z

    Merge remote-tracking branch 'origin/master' into livyInterperter

commit 426bbe80c318621afd7157278fc4b07448cf8e6c
Author: Rohit Choudhary <rc...@gmail.com>
Date:   2016-02-23T17:54:32Z

    Merge branch 'livyInterperter' of https://github.com/prabhjyotsingh/incubator-zeppelin into livyInterperter

commit 4f513a5b5aa797e9dc8a7fd72dbed17c70a182c7
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-24T04:03:14Z

    site.xml

commit 948615a3ebb8309cc4c44208fbffd213d5e4a6b9
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-24T05:28:36Z

    Merge remote-tracking branch 'origin/master' into livyInterperter
    
    # Conflicts:
    #	testing/startSparkCluster.sh

commit 9d89b0d235855636d93a37bcd74f4951ced39d3c
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-26T05:47:03Z

    Merge remote-tracking branch 'origin/master' into livyInterperter

commit b8e17794d957a51a63eebf16a5338b3db1c6651e
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-02-26T05:59:33Z

    adding back LivySparkRInterpreter.java , pyspark

commit dadc2571956abd40af48cb1ad3ee5d82382843c5
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-03-02T18:55:21Z

    reverting zeppelinConfiguration

commit 0fbb74bcf6fc4532f15656d6e679d1166d55fa5a
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-03-07T11:22:52Z

    Merge remote-tracking branch 'origin/master' into livyInterperter
    
    # Conflicts:
    #	conf/zeppelin-site.xml.template

commit ea05fe9a1ab8f8a5fcd49354d916edf9bc52a84a
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-03-08T06:00:58Z

    Merge remote-tracking branch 'origin/master' into livyInterperter

commit ee1c9f4cfb79c2d34d9c0bc34e81d48fac1d8908
Author: Prabhjyot Singh <pr...@gmail.com>
Date:   2016-03-09T05:12:14Z

    Merge remote-tracking branch 'origin/master' into livyInterperter

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-220059254
  
    @Leemoonsoo can you try one of this
    
    `curl -X POST --data '{"kind": "spark", "master": "local[*]", "proxyUser": "null"}' -H "Content-Type: application/json" localhost:8998/sessions` if trying on https://github.com/cloudera/hue/tree/master/apps/spark/java 
    
    or 
    
    `curl -X POST --data '{"kind": "spark", "conf":{"spark.master": "local[*]"},"proxyUser": "null"}' -H "Content-Type: application/json" localhost:8998/sessions` if on https://github.com/cloudera/livy.
    
    Most likely this is known issue https://github.com/apache/incubator-zeppelin/pull/827/commits/3deca713f638e8908974c45891d4ed152a55cda9#diff-427ba78b970ccdf0a95f5176f693a377R88 and your server is running from https://github.com/cloudera/livy.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-220088767
  
    @Leemoonsoo thanks a lot for reviewing it.
    
    CI fails for unrelated issue at Job #4237.1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-208863052
  
    Yes, @jongyoul, every paragraph shares same SparkContext.
    
    Here is a short description for sharing Spark RDDs and contexts http://gethue.com/how-to-use-the-livy-spark-rest-job-server-api-for-sharing-spark-rdds-and-contexts/


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-219501130
  
    I have build livy and verified it is working with example https://github.com/cloudera/livy#spark-example.
    When i try this branch, with default configuration, livy server prints error
    ```
    com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "master" (class com.cloudera.livy.server.interactive.CreateInteractiveRequest), not marked as ignorable (14 known properties: "executorCores", "conf", "driverMemory", "name", "driverCores", "pyFiles", "archives", "queue", "kind", "executorMemory", "files", "jars", "proxyUser", "numExecutors"])
     at [Source: HttpInputOverHTTP@36177f7b; line: 1, column: 30] (through reference chain: com.cloudera.livy.server.interactive.CreateInteractiveRequest["master"])
    	at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:51)
    	at com.fasterxml.jackson.databind.DeserializationContext.reportUnknownProperty(DeserializationContext.java:744)
    	at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:915)
    	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1306)
    	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1284)
    	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:243)
    	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:118)
    	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3066)
    	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2207)
    	at com.cloudera.livy.server.JsonServlet.bodyAs(JsonServlet.scala:102)
    	at com.cloudera.livy.server.JsonServlet.bodyAs(JsonServlet.scala:98)
    	at com.cloudera.livy.server.interactive.InteractiveSessionServlet.createSession(InteractiveSessionServlet.scala:49)
    	at com.cloudera.livy.server.interactive.InteractiveSessionServlet.createSession(InteractiveSessionServlet.scala:40)
    	at com.cloudera.livy.server.SessionServlet$$anonfun$17$$anon$2$$anonfun$18.apply(SessionServlet.scala:127)
    	at com.cloudera.livy.server.SessionServlet$$anonfun$17$$anon$2$$anonfun$18.apply(SessionServlet.scala:126)
    	at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
    	at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
    	at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(ExecutionContextImpl.scala:107)
    	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
    ```
    Am i missing something?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-220086349
  
    @prabhjyotsingh Thanks for the help. Commenting out spark.master from https://github.com/cloudera/livy/conf/spark-blacklist.conf made it work.
    
    Looks good to me!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-221024746
  
    +1 for merge!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-214856244
  
    Could you please add the doc to docs/_includes/themes/zeppelin/_navigation.html
    And any license changes?
    
    http://zeppelin.incubator.apache.org/docs/0.6.0-incubating-SNAPSHOT/development/writingzeppelininterpreter.html



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-214616917
  
    Ready for review.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-221025863
  
    +1
    
    
      


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-zeppelin/pull/827


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-217781836
  
    Thanks @felixcheung for such detailed review. Have tried and fixed all the review comments.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-208199903
  
    Great progress! Looking forward some tests and docs for new interpreter implementation!
    
    Just a nitpick, but I think you might need to double-check the `pom.xml` indentation as well as actually squash some commits and rebase this branch on the `master` instead of merging `master` in.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-220255952
  
    Thank you @AhyoungRyu  for the review. Have addressed those.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-218502014
  
    add placeholder to configure spark master uri.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by rconlinehwx <gi...@git.apache.org>.
Github user rconlinehwx commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-219418977
  
    @prabhjyotsingh @felixcheung any dates we look at for this merge? Thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-209128251
  
    cool - as commented, will there be ways to allow for livy session control? I've seen cases where users are not aware of the session mechanics and end up leaving the livy session (and hence the spark session) running forever, taking up resource.
    
    On a related note, should there be an option to auto close livy session when the interpreter is stopped/restarted?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by jongyoul <gi...@git.apache.org>.
Github user jongyoul commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-208635882
  
    @prabhjyotsingh I've read your design docs and dug Cloudera Livy. I have a question. does Livy support interactive mode through rest api? I mean every paragraph can share same SparkContext. As I've reviewed, that works by running spark-submit for every rest api. I'm not good at Livy, thus please correct me if I'm wrong.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-220023617
  
    @prabhjyotsingh Thanks for explanation. I have tried with  https://github.com/cloudera/hue/tree/master/apps/spark/java and LivyInterpreter works greatly.
    However, still no luck with https://github.com/cloudera/livy. i'm getting the same error.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-212262082
  
    @felixcheung Yes there will be a way to control livy session by programmatic, but I'm just trying to keep this PR simple, once this is done we can have a way to do that as well.
    
    for `auto close livy session when the interpreter is stopped/restarted` yes good point, let me do that.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-219175485
  
    Please check out [this](https://github.com/apache/incubator-zeppelin/pull/827/files/cb65c866558d22467e74046440284df28016c733..9bfbe47f99bb8158b06f9806a85c376cecf13e0a#r60365719) and [this](https://github.com/apache/incubator-zeppelin/pull/827#discussion_r61178850) and [this](https://github.com/apache/incubator-zeppelin/pull/827#discussion_r62949110)
    Otherwise LGTM.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by rconlinehwx <gi...@git.apache.org>.
Github user rconlinehwx commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-221167212
  
    @prabhjyotsingh @Leemoonsoo @felixcheung awesome!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-216739676
  
    cool, thanks, I guess only (this)[https://github.com/apache/incubator-zeppelin/pull/827#discussion_r61179320] and (this)[https://github.com/apache/incubator-zeppelin/pull/827/files#r61182044] left.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-219218927
  
    Thank you for the remainder. Have updated the doc to take care of the review comment.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-220897644
  
    Shall I merge this, if no more discussion.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-773 : Livy interperter

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/827#issuecomment-219664223
  
    Thank you @Leemoonsoo for the review, on debugging I found out that the Livy-Server that https://github.com/cloudera/livy and https://github.com/cloudera/hue/tree/master/apps/spark/java works differently. 
    
    https://github.com/cloudera/livy accepts request as `curl -X POST --data '{"kind": "pyspark", "conf":{"spark.master": "local[*]"}}' -H "Content-Type: application/json" localhost:8998/sessions` 
    
    and https://github.com/cloudera/hue/tree/master/apps/spark/java accepts the same as `curl -X POST --data '{"kind": "pyspark", "master": "local[*]"}' -H "Content-Type: application/json" localhost:8998/sessions`
    
    Have put up an extra check https://github.com/apache/incubator-zeppelin/pull/827/commits/44c5e82a41a61c2892fafca54a71b9bbbdac661a#diff-6590a16671e62be8da95e793c364d739R72 to fix this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---