You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- ``pip install 'pyhive[hive]'`` for the Hive interface and
112
-
- ``pip install 'pyhive[presto]'`` for the Presto interface.
139
+
- ``pip install 'pyhive[hive]'`` or ``pip install 'pyhive[hive_pure_sasl]'`` for the Hive interface
140
+
- ``pip install 'pyhive[presto]'`` for the Presto interface
113
141
- ``pip install 'pyhive[trino]'`` for the Trino interface
114
142
143
+
Note: ``'pyhive[hive]'`` extras uses `sasl <https://pypi.org/project/sasl/>`_ that doesn't support Python 3.11, See `github issue <https://github.com/cloudera/python-sasl/issues/30>`_.
144
+
Hence PyHive also supports `pure-sasl <https://pypi.org/project/pure-sasl/>`_ via additional extras ``'pyhive[hive_pure_sasl]'`` which support Python 3.11.
145
+
115
146
PyHive works with
116
147
117
148
- Python 2.7 / Python 3
118
-
- For Presto: Presto install
119
-
- For Trino: Trino install
149
+
- For Presto: `Presto installation <https://prestodb.io/docs/current/installation.html>`_
150
+
- For Trino: `Trino installation <https://trino.io/docs/current/installation.html>`_
120
151
- For Hive: `HiveServer2 <https://cwiki.apache.org/confluence/display/Hive/Setting+up+HiveServer2>`_ daemon
121
152
122
153
Changelog
123
-
=========
154
+
*********
124
155
See https://github.com/dropbox/PyHive/releases.
125
156
126
157
Contributing
127
-
============
158
+
************
128
159
- Please fill out the Dropbox Contributor License Agreement at https://opensource.dropbox.com/cla/ and note this in your pull request.
129
160
- Changes must come with tests, with the exception of trivial things like fixing comments. See .travis.yml for the test environment setup.
130
161
- Notes on project scope:
@@ -134,8 +165,28 @@ Contributing
134
165
- We prefer having a small number of generic features over a large number of specialized, inflexible features.
135
166
For example, the Presto code takes an arbitrary ``requests_session`` argument for customizing HTTP calls, as opposed to having a separate parameter/branch for each ``requests`` option.
136
167
168
+
Tips for test environment setup
169
+
****************************************
170
+
You can setup test environment by following ``.travis.yaml`` in this repository. It uses `Cloudera's CDH 5 <https://docs.cloudera.com/documentation/enterprise/release-notes/topics/cdh_vd_cdh_download_510.html>`_ which requires username and password for download.
171
+
It may not be feasible for everyone to get those credentials. Hence below are alternative instructions to setup test environment.
172
+
173
+
You can clone `this repository <https://github.com/big-data-europe/docker-hive/blob/master/docker-compose.yml>`_ which has Docker Compose setup for Presto and Hive.
174
+
You can add below lines to its docker-compose.yaml to start Trino in same environment::
175
+
176
+
trino:
177
+
image: trinodb/trino:351
178
+
ports:
179
+
- "18080:18080"
180
+
volumes:
181
+
- ./trino:/etc/trino
182
+
183
+
Note: ``./trino`` for docker volume defined above is `trino config from PyHive repository <https://github.com/dropbox/PyHive/tree/master/scripts/travis-conf/trino>`_
0 commit comments