python - pyhs2 set queue in query -
i using pyhs2 query hive through python cannot set queue inside query.
i want set queue adhoc
cursor.execute("set mapred.job.queue.name=adhoc;") cursor.execute("select * test") pyhs2.error.pyhs2exception: 'error while processing statement: failed: execution error, return code 1 org.apache.hadoop.hive.ql.exec.mr.mapredtask'
and when try put queue inside query:
cursor.execute("set mapred.job.queue.name=adhoc; select * test")
the second part of query doesn't executed
apparently not possible run multiple statements pyhs2
therefore unable set mapred queue name. pyhs2 no longer maintained , readme advises use pyhive supports these kind of operations.
Comments
Post a Comment