add default value for the principals and fix the key name for hive