Using Kerberos authentication with Sqoop 

Sqoop can use Kerberos user authentication when connecting to DataStax Enterprise nodes.

Sqoop can use Kerberos user authentication when connecting to DataStax Enterprise nodes.

Prerequisites

Procedure

  1. On the machine running Sqoop, create a ticket for the Kerberos principal.
    $ kinit principal_name

    Enter the principal's password when prompted.

  2. Create a JAAS configuration file to enable Kerberos for DataStax Enterprise.
    DseClient {
        com.sun.security.auth.module.Krb5LoginModule required
        useTicketCache=true
        renewTGT=true;
    };
  3. In a Sqoop options file, add the Kerberos configuration options that are customized for your environment:
    --cassandra-host
    FQDN_of_Cassandra_host
    --cassandra-enable-kerberos
    --cassandra-kerberos-config-path
    JAAS_configuration_filepath
    --cassandra-kerberos-service-principal
    principal_name/HOST@REALM
  4. Run Sqoop with the options file.
    $ bin/dse sqoop --options-file path_to_Sqoop_options_file