Comments (13)
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.
Any updates on HTTP support?
from pyhive.
Any timeline/priority when this will be available
from pyhive.
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.
+1 .. Can you please add Http Support for Pyhive
from pyhive.
Sorry, there is no code for HTTP mode.
from pyhive.
Me too, I must use Apache Knox to authenticate with Hive. Is this currently possible with PyHive?
from pyhive.
Likewise, I'd also be interested in this functionality!
from pyhive.
+1
from pyhive.
Hi all, just created a PR to add support for Thrift connections over HTTP transport. You can follow its progress here: #325
from pyhive.
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.
@pauldevos , Thanks a lot for the above snippet. Can we log all the HTTP headers in spark thrift server ?
from pyhive.
Hi, are there any updates on this?
from pyhive.
Related Issues (20)
- Project is currently unsupported? HOT 1
- pyhive.exc.DatabaseError MISSING_CATALOG_NAME
- Connection Error(TTransportException) to Hive using SQLAlchemy API
- Either set supports_statement_cache to True or False HOT 4
- precision and scale not supported for DECIMAL type
- Security Vulneratbility CVE-2022-40899 on future HOT 1
- Incompatibility with SQLAlchemy 2.0.0+ HOT 10
- TypeError: not all arguments converted during string formatting
- Unable to connect to Azure HDinsight Hive DB using PyHive python
- Release 0.7.0
- PyHive, Presto connector returning wrong resultset HOT 3
- metadata.reflect() not working causing `DESCRIBE default` because of possible bug in get_table_names() HOT 1
- Release of 0.7.1 HOT 1
- UnboundLocalError: local variable 'i' referenced before assignment
- Error connecting to Kerberos using pyHive
- Python 3.11 TTransportException: Could not start SASL: None of the mechanisms listed meet all required properties
- conflict with python12
- how to manually stophive task
- hive.Connection TTransportException
- Hey
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyhive.