hadoop - Using krb5 API to get credential and use it to access secure HDFS -
so problem access kerberos secured hdfs, using c++, given keytab. somehow must use krb5 apis , keytab authenticate program , furthur access hdfs. so example, if use krb5_get_init_creds_keytab credentials, krb5_creds. use jni access hdfs. however, i didn't find way use krb5_creds access hdfs. what know far: usergroupinformation can read kerberos key cach on filesystem. don't want have key cash on file system. directly use krb5_creds function call i looked libhdfs -> hdfs.c -> hdfsbuilderconnect, don't see authenticate user using keytab. seems me libhdfs subset of api of hdfs. any suggestions?