Description
From work of https://issues.apache.org/jira/browse/IMPALA-7504, we want to use krb5_parse_name() to parse the principal instead of creating our own.
As src/kudu/security/init.cc already have g_krb5_ctx initialized, we want to leverage the code in KUDU, and create a wrap up function which can be called from IMPALA
Krb5parseName(const string& principal, string* service_name,
string* hostname, string* realm)