public class HiveUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HiveUtils.AuthenticationFailed |
Constructor and Description |
---|
HiveUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.security.UserGroupInformation |
authenticate(boolean isTokenAuthEnabled,
String keytab,
String principal) |
static boolean |
isTokenAuthEnabled(Map<String,Object> conf) |
static void |
logAllHiveEndPoints(Map<org.apache.hive.hcatalog.streaming.HiveEndPoint,HiveWriter> allWriters) |
static org.apache.hive.hcatalog.streaming.HiveEndPoint |
makeEndPoint(List<String> partitionVals,
HiveOptions options) |
static HiveWriter |
makeHiveWriter(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint,
ExecutorService callTimeoutPool,
org.apache.hadoop.security.UserGroupInformation ugi,
HiveOptions options,
boolean tokenAuthEnabled) |
public static org.apache.hive.hcatalog.streaming.HiveEndPoint makeEndPoint(List<String> partitionVals, HiveOptions options) throws org.apache.hive.hcatalog.streaming.ConnectionError
org.apache.hive.hcatalog.streaming.ConnectionError
public static HiveWriter makeHiveWriter(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint, ExecutorService callTimeoutPool, org.apache.hadoop.security.UserGroupInformation ugi, HiveOptions options, boolean tokenAuthEnabled) throws HiveWriter.ConnectFailure, InterruptedException
public static org.apache.hadoop.security.UserGroupInformation authenticate(boolean isTokenAuthEnabled, String keytab, String principal) throws HiveUtils.AuthenticationFailed
HiveUtils.AuthenticationFailed
public static void logAllHiveEndPoints(Map<org.apache.hive.hcatalog.streaming.HiveEndPoint,HiveWriter> allWriters)
Copyright © 2020 The Apache Software Foundation. All rights reserved.