Kerberos
Kerberos is a network authentication protocol that provides a secure way to authenticate clients and servers over an insecure network.
You can use Kerberos to authenticate connections to HDFS.
Install the Remote File Systems plugin
This functionality relies on the plugin, which you need to install and enable.
Press Ctrl+Alt+S to open settings and then select .
Find the Remote File Systems plugin, and click Install. Restart the IDE if prompted.
Use Kerberos to authenticate in HDFS
In the Big Data Tools window, click
and select HDFS. Or, if you want to edit an existing connection, select it and click
.
Open the Kerberos settings: In the Configuration source, select Custom, and, under Authentication, select Kerberos.
If you want to use the Kerberos ticket cache created by the kinit tool, select Use kinit cache.
Otherwise, in the Authentication by list, select the authentication method:
Keytab: enter your Kerberos principal, such as john@EXAMPLE.ORG, and a path to the keytab file.
Password: enter your Kerberos principal, such as john@EXAMPLE.ORG, and the principal password.
JAAS config: specify the path to the JAAS Login Configuration File. IntelliJ IDEA detects JAAS entries in the file, and you can then select the one you want to use for authentication in the JAAS entry list. Alternatively, click Generate JAAS entry to generate a new JAAS entry and add it to the file.
Click IDE Kerberos settings. In the window that opens, in the Krb5 config field, specify your krb5.conf or krb5.ini file or keep the default one.
Enable debug logging
If you have issues with Kerberos authentication, you can enable logging of Kerberos and Java Generic Security Services (JGSS) debug messages. The logs are then available in and .
In the Settings dialog (Ctrl+Alt+S) , go to .
Select the Kerberos debug logging and JGSS debug logging checkboxes.