public class CommonUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getHdfsDataBasePath()
get data hdfs path
|
static String |
getHdfsTenantDir(String tenantCode) |
static String |
getHdfsUdfDir(String tenantCode)
hdfs udf dir
|
static boolean |
getKerberosStartupState()
if upload resource is HDFS and kerberos startup is true , else false
|
static boolean |
loadKerberosConf(org.apache.hadoop.conf.Configuration configuration)
load kerberos configuration
|
static void |
loadKerberosConf(String javaSecurityKrb5Conf,
String loginUserKeytabUsername,
String loginUserKeytabPath)
load kerberos configuration
|
static boolean |
loadKerberosConf(String javaSecurityKrb5Conf,
String loginUserKeytabUsername,
String loginUserKeytabPath,
org.apache.hadoop.conf.Configuration configuration)
load kerberos configuration
|
public static boolean getKerberosStartupState()
public static boolean loadKerberosConf(org.apache.hadoop.conf.Configuration configuration)
throws IOException
configuration - IOException - errorspublic static void loadKerberosConf(String javaSecurityKrb5Conf, String loginUserKeytabUsername, String loginUserKeytabPath) throws IOException
javaSecurityKrb5Conf - javaSecurityKrb5ConfloginUserKeytabUsername - loginUserKeytabUsernameloginUserKeytabPath - loginUserKeytabPathIOException - errorspublic static boolean loadKerberosConf(String javaSecurityKrb5Conf, String loginUserKeytabUsername, String loginUserKeytabPath, org.apache.hadoop.conf.Configuration configuration) throws IOException
javaSecurityKrb5Conf - javaSecurityKrb5ConfloginUserKeytabUsername - loginUserKeytabUsernameloginUserKeytabPath - loginUserKeytabPathconfiguration - configurationIOException - errorspublic static String getHdfsUdfDir(String tenantCode)
tenantCode - tenant codepublic static String getHdfsTenantDir(String tenantCode)
tenantCode - tenant codepublic static String getHdfsDataBasePath()
Copyright © 2022 The Apache Software Foundation. All rights reserved.