For keytab to be used need to add hadoop config entry before calling `UserGroupInformation.loginUserFromKeytab` : ``` val conf: Configuration = new Configuration conf.set("hadoop.security.authentication", "Kerberos") ```