-
Notifications
You must be signed in to change notification settings - Fork 3
/
libhdfs3-hdfs-client.xml
308 lines (268 loc) · 8.95 KB
/
libhdfs3-hdfs-client.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<?xml version="1.0" encoding="UTF-8"?>
<!-- Licensed to the Apache Software Foundation (ASF) under one -->
<!-- or more contributor license agreements. See the NOTICE file -->
<!-- distributed with this work for additional information -->
<!-- regarding copyright ownership. The ASF licenses this file -->
<!-- to you under the Apache License, Version 2.0 (the -->
<!-- "License"); you may not use this file except in compliance -->
<!-- with the License. You may obtain a copy of the License at -->
<!-- http:#www.apache.org/licenses/LICENSE-2.0 -->
<!-- Unless required by applicable law or agreed to in writing, -->
<!-- software distributed under the License is distributed on an -->
<!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
<!-- KIND, either express or implied. See the License for the -->
<!-- specific language governing permissions and limitations -->
<!-- under the License. -->
<!-- From https://github.com/wesm/arrow-io-test/blob/master/libhdfs3-hdfs-client.xml -->
<configuration>
<!-- HA configuration
<property>
<name>dfs.nameservices</name>
<value>phdcluster</value>
</property>
<property>
<name>dfs.ha.namenodes.phdcluster</name>
<value>nn1,nn2</value>
</property>
<property>
<name>dfs.namenode.rpc-address.phdcluster.nn1</name>
<value>mdw:9000</value>
</property>
<property>
<name>dfs.namenode.rpc-address.phdcluster.nn2</name>
<value>smdw:9000</value>
</property>
<property>
<name>dfs.namenode.http-address.phdcluster.nn1</name>
<value>mdw:50070</value>
</property>
<property>
<name>dfs.namenode.http-address.phdcluster.nn2</name>
<value>smdw:50070</value>
</property>
HA -->
<!-- RPC client configuration -->
<property>
<name>hadoop.security.authentication</name>
<value>simple</value>
<description>
the RPC authentication method, valid values include "simple" or "kerberos". default is "simple"
</description>
</property>
<property>
<name>rpc.client.timeout</name>
<value>3600000</value>
<description>
timeout interval of a RPC invocation in millisecond. default is 3600000.
</description>
</property>
<property>
<name>rpc.client.connect.tcpnodelay</name>
<value>true</value>
<description>
whether set socket TCP_NODELAY to true when connect to RPC server. default is true.
</description>
</property>
<property>
<name>rpc.client.max.idle</name>
<value>10000</value>
<description>
the max idle time of a RPC connection in millisecond. default is 10000.
</description>
</property>
<property>
<name>rpc.client.ping.interval</name>
<value>10000</value>
<description>
the interval which the RPC client send a heart beat to server. 0 means disable, default is 10000.
</description>
</property>
<property>
<name>rpc.client.connect.timeout</name>
<value>600000</value>
<description>
the timeout interval in millisecond when the RPC client is trying to setup the connection. default is 600000.
</description>
</property>
<property>
<name>rpc.client.connect.retry</name>
<value>10</value>
<description>
the max retry times if the RPC client fail to setup the connection to server. default is 10.
</description>
</property>
<property>
<name>rpc.client.read.timeout</name>
<value>3600000</value>
<description>
the timeout interval in millisecond when the RPC client is trying to read from server. default is 3600000.
</description>
</property>
<property>
<name>rpc.client.write.timeout</name>
<value>3600000</value>
<description>
the timeout interval in millisecond when the RPC client is trying to write to server. default is 3600000.
</description>
</property>
<property>
<name>rpc.client.socket.linger.timeout</name>
<value>-1</value>
<description>
set value to socket SO_LINGER when connect to RPC server. -1 means default OS value. default is -1.
</description>
</property>
<!-- dfs client configuration -->
<property>
<name>dfs.client.read.shortcircuit</name>
<value>false</value>
<description>
whether reading block file bypass datanode if the block and the client are
on the same node. default is true.
</description>
</property>
<property>
<name>dfs.default.replica</name>
<value>1</value>
<description>
the default number of replica. default is 3.
</description>
</property>
<property>
<name>dfs.prefetchsize</name>
<value>10</value>
<description>
the default number of blocks which information will be prefetched. default is 10.
</description>
</property>
<property>
<name>dfs.client.failover.max.attempts</name>
<value>15</value>
<description>
if multiply namenodes are configured, it is the max retry times when the dfs client try to issue a RPC call. default is 15.
</description>
</property>
<property>
<name>dfs.default.blocksize</name>
<value>67108864</value>
<description>
default block size. default is 67108864.
</description>
</property>
<property>
<name>dfs.client.log.severity</name>
<value>INFO</value>
<description>
the minimal log severity level, valid values include FATAL, ERROR, INFO, DEBUG1, DEBUG2, DEBUG3. default is INFO.
</description>
</property>
<!-- input client configuration -->
<property>
<name>input.connect.timeout</name>
<value>600000</value>
<description>
the timeout interval in millisecond when the input stream is trying to setup the connection to datanode. default is 600000.
</description>
</property>
<property>
<name>input.read.timeout</name>
<value>3600000</value>
<description>
the timeout interval in millisecond when the input stream is trying to read from datanode. default is 3600000.
</description>
</property>
<property>
<name>input.write.timeout</name>
<value>3600000</value>
<description>
the timeout interval in millisecond when the input stream is trying to write to datanode. default is 3600000.
</description>
</property>
<property>
<name>input.localread.default.buffersize</name>
<value>1048576</value>
<description>
number of bytes of the buffer which is used to hold the data from block file and verify checksum.
it is only used when "dfs.client.read.shortcircuit" is set to true. default is 1048576.
</description>
</property>
<property>
<name>input.localread.blockinfo.cachesize</name>
<value>1000</value>
<description>
the size of block file path information cache. default is 1000.
</description>
</property>
<property>
<name>input.read.getblockinfo.retry</name>
<value>3</value>
<description>
the max retry times when the client fail to get block information from namenode. default is 3.
</description>
</property>
<!-- output client configuration -->
<property>
<name>output.replace-datanode-on-failure</name>
<value>false</value>
<description>
whether the client add new datanode into pipeline if the number of nodes in
pipeline is less the specified number of replicas. default is true.
</description>
</property>
<property>
<name>output.default.chunksize</name>
<value>512</value>
<description>
the number of bytes of a chunk in pipeline. default is 512.
</description>
</property>
<property>
<name>output.default.packetsize</name>
<value>65536</value>
<description>
the number of bytes of a packet in pipeline. default is 65536.
</description>
</property>
<property>
<name>output.default.write.retry</name>
<value>10</value>
<description>
the max retry times when the client fail to setup the pipeline. default is 10.
</description>
</property>
<property>
<name>output.connect.timeout</name>
<value>600000</value>
<description>
the timeout interval in millisecond when the output stream is trying to setup the connection to datanode. default is 600000.
</description>
</property>
<property>
<name>output.read.timeout</name>
<value>3600000</value>
<description>
the timeout interval in millisecond when the output stream is trying to read from datanode. default is 3600000.
</description>
</property>
<property>
<name>output.write.timeout</name>
<value>3600000</value>
<description>
the timeout interval in millisecond when the output stream is trying to write to datanode. default is 3600000.
</description>
</property>
<property>
<name>output.packetpool.size</name>
<value>1024</value>
<description>
the max number of packets in a file's packet pool. default is 1024.
</description>
</property>
<property>
<name>output.close.timeout</name>
<value>900000</value>
<description>
the timeout interval in millisecond when close an output stream. default is 900000.
</description>
</property>
</configuration>