You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by ey1984 <gi...@git.apache.org> on 2018/05/18 13:30:24 UTC

[GitHub] hive pull request #351: Branch 1.2

GitHub user ey1984 opened a pull request:

    https://github.com/apache/hive/pull/351

    Branch 1.2

    Hello,
    
    I'm using your hive-jdbc (1.2.1) as dependency for 2 applications deployed into 2 docker containers (Java Code and Python Code).
    For both containers, it runs behind a proxy system when I deploy on qualification and production environment.
    For java, (-Dhttp.proxyHost=MyProxyHost -Dhttp.proxyPort=MyProxyPort)
    For python, I set HTTP_PROXY=http://myproxyhost:myproxyport
    
    And after deployed, and launched, a timeout occurs when I want to hit the hive server. I call hive by url jdbc://hive....
    
    So after debugging your source code, I added some code (PR as requested) in order to get the proxy system (env from os or jvm configuration) and It works fine for both containers.
    
    Is this correction acceptable or is there any other solution to hit Hive Server by using proxy ?
    
    Python : I use jaydepbeapi and Java : Only DriverManager.getConnection("jdbc://hive2....)
    
    Thanks a lot

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

    $ git pull https://github.com/ey1984/hive branch-1.2

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

    https://github.com/apache/hive/pull/351.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 #351
    
----
commit 2900b5c687f7a2e11bf1b56ddc17aa271e557ff2
Author: ey1984 <ek...@...>
Date:   2018-04-30T21:31:39Z

    Get proxy system

commit b07aa6a4d228a40c9b45ff5d99a7104a5dbb8443
Author: ey1984 <ek...@...>
Date:   2018-04-30T21:54:28Z

    merge conflict caused by PR Hive-Proxy-System

commit 3962b9b3b54f5e07854331d989911b645ef344bd
Author: Ekrem YILMAZ <ek...@...>
Date:   2018-05-14T12:06:21Z

    Get Proxy Settings By UseSystemProperties
    
    Get Proxy Settings by UseSystemProperties and keep getEnv

commit 2e98af05005161eb33c255022d0487ddd808dfb0
Author: Ekrem YILMAZ <ek...@...>
Date:   2018-05-14T12:09:36Z

    Merge branch 'HIVE-Proxy-System' into branch-1.2

commit 59860ca463eec571421d875ef1ed32f545ecfef9
Author: Ekrem YILMAZ <ek...@...>
Date:   2018-05-14T12:10:08Z

    Merge with Hive-Proxy-System

commit 913c8c8f620c62316d89d7b9187bfcad3b700f16
Author: Ekrem YILMAZ <ek...@...>
Date:   2018-05-14T12:11:47Z

    Merge with Hive-Proxy-System

----


---

[GitHub] hive pull request #351: HIVE - Get proxy system

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

    https://github.com/apache/hive/pull/351


---