BDD supports Kerberos 5+ to authenticate its communications with Hadoop. You can enable this for BDD to improve the security of your cluster and data.
Before you can configure Kerberos for BDD, you must install it on your Hadoop cluster. If your Hadoop cluster already uses Kerberos, you must enable it for BDD so it can access the Hive tables it requires.
To enable Kerberos:
Property | Description |
---|---|
KERBEROS_TICKET_REFRESH_INTERVAL | The interval (in minutes) at which the Dgraph's Kerberos ticket is refreshed. For example, if set to 60, it would be refreshed ever 60 minutes, or every hour. |
KERBEROS_TICKET_LIFETIME | The amount of time that the Dgraph's Kerberos ticket is valid. This should be given as a number followed by a supported unit of time: s, m, h, or d. For example, 10h (10 hours), or 10m (10 minutes). |
./bdd-admin.sh publish-config <path>Where <path> is the absolute path to the modified version copy of bdd.conf.
./bdd-admin.sh publish-config kerberos on -k <krb5> -t <keytab> -p <principal>
./bdd-admin.sh publish-config hadoop
./bdd-admin.sh restart [-t <minutes>]
./k5start -f $KERBEROS_KEYTAB_PATH -K $KERBEROS_TICKET_REFRESH_INTERVAL -l $KERBEROS_TICKET_LIFETIME $KERBEROS_PRINCIPAL -b > <logfile> 2>&1Where:
Once Kerberos is enabled, you can use the bdd-admin script to update its configuration as needed. For more information, see kerberos.
Administrator's Guide · Version 1.3.2 · Revision A · October 2016
Copyright © 2015, 2016 Oracle and/or its affiliates. All rights reserved.