Package org.apache.storm.hive.common
Class HiveUtils
- java.lang.Object
-
- org.apache.storm.hive.common.HiveUtils
-
public class HiveUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHiveUtils.AuthenticationFailed
-
Constructor Summary
Constructors Constructor Description HiveUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.hadoop.security.UserGroupInformationauthenticate(boolean isTokenAuthEnabled, String keytab, String principal)static booleanisTokenAuthEnabled(Map<String,Object> conf)static voidlogAllHiveEndPoints(Map<org.apache.hive.hcatalog.streaming.HiveEndPoint,HiveWriter> allWriters)static org.apache.hive.hcatalog.streaming.HiveEndPointmakeEndPoint(List<String> partitionVals, HiveOptions options)static HiveWritermakeHiveWriter(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint, ExecutorService callTimeoutPool, org.apache.hadoop.security.UserGroupInformation ugi, HiveOptions options, boolean tokenAuthEnabled)
-
-
-
Method Detail
-
makeEndPoint
public static org.apache.hive.hcatalog.streaming.HiveEndPoint makeEndPoint(List<String> partitionVals, HiveOptions options) throws org.apache.hive.hcatalog.streaming.ConnectionError
- Throws:
org.apache.hive.hcatalog.streaming.ConnectionError
-
makeHiveWriter
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
-
authenticate
public static org.apache.hadoop.security.UserGroupInformation authenticate(boolean isTokenAuthEnabled, String keytab, String principal) throws HiveUtils.AuthenticationFailed- Throws:
HiveUtils.AuthenticationFailed
-
logAllHiveEndPoints
public static void logAllHiveEndPoints(Map<org.apache.hive.hcatalog.streaming.HiveEndPoint,HiveWriter> allWriters)
-
-