read the namenode and hive metastore principal names
add the namenode and hive metastore principals to the config