public class KerberosAuthentication extends Object
| Constructor and Description |
|---|
KerberosAuthentication(org.apache.hadoop.conf.Configuration configuration,
String username,
String keyTabFileLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
loginWithKeytab()
In order to connect to a hadoop cluster using Kerberos you need to add your own filesystem to the cache of the
FileSystem component.
|
public KerberosAuthentication(org.apache.hadoop.conf.Configuration configuration,
String username,
String keyTabFileLocation)
configuration - - hdfs configurationusername - - Principal used to authenticate to the kerberos serverkeyTabFileLocation - - keyTab file locationpublic void loginWithKeytab()
throws IOException
IOException - - In case of errorApache Camel