Giter VIP home page Giter VIP logo

Comments (13)

jrevillard avatar jrevillard commented on May 28, 2024 10

I'm very interested into this functionality too as I must start using the HTTP mode for Apache Knox.
Is it something that can be planned ?

from pyhive.

rohit-menon avatar rohit-menon commented on May 28, 2024 10

Any updates on HTTP support?

from pyhive.

zscalerspark avatar zscalerspark commented on May 28, 2024 6

Any timeline/priority when this will be available

from pyhive.

Neelotpaul avatar Neelotpaul commented on May 28, 2024 3

Please add HTTP support. As i am trying to use the code piece in prod environment where other teams are also connecting through JDBC, pyspark; i am not able to set it binary if that makes other connections not work.

from pyhive.

rashmigulhane avatar rashmigulhane commented on May 28, 2024 3

+1 .. Can you please add Http Support for Pyhive

from pyhive.

jingw avatar jingw commented on May 28, 2024 1

Sorry, there is no code for HTTP mode.

from pyhive.

jbreija avatar jbreija commented on May 28, 2024

Me too, I must use Apache Knox to authenticate with Hive. Is this currently possible with PyHive?

from pyhive.

Polar-is avatar Polar-is commented on May 28, 2024

Likewise, I'd also be interested in this functionality!

from pyhive.

modeyang avatar modeyang commented on May 28, 2024

+1

from pyhive.

joaopedroantonio avatar joaopedroantonio commented on May 28, 2024

Hi all, just created a PR to add support for Thrift connections over HTTP transport. You can follow its progress here: #325

from pyhive.

pauldevos avatar pauldevos commented on May 28, 2024

Our server is configured with hive.server2.transport.mode set to HTTP. When switching to binary , everything seems to work perfectly. Is there a way to enable PyHive to work with HTTP transport mode ?

So as an end user vs someone configuring the Hive datastore, this is likely not possible via my connection string.

e.g.

con = hive.Connection(host = hive_host, port = 10000, username = hive_username, auth='NOSASL')
Docstring for Hive Connection:

Init signature:
hive.Connection(
    host=None,
    port=None,
    username=None,
    database='default',
    auth=None,
    configuration=None,
    kerberos_service_name=None,
    password=None,
    thrift_transport=None,
)
Docstring:      Wraps a Thrift session
Init docstring:
Connect to HiveServer2

:param host: What host HiveServer2 runs on
:param port: What port HiveServer2 runs on. Defaults to 10000.
:param auth: The value of hive.server2.authentication used by HiveServer2.
    Defaults to ``NONE``.
:param configuration: A dictionary of Hive settings (functionally same as the `set` command)
:param kerberos_service_name: Use with auth='KERBEROS' only
:param password: Use with auth='LDAP' or auth='CUSTOM' only
:param thrift_transport: A ``TTransportBase`` for custom advanced usage.
    Incompatible with host, port, auth, kerberos_service_name, and password.

The way to support LDAP and GSSAPI is originated from cloudera/Impyla:
https://github.com/cloudera/impyla/blob/255b07ed973d47a3395214ed92d35ec0615ebf62
/impala/_thrift_api.py#L152-L160
File:           ~/miniconda3/envs/spark_2_4_4/lib/python3.8/site-packages/pyhive/hive.py
Type:           type
Subclasses:   

from pyhive.

RamakrishnaChilaka avatar RamakrishnaChilaka commented on May 28, 2024

@pauldevos , Thanks a lot for the above snippet. Can we log all the HTTP headers in spark thrift server ?

from pyhive.

danjampro avatar danjampro commented on May 28, 2024

Hi, are there any updates on this?

from pyhive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.