12345678910 |
- #!/usr/bin/env python
- # encoding: utf-8
- from pyhive import hive
- from TCLIService.ttypes import TOperationState
- cursor = hive.connect('localhost', 10000).cursor()
- print("connect ok.")
- cursor.execute('select count(*) from userinfo', async = False)
- print cursor.fetchall()
|