stack_descriptors.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. module.exports = {
  19. "properties": {
  20. "realm": "${cluster-env/kerberos_domain}",
  21. "keytab_dir": "/etc/security/keytabs"
  22. },
  23. "identities": [
  24. {
  25. "name": "spnego",
  26. "principal": {
  27. "value": "HTTP/_HOST@${realm}"
  28. },
  29. "keytab": {
  30. "file": "${keytab_dir}/spnego.service.keytab",
  31. "owner": {
  32. "name": "root",
  33. "access": "r"
  34. },
  35. "group": {
  36. "name": "${cluster-env/user_group}",
  37. "access": "r"
  38. }
  39. }
  40. }
  41. ],
  42. "configurations": [
  43. {
  44. "core-site": {
  45. "hadoop.security.authentication": "kerberos",
  46. "hadoop.rpc.protection": "authentication; integrity; privacy",
  47. "hadoop.security.authorization": "true"
  48. }
  49. }
  50. ],
  51. "services": [
  52. {
  53. "name": "HDFS",
  54. "components": [
  55. {
  56. "name": "NAMENODE",
  57. "identities": [
  58. {
  59. "name": "namenode_nn",
  60. "principal": {
  61. "value": "nn/_HOST@${realm}",
  62. "configuration": "hdfs-site/dfs.namenode.kerberos.principal"
  63. },
  64. "keytab": {
  65. "file": "${keytab_dir}/nn.service.keytab",
  66. "owner": {
  67. "name": "${hadoop-env/hdfs_user}",
  68. "access": "r"
  69. },
  70. "group": {
  71. "name": "${cluster-env/user_group}",
  72. "access": ""
  73. },
  74. "configuration": "hdfs-site/dfs.namenode.keytab.file"
  75. }
  76. },
  77. {
  78. "name": "namenode_host",
  79. "principal": {
  80. "value": "host/_HOST@${realm}",
  81. "configuration": "hdfs-site/dfs.namenode.kerberos.https.principal"
  82. },
  83. "keytab": {
  84. "file": "${keytab_dir}/host.keytab",
  85. "owner": {
  86. "name": "${hadoop-env/hdfs_user}",
  87. "access": "r"
  88. },
  89. "group": {
  90. "name": "${cluster-env/user_group}",
  91. "access": ""
  92. },
  93. "configuration": "hdfs-site/dfs.namenode.keytab.file"
  94. }
  95. },
  96. {
  97. "name": "/spnego",
  98. "principal": {
  99. "configuration": "hdfs-site/dfs.web.authentication.kerberos.principal"
  100. },
  101. "keytab": {
  102. "configuration": "hdfs/dfs.web.authentication.kerberos.keytab"
  103. }
  104. }
  105. ]
  106. },
  107. {
  108. "name": "DATANODE",
  109. "identities": [
  110. {
  111. "name": "datanode_dn",
  112. "principal": {
  113. "value": "dn/_HOST@${realm}",
  114. "configuration": "hdfs-site/dfs.namenode.kerberos.principal"
  115. },
  116. "keytab": {
  117. "file": "${keytab_dir}/dn.service.keytab",
  118. "owner": {
  119. "name": "${hadoop-env/hdfs_user}",
  120. "access": "r"
  121. },
  122. "group": {
  123. "name": "${cluster-env/user_group}",
  124. "access": ""
  125. },
  126. "configuration": "hdfs-site/dfs.namenode.keytab.file"
  127. }
  128. },
  129. {
  130. "name": "datanode_host",
  131. "principal": {
  132. "value": "host/_HOST@${realm}",
  133. "configuration": "hdfs-site/dfs.datanode.kerberos.https.principal"
  134. },
  135. "keytab": {
  136. "file": "${keytab_dir}/host.keytab.file",
  137. "owner": {
  138. "name": "${hadoop-env/hdfs_user}",
  139. "access": "r"
  140. },
  141. "group": {
  142. "name": "${cluster-env/user_group}",
  143. "access": ""
  144. },
  145. "configuration": "hdfs-site/dfs.namenode.secondary.keytab.file"
  146. }
  147. }
  148. ]
  149. },
  150. {
  151. "name": "SECONDARY_NAMENODE",
  152. "identities": [
  153. {
  154. "name": "secondary_namenode_nn",
  155. "principal": {
  156. "value": "nn/_HOST@${realm}",
  157. "configuration": "hdfs-site/dfs.namenode.secondary.kerberos.principal"
  158. },
  159. "keytab": {
  160. "file": "${keytab_dir}/snn.service.keytab",
  161. "owner": {
  162. "name": "${hadoop-env/hdfs_user}",
  163. "access": "r"
  164. },
  165. "group": {
  166. "name": "${cluster-env/user_group}",
  167. "access": ""
  168. },
  169. "configuration": "hdfs-site/dfs.namenode.secondary.keytab.file"
  170. }
  171. },
  172. {
  173. "name": "secondary_namenode_host",
  174. "principal": {
  175. "value": "host/_HOST@${realm}",
  176. "configuration": "hdfs-site/dfs.namenode.secondary.kerberos.https.principal"
  177. },
  178. "keytab": {
  179. "file": "${keytab_dir}/host.keytab.file",
  180. "owner": {
  181. "name": "${hadoop-env/hdfs_user}",
  182. "access": "r"
  183. },
  184. "group": {
  185. "name": "${cluster-env/user_group}",
  186. "access": ""
  187. },
  188. "configuration": "hdfs-site/dfs.namenode.secondary.keytab.file"
  189. }
  190. },
  191. {
  192. "name": "/spnego",
  193. "principal": {
  194. "configuration": "hdfs-site/dfs.web.authentication.kerberos.principal"
  195. },
  196. "keytab": {
  197. "configuration": "hdfs/dfs.web.authentication.kerberos.keytab"
  198. }
  199. }
  200. ]
  201. }
  202. ]
  203. }
  204. ]
  205. };