public class YarnQueueHelper extends Object
| Constructor and Description |
|---|
YarnQueueHelper(HiveConf conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkQueueAccess(String queueName,
String userName)
Checks yarn queue access of a given user for a given queue, and throws
HiveException in case the user doesn't have access to the queue.
|
String |
handleUnexpectedStatusCode(HttpURLConnection connection,
int statusCode,
String errorStr) |
public YarnQueueHelper(HiveConf conf)
public void checkQueueAccess(String queueName, String userName) throws IOException
queueName - the yarn queue nameuserName - the usernameIOException - when doAs throws an exception, we simply throw it
InterruptedException when doAs throws an exception, we simply throw itpublic String handleUnexpectedStatusCode(HttpURLConnection connection, int statusCode, String errorStr) throws IOException
IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.