Client-less data retrieval from Hive.
Project description
hivehoney
Extract data from remote Hive to local Windows OS (without Hadoop client).
The most difficult part was figuring out expect+pbrun.
Because there are 2 interactive questions I had to pause after password.
Mode expect+pbrun details are here: https://github.com/hive-scripts/hivehoney/blob/master/expect_pbrun_howto.md
Data access path.
Windows desktop->
SSH->
Linux login->
pbrun service login->
kinit
beeline->
SQL->
save echo on Windows
Run it like this:
set PROXY_HOST=your_bastion_host
set SERVICE_USER=you_func_user
set LINUX_USER=your_SOID
set LINUX_PWD=your_pwd
python hh.py --query_file=query.sql
query.sql
select * from gfocnnsg_work.pytest LIMIT 1000000;
Result:
TOTAL BYTES: 60000127
Elaplsed: 79.637 s
exit status: 0
0
[]
TOTAL Elaplsed: 99.060 s
data_dump.csv
c:\tmp>dir data_dump.csv
Directory of c:\tmp
09/04/2018 12:53 PM 60,000,075 data_dump.csv
1 File(s) 60,000,075 bytes
0 Dir(s) 321,822,720 bytes free
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hivehoney-1.0.4.tar.gz.
File metadata
- Download URL: hivehoney-1.0.4.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.21.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78e622ac929070b2c3f082af974e88f6252d04e5a18a4970567c5ae58c62facd
|
|
| MD5 |
15d191d003624b808381b0d673cf9ab9
|
|
| BLAKE2b-256 |
a5d97cfcd1c2f805e6d54125ebe203fa05f0f79d0c905dafa2c98597d13e34af
|
File details
Details for the file hivehoney-1.0.4-py2.py3-none-any.whl.
File metadata
- Download URL: hivehoney-1.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.21.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3770b5578cd29840d4dcd67fbef05ad47738e284056adeea1c8f992316ccca3
|
|
| MD5 |
66e830ee01c3171081bd8e703d88214b
|
|
| BLAKE2b-256 |
f084133b07be4efb30ce124c6aaf6b1bd9cb1b7160a38b696b22ff72549dedd6
|