httpfs-default.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. <property>
  16. <name>hadoop.httpfs.http.port</name>
  17. <value>14000</value>
  18. <description>
  19. The HTTP port for HttpFS REST API.
  20. </description>
  21. </property>
  22. <property>
  23. <name>hadoop.httpfs.http.host</name>
  24. <value>0.0.0.0</value>
  25. <description>
  26. The bind host for HttpFS REST API.
  27. </description>
  28. </property>
  29. <property>
  30. <name>hadoop.httpfs.http.administrators</name>
  31. <value></value>
  32. <description>ACL for the admins, this configuration is used to control
  33. who can access the default servlets for HttpFS server. The value
  34. should be a comma separated list of users and groups. The user list
  35. comes first and is separated by a space followed by the group list,
  36. e.g. "user1,user2 group1,group2". Both users and groups are optional,
  37. so "user1", " group1", "", "user1 group1", "user1,user2 group1,group2"
  38. are all valid (note the leading space in " group1"). '*' grants access
  39. to all users and groups, e.g. '*', '* ' and ' *' are all valid.
  40. </description>
  41. </property>
  42. <property>
  43. <name>hadoop.httpfs.ssl.enabled</name>
  44. <value>false</value>
  45. <description>
  46. Whether SSL is enabled. Default is false, i.e. disabled.
  47. </description>
  48. </property>
  49. <!-- HTTP properties -->
  50. <property>
  51. <name>hadoop.http.max.threads</name>
  52. <value>1000</value>
  53. <description>
  54. The maxmimum number of threads.
  55. </description>
  56. </property>
  57. <property>
  58. <name>hadoop.http.max.request.header.size</name>
  59. <value>65536</value>
  60. <description>
  61. The maxmimum HTTP request header size.
  62. </description>
  63. </property>
  64. <property>
  65. <name>hadoop.http.max.response.header.size</name>
  66. <value>65536</value>
  67. <description>
  68. The maxmimum HTTP response header size.
  69. </description>
  70. </property>
  71. <property>
  72. <name>hadoop.http.temp.dir</name>
  73. <value>${hadoop.tmp.dir}/httpfs</value>
  74. <description>
  75. HttpFS temp directory.
  76. </description>
  77. </property>
  78. <!-- HttpFSServer Server -->
  79. <property>
  80. <name>httpfs.buffer.size</name>
  81. <value>4096</value>
  82. <description>
  83. The buffer size used by a read/write request when streaming data from/to
  84. HDFS.
  85. </description>
  86. </property>
  87. <!-- HttpFSServer Services -->
  88. <property>
  89. <name>httpfs.services</name>
  90. <value>
  91. org.apache.hadoop.lib.service.instrumentation.InstrumentationService,
  92. org.apache.hadoop.lib.service.scheduler.SchedulerService,
  93. org.apache.hadoop.lib.service.security.GroupsService,
  94. org.apache.hadoop.lib.service.hadoop.FileSystemAccessService
  95. </value>
  96. <description>
  97. Services used by the httpfs server.
  98. </description>
  99. </property>
  100. <!-- Kerberos Configuration -->
  101. <property>
  102. <name>kerberos.realm</name>
  103. <value>LOCALHOST</value>
  104. <description>
  105. Kerberos realm, used only if Kerberos authentication is used between
  106. the clients and httpfs or between HttpFS and HDFS.
  107. This property is only used to resolve other properties within this
  108. configuration file.
  109. </description>
  110. </property>
  111. <!-- HttpFSServer Security Configuration -->
  112. <property>
  113. <name>httpfs.hostname</name>
  114. <value>${httpfs.http.hostname}</value>
  115. <description>
  116. Property used to synthetize the HTTP Kerberos principal used by httpfs.
  117. This property is only used to resolve other properties within this
  118. configuration file.
  119. </description>
  120. </property>
  121. <property>
  122. <name>httpfs.authentication.signature.secret.file</name>
  123. <value>${httpfs.config.dir}/httpfs-signature.secret</value>
  124. <description>
  125. File containing the secret to sign HttpFS hadoop-auth cookies.
  126. This file should be readable only by the system user running HttpFS service.
  127. If multiple HttpFS servers are used in a load-balancer/round-robin fashion,
  128. they should share the secret file.
  129. </description>
  130. </property>
  131. <property>
  132. <name>httpfs.authentication.type</name>
  133. <value>simple</value>
  134. <description>
  135. Defines the authentication mechanism used by httpfs for its HTTP clients.
  136. Valid values are 'simple' or 'kerberos'.
  137. If using 'simple' HTTP clients must specify the username with the
  138. 'user.name' query string parameter.
  139. If using 'kerberos' HTTP clients must use HTTP SPNEGO or delegation tokens.
  140. </description>
  141. </property>
  142. <property>
  143. <name>httpfs.authentication.kerberos.principal</name>
  144. <value>HTTP/${httpfs.hostname}@${kerberos.realm}</value>
  145. <description>
  146. The HTTP Kerberos principal used by HttpFS in the HTTP endpoint.
  147. The HTTP Kerberos principal MUST start with 'HTTP/' per Kerberos
  148. HTTP SPNEGO specification.
  149. </description>
  150. </property>
  151. <property>
  152. <name>httpfs.authentication.kerberos.keytab</name>
  153. <value>${user.home}/httpfs.keytab</value>
  154. <description>
  155. The Kerberos keytab file with the credentials for the
  156. HTTP Kerberos principal used by httpfs in the HTTP endpoint.
  157. </description>
  158. </property>
  159. <!-- HttpFSServer proxy user Configuration -->
  160. <!--
  161. The following 2 properties within this comment are provided as an
  162. example to facilitate configuring HttpFS proxyusers.
  163. <property>
  164. <name>httpfs.proxyuser.#USER#.hosts</name>
  165. <value>*</value>
  166. <description>
  167. List of hosts the '#USER#' user is allowed to perform 'doAs'
  168. operations.
  169. The '#USER#' must be replaced with the username o the user who is
  170. allowed to perform 'doAs' operations.
  171. The value can be the '*' wildcard or a list of hostnames.
  172. For multiple users copy this property and replace the user name
  173. in the property name.
  174. </description>
  175. </property>
  176. <property>
  177. <name>httpfs.proxyuser.#USER#.groups</name>
  178. <value>*</value>
  179. <description>
  180. List of groups the '#USER#' user is allowed to impersonate users
  181. from to perform 'doAs' operations.
  182. The '#USER#' must be replaced with the username o the user who is
  183. allowed to perform 'doAs' operations.
  184. The value can be the '*' wildcard or a list of groups.
  185. For multiple users copy this property and replace the user name
  186. in the property name.
  187. </description>
  188. </property>
  189. -->
  190. <!-- HttpFS Delegation Token configuration -->
  191. <property>
  192. <name>httpfs.delegation.token.manager.update.interval</name>
  193. <value>86400</value>
  194. <description>
  195. HttpFS delegation token update interval, default 1 day, in seconds.
  196. </description>
  197. </property>
  198. <property>
  199. <name>httpfs.delegation.token.manager.max.lifetime</name>
  200. <value>604800</value>
  201. <description>
  202. HttpFS delegation token maximum lifetime, default 7 days, in seconds
  203. </description>
  204. </property>
  205. <property>
  206. <name>httpfs.delegation.token.manager.renewal.interval</name>
  207. <value>86400</value>
  208. <description>
  209. HttpFS delegation token update interval, default 1 day, in seconds.
  210. </description>
  211. </property>
  212. <!-- FileSystemAccess Namenode Security Configuration -->
  213. <property>
  214. <name>httpfs.hadoop.authentication.type</name>
  215. <value>simple</value>
  216. <description>
  217. Defines the authentication mechanism used by httpfs to connect to
  218. the HDFS Namenode.
  219. Valid values are 'simple' and 'kerberos'.
  220. </description>
  221. </property>
  222. <property>
  223. <name>httpfs.hadoop.authentication.kerberos.keytab</name>
  224. <value>${user.home}/httpfs.keytab</value>
  225. <description>
  226. The Kerberos keytab file with the credentials for the
  227. Kerberos principal used by httpfs to connect to the HDFS Namenode.
  228. </description>
  229. </property>
  230. <property>
  231. <name>httpfs.hadoop.authentication.kerberos.principal</name>
  232. <value>${user.name}/${httpfs.hostname}@${kerberos.realm}</value>
  233. <description>
  234. The Kerberos principal used by httpfs to connect to the HDFS Namenode.
  235. </description>
  236. </property>
  237. <property>
  238. <name>httpfs.hadoop.filesystem.cache.purge.frequency</name>
  239. <value>60</value>
  240. <description>
  241. Frequency, in seconds, for the idle filesystem purging daemon runs.
  242. </description>
  243. </property>
  244. <property>
  245. <name>httpfs.hadoop.filesystem.cache.purge.timeout</name>
  246. <value>60</value>
  247. <description>
  248. Timeout, in seconds, for an idle filesystem to be purged.
  249. </description>
  250. </property>
  251. </configuration>