httpfs-default.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <!--
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <configuration>
  15. <!-- HttpFSServer Server -->
  16. <property>
  17. <name>httpfs.buffer.size</name>
  18. <value>4096</value>
  19. <description>
  20. The buffer size used by a read/write request when streaming data from/to
  21. HDFS.
  22. </description>
  23. </property>
  24. <!-- HttpFSServer Services -->
  25. <property>
  26. <name>httpfs.services</name>
  27. <value>
  28. org.apache.hadoop.lib.service.instrumentation.InstrumentationService,
  29. org.apache.hadoop.lib.service.scheduler.SchedulerService,
  30. org.apache.hadoop.lib.service.security.GroupsService,
  31. org.apache.hadoop.lib.service.security.ProxyUserService,
  32. org.apache.hadoop.lib.service.hadoop.FileSystemAccessService
  33. </value>
  34. <description>
  35. Services used by the httpfs server.
  36. </description>
  37. </property>
  38. <!-- Kerberos Configuration -->
  39. <property>
  40. <name>kerberos.realm</name>
  41. <value>LOCALHOST</value>
  42. <description>
  43. Kerberos realm, used only if Kerberos authentication is used between
  44. the clients and httpfs or between HttpFS and HDFS.
  45. This property is only used to resolve other properties within this
  46. configuration file.
  47. </description>
  48. </property>
  49. <!-- HttpFSServer Security Configuration -->
  50. <property>
  51. <name>httpfs.hostname</name>
  52. <value>${httpfs.http.hostname}</value>
  53. <description>
  54. Property used to synthetize the HTTP Kerberos principal used by httpfs.
  55. This property is only used to resolve other properties within this
  56. configuration file.
  57. </description>
  58. </property>
  59. <property>
  60. <name>httpfs.authentication.type</name>
  61. <value>simple</value>
  62. <description>
  63. Defines the authentication mechanism used by httpfs for its HTTP clients.
  64. Valid values are 'simple' and 'kerberos'.
  65. If using 'simple' HTTP clients must specify the username with the
  66. 'user.name' query string parameter.
  67. If using 'kerberos' HTTP clients must use HTTP SPNEGO.
  68. </description>
  69. </property>
  70. <property>
  71. <name>httpfs.authentication.kerberos.principal</name>
  72. <value>HTTP/${httpfs.hostname}@${kerberos.realm}</value>
  73. <description>
  74. The HTTP Kerberos principal used by HttpFS in the HTTP endpoint.
  75. The HTTP Kerberos principal MUST start with 'HTTP/' per Kerberos
  76. HTTP SPENGO specification.
  77. </description>
  78. </property>
  79. <property>
  80. <name>httpfs.authentication.kerberos.keytab</name>
  81. <value>${user.home}/httpfs.keytab</value>
  82. <description>
  83. The Kerberos keytab file with the credentials for the
  84. HTTP Kerberos principal used by httpfs in the HTTP endpoint.
  85. </description>
  86. </property>
  87. <!-- HttpFSServer proxy user Configuration -->
  88. <property>
  89. <name>httpfs.proxyuser.#USER#.hosts</name>
  90. <value>*</value>
  91. <description>
  92. List of hosts the '#USER#' user is allowed to perform 'doAs'
  93. operations.
  94. The '#USER#' must be replaced with the username o the user who is
  95. allowed to perform 'doAs' operations.
  96. The value can be the '*' wildcard or a list of hostnames.
  97. For multiple users copy this property and replace the user name
  98. in the property name.
  99. </description>
  100. </property>
  101. <property>
  102. <name>httpfs.proxyuser.#USER#.groups</name>
  103. <value>*</value>
  104. <description>
  105. List of groups the '#USER#' user is allowed to impersonate users
  106. from to perform 'doAs' operations.
  107. The '#USER#' must be replaced with the username o the user who is
  108. allowed to perform 'doAs' operations.
  109. The value can be the '*' wildcard or a list of groups.
  110. For multiple users copy this property and replace the user name
  111. in the property name.
  112. </description>
  113. </property>
  114. <!-- FileSystemAccess Namenode Configuration -->
  115. <property>
  116. <name>namenode.hostname</name>
  117. <value>localhost</value>
  118. <description>
  119. The HDFS Namenode host the httpfs server connects to perform file
  120. system operations.
  121. This property is only used to resolve other properties within this
  122. configuration file.
  123. </description>
  124. </property>
  125. <property>
  126. <name>httpfs.hadoop.conf:fs.default.name</name>
  127. <value>hdfs://${namenode.hostname}:8020</value>
  128. <description>
  129. The HDFS Namenode URI the httpfs server connects to perform file
  130. system operations.
  131. </description>
  132. </property>
  133. <!-- FileSystemAccess Namenode Security Configuration -->
  134. <property>
  135. <name>httpfs.hadoop.authentication.type</name>
  136. <value>simple</value>
  137. <description>
  138. Defines the authentication mechanism used by httpfs to connect to
  139. the HDFS Namenode.
  140. Valid values are 'simple' and 'kerberos'.
  141. </description>
  142. </property>
  143. <property>
  144. <name>httpfs.hadoop.authentication.kerberos.keytab</name>
  145. <value>${user.home}/httpfs.keytab</value>
  146. <description>
  147. The Kerberos keytab file with the credentials for the
  148. Kerberos principal used by httpfs to connect to the HDFS Namenode.
  149. </description>
  150. </property>
  151. <property>
  152. <name>httpfs.hadoop.authentication.kerberos.principal</name>
  153. <value>${user.name}/${httpfs.hostname}@${kerberos.realm}</value>
  154. <description>
  155. The Kerberos principal used by httpfs to connect to the HDFS Namenode.
  156. </description>
  157. </property>
  158. <property>
  159. <name>httpfs.hadoop.conf:dfs.namenode.kerberos.principal</name>
  160. <value>hdfs/${namenode.hostname}@${kerberos.realm}</value>
  161. <description>
  162. The HDFS Namenode Kerberos principal.
  163. </description>
  164. </property>
  165. </configuration>