Package org.apache.storm.hive.common
Class HiveUtils
java.lang.Object
org.apache.storm.hive.common.HiveUtils
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
Constructor Details
-
HiveUtils
public HiveUtils()
-
-
Method Details
-
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) -
isTokenAuthEnabled
-