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