You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by zjffdu <gi...@git.apache.org> on 2016/11/25 01:41:46 UTC

[GitHub] zeppelin pull request #1679: ZEPPELIN-1707. Pass userName when creating inte...

GitHub user zjffdu opened a pull request:

    https://github.com/apache/zeppelin/pull/1679

    ZEPPELIN-1707. Pass userName when creating interpreter through thrift

    ### What is this PR for?
    In ZEPPELIN-1607, I'd like refactor livy interpreter to scoped mode by default, this require username when open this interpreter. So I propose to pass username when creating interpreter through thrift.
    What I did in this PR.
    * update RemoteInterpreterService.thrift and regenerate the java thrift code.
    * I use thrift 0.9.2 because I notice in zeppelin/pom.xml, the libthrift.version we use is 0.9.2
    * update genthrift.sh, otherwise hashCode method won't be generated correctly.
    
    
    ### What type of PR is it?
    [Improvement]
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    * https://issues.apache.org/jira/browse/ZEPPELIN-1707
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    


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

    $ git pull https://github.com/zjffdu/zeppelin ZEPPELIN-1707

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

    https://github.com/apache/zeppelin/pull/1679.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 #1679
    
----
commit 223a48f0ce8d0d768bc2eb0364b82e25f7a633ff
Author: Jeff Zhang <zj...@apache.org>
Date:   2016-11-25T01:32:14Z

    ZEPPELIN-1707. Pass userName when creating interpreter through thrift

----


---
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] zeppelin issue #1679: ZEPPELIN-1707. Pass userName when creating interpreter...

Posted by astroshim <gi...@git.apache.org>.
Github user astroshim commented on the issue:

    https://github.com/apache/zeppelin/pull/1679
  
    @zjffdu It's my misunderstanding. 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] zeppelin issue #1679: ZEPPELIN-1707. Pass userName when creating interpreter...

Posted by zjffdu <gi...@git.apache.org>.
Github user zjffdu commented on the issue:

    https://github.com/apache/zeppelin/pull/1679
  
    @astroshim `InterpreterContext` is only available when interpreting paragraph (after Interpreter is opened).  What I need here is to get username when opening interpreter. 


---
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] zeppelin issue #1679: ZEPPELIN-1707. Pass userName when creating interpreter...

Posted by astroshim <gi...@git.apache.org>.
Github user astroshim commented on the issue:

    https://github.com/apache/zeppelin/pull/1679
  
    Sorry for late review. 
    
    User name is already passed to interpreter.
    We can get the user id on interpreterContext.getAuthenticationInfo().getUser()
    
    I think passing password is valuable in this PR because we can use the login account information(username + password) on interpreter like JDBC.
    
    What do you think?


---
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] zeppelin pull request #1679: ZEPPELIN-1707. Pass userName when creating inte...

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

    https://github.com/apache/zeppelin/pull/1679


---
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] zeppelin pull request #1679: ZEPPELIN-1707. Pass userName when creating inte...

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

    https://github.com/apache/zeppelin/pull/1679


---
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] zeppelin issue #1679: ZEPPELIN-1707. Pass userName when creating interpreter...

Posted by zjffdu <gi...@git.apache.org>.
Github user zjffdu commented on the issue:

    https://github.com/apache/zeppelin/pull/1679
  
    @Leemoonsoo @prabhjyotsingh Please help 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] zeppelin pull request #1679: ZEPPELIN-1707. Pass userName when creating inte...

Posted by zjffdu <gi...@git.apache.org>.
GitHub user zjffdu reopened a pull request:

    https://github.com/apache/zeppelin/pull/1679

    ZEPPELIN-1707. Pass userName when creating interpreter through thrift

    ### What is this PR for?
    In ZEPPELIN-1607, I'd like refactor livy interpreter to scoped mode by default, this require username when open this interpreter. So I propose to pass username when creating interpreter through thrift.
    What I did in this PR.
    * update `RemoteInterpreterService.thrift` and regenerate the java thrift code.
    * update `genthrift.sh`, otherwise hashCode method won't be generated correctly.
    * This is one compilation issue (`PythonDockerInterpreterTest.java`) in the existing master branch, I also fix it here. 
    
    
    ### What type of PR is it?
    [Improvement]
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    * https://issues.apache.org/jira/browse/ZEPPELIN-1707
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    


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

    $ git pull https://github.com/zjffdu/zeppelin ZEPPELIN-1707

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

    https://github.com/apache/zeppelin/pull/1679.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 #1679
    
----
commit cbb829cc3754ce9090939c3deebe304300ef44f8
Author: Jeff Zhang <zj...@apache.org>
Date:   2016-11-25T01:58:15Z

    ZEPPELIN-1707. Pass userName when creating interpreter through thrift

commit e8e913fd85f2b627e096a3eeb1840af7157113e9
Author: Jeff Zhang <zj...@apache.org>
Date:   2016-11-25T08:33:39Z

    regenerate it using thrift 0.9.2

----


---
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] zeppelin issue #1679: ZEPPELIN-1707. Pass userName when creating interpreter...

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

    https://github.com/apache/zeppelin/pull/1679
  
    Looks good to me.
    
    CI is green now, so will merge it to master if there is no further 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] zeppelin issue #1679: ZEPPELIN-1707. Pass userName when creating interpreter...

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

    https://github.com/apache/zeppelin/pull/1679
  
    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.
---