- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to assign the query to YARN Queue, while accessing hive through beeline
- Labels:
-
Apache Hive
-
Apache YARN
Created ‎11-02-2018 09:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎11-02-2018 09:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are using tez engine:
beeline !connect jdbc:hive2://your.host:your.port/data_base?tez.queue.name=<queue-name>
If you are using MR execution engine:
beeline !connect jdbc:hive2://your.host:your.port/data_base?mapred.job.queue.name=your_queue_name
Created ‎11-02-2018 09:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are using tez engine:
beeline !connect jdbc:hive2://your.host:your.port/data_base?tez.queue.name=<queue-name>
If you are using MR execution engine:
beeline !connect jdbc:hive2://your.host:your.port/data_base?mapred.job.queue.name=your_queue_name
Created on ‎11-02-2018 11:56 AM - edited ‎08-17-2019 04:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks so much.
One more scenario:
If different business users are accessing hive with different user name from same server. Is it possible when user logins into server and can users query be assigned to predefined queue automatically??
Scenario as Below:
Thanks in advance
Created ‎11-02-2018 12:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@kotesh banoth, In this case you can configure yarn queue mapping, This applies to all the applications user is submitting (not only hive/beeline) by default without mentioning the queue name while submitting the app will be submitted to the mapped queue.
Hope this helps.
Created ‎11-03-2018 01:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@kotesh banoth Feel free to accept this answer if it helped you.
Created ‎11-05-2018 04:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Sandeep Nemuri Thanks
Created ‎09-03-2019 05:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
0: jdbc:mysql://hdp1.demo.lab/hive> set mapred.job.queue.name=root.admin;
Error: Unknown system variable 'job' (state=HY000,code=1193)
0: jdbc:mysql://hdp1.demo.lab/hive> set tez.queue.name=root.admin;
Error: Unknown system variable 'queue' (state=HY000,code=1193)
0: jdbc:mysql://hdp1.demo.lab/hive> SET tez.queue.name=root.admin;
Error: Unknown system variable 'queue' (state=HY000,code=1193)
0: jdbc:mysql://hdp1.demo.lab/hive> SET TEZ.QUEUE.NAME=ROOT.ADMIN
0: jdbc:mysql://hdp1.demo.lab/hive> SET TEZ.QUEUE.NAME=ROOT.ADMIN;
Error: Unknown system variable 'QUEUE' (state=HY000,code=1193)
0: jdbc:mysql://hdp1.demo.lab/hive> set TEZ.queue.name=root.admin;
Error: Unknown system variable 'queue' (state=HY000,code=1193)
0: jdbc:mysql://hdp1.demo.lab/hive> SET tez.queue.name=ROOT.ADMIN;
Error: Unknown system variable 'queue' (state=HY000,code=1193)
0: jdbc:mysql://hdp1.demo.lab/hive> SET tez.queue.name=admin;
Error: Unknown system variable 'queue' (state=HY000,code=1193)
0: jdbc:mysql://hdp1.demo.lab/hive> SET tez.job.queue.name=admin;
Error: Unknown system variable 'job' (state=HY000,code=1193)
0: jdbc:mysql://hdp1.demo.lab/hive>
Created ‎04-10-2019 12:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I have a query here.
How to assign a seperate yarn queue when i submit query for hive-hbase integration table ?
By default it goes to default queue.
Appreciate your help please.
thanks,
Rishit Shah
