Class KerberosAuthentication
java.lang.Object
org.apache.camel.component.hdfs.kerberos.KerberosAuthentication
-
Constructor Summary
ConstructorsConstructorDescriptionKerberosAuthentication(org.apache.hadoop.conf.Configuration configuration, String username, String keyTabFileLocation) -
Method Summary
Modifier and TypeMethodDescriptionvoidIn order to connect to a hadoop cluster using Kerberos you need to add your own filesystem to the cache of the FileSystem component.
-
Constructor Details
-
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 Details
-
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. 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
-