Class KerberosAuthentication
- java.lang.Object
-
- org.apache.camel.component.hdfs.kerberos.KerberosAuthentication
-
public class KerberosAuthentication extends Object
-
-
Constructor Summary
Constructors Constructor Description KerberosAuthentication(org.apache.hadoop.conf.Configuration configuration, String username, String keyTabFileLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
KerberosAuthentication
public KerberosAuthentication(org.apache.hadoop.conf.Configuration configuration, String username, String keyTabFileLocation)
- Parameters:
configuration
- - hdfs configurationusername
- - Principal used to authenticate to the kerberos serverkeyTabFileLocation
- - keyTab file location
-
-
Method Detail
-
loginWithKeytab
public void loginWithKeytab() throws IOException
In order to connect to a hadoop cluster using Kerberos you need to add your own filesystem to the cache of the FileSystem component. This is done by setting the uri that you use in your camel route as the URI that is used to setup the connection. The URI is used as key when adding it to the cache (default functionality of the static FileSystem.get(URI, Configuration) method).- Throws:
IOException
- - In case of error
-
-