Questions tagged [pyhive]

107 questions
0
votes
2 answers

Parameters substitution when executing Hive scripts from Python

I have to execute the following query against Hive from Python: SELECT * FROM user WHERE age > ${hiveconf:AGE} As for now I have the following working code snippet: import pyhs2 with pyhs2.connect(host='localhost', port=60850, …
Aliaxander
  • 2,547
  • 4
  • 20
  • 45
0
votes
1 answer

Access a Hive table using `PyHive` with numbers on the beginning of the table name gives error

I'm using PyHive to access my Hive server: # Connection parameters hive_host = "server.redecorp.com" hive_port = 10000 hive_options = {'job.queue.name': 'myqueue'} connection = hive.Connection(host=hive_host, port=hive_port,…
Ivan
  • 19,560
  • 31
  • 97
  • 141
1 2 3 4 5 6 7
8