| { |
| "services": [ |
| { |
| "name": "HIVE", |
| "identities": [ |
| { |
| "name": "hive_spnego", |
| "reference": "/spnego" |
| }, |
| { |
| "name": "hive_smokeuser", |
| "reference": "/smokeuser" |
| } |
| ], |
| "configurations": [ |
| { |
| "hive-site": { |
| "hive.metastore.sasl.enabled": "true", |
| "hive.server2.authentication": "KERBEROS" |
| } |
| } |
| ], |
| "components": [ |
| { |
| "name": "HIVE_METASTORE", |
| "identities": [ |
| { |
| "name": "hive_metastore_hive", |
| "principal": { |
| "value": "hive/_HOST@${realm}", |
| "type": "service", |
| "configuration": "hive-site/hive.metastore.kerberos.principal", |
| "local_username": "${hive-env/hive_user}" |
| }, |
| "keytab": { |
| "file": "${keytab_dir}/hive.service.keytab", |
| "owner": { |
| "name": "${hive-env/hive_user}", |
| "access": "r" |
| }, |
| "group": { |
| "name": "${cluster-env/user_group}", |
| "access": "" |
| }, |
| "configuration": "hive-site/hive.metastore.kerberos.keytab.file" |
| } |
| } |
| ] |
| }, |
| { |
| "name": "HIVE_SERVER", |
| "identities": [ |
| { |
| "name": "hive_hive_server_hdfs", |
| "reference": "/HDFS/NAMENODE/hdfs" |
| }, |
| { |
| "name": "hive_server_hive", |
| "principal": { |
| "value": "hive/_HOST@${realm}", |
| "type": "service", |
| "configuration": "hive-site/hive.server2.authentication.kerberos.principal", |
| "local_username": "${hive-env/hive_user}" |
| }, |
| "keytab": { |
| "file": "${keytab_dir}/hive.service.keytab", |
| "owner": { |
| "name": "${hive-env/hive_user}", |
| "access": "r" |
| }, |
| "group": { |
| "name": "${cluster-env/user_group}", |
| "access": "" |
| }, |
| "configuration": "hive-site/hive.server2.authentication.kerberos.keytab" |
| } |
| }, |
| { |
| "name": "hive_hive_server_spnego", |
| "reference": "/spnego", |
| "principal": { |
| "configuration": "hive-site/hive.server2.authentication.spnego.principal" |
| }, |
| "keytab": { |
| "configuration": "hive-site/hive.server2.authentication.spnego.keytab" |
| } |
| } |
| ] |
| }, |
| { |
| "name": "WEBHCAT_SERVER", |
| "identities": [ |
| { |
| "name": "hive_webhcat_server_spnego", |
| "reference": "/spnego", |
| "principal": { |
| "configuration": "webhcat-site/templeton.kerberos.principal" |
| }, |
| "keytab": { |
| "configuration": "webhcat-site/templeton.kerberos.keytab" |
| } |
| } |
| ], |
| "configurations": [ |
| { |
| "core-site": { |
| "hadoop.proxyuser.HTTP.hosts": "${clusterHostInfo/webhcat_server_host|append(core-site/hadoop.proxyuser.HTTP.hosts, \\\\,, true)}" |
| } |
| }, |
| { |
| "webhcat-site": { |
| "templeton.kerberos.secret": "secret", |
| "templeton.hive.properties": "hive.metastore.local=false,hive.metastore.uris=${clusterHostInfo/hive_metastore_host|each(thrift://%s:9083, \\\\,, \\s*\\,\\s*)},hive.metastore.sasl.enabled=true,hive.metastore.execute.setugi=true,hive.metastore.warehouse.dir=/apps/hive/warehouse,hive.exec.mode.local.auto=false,hive.metastore.kerberos.principal=hive/_HOST@${realm}" |
| } |
| } |
| ] |
| } |
| ] |
| } |
| ] |
| } |