Home > other >  Python3 hive database via pyhive connection no error and no any output, what is the problem?
Python3 hive database via pyhive connection no error and no any output, what is the problem?

Time:10-15

Python3 hive database via pyhive connection no error and no any output, the code has been in operation, not end, not an error, no any output data, hive_site. XML in the hive. Server2. The authentication I have NOSASL instead, how be to return a responsibility excuse me? How to solve?
My code is as follows
The from pyhive import hive

Conn=hive. Connection (host='10.1.8.3', the port='10000', the username='app', the database='HIVE_TEST_DB', auth='NOSASL')
Cursor=conn. Cursor ()
Cursor. The execute (' select * from udap_test_hive_table1 LIMIT 10 ')
For the result in cursor. Fetchall () :
Print (result)
Conn. Close ()
  • Related