forked from logicalclocks/hops-hadoop-chef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.rb
executable file
·418 lines (327 loc) · 14.9 KB
/
metadata.rb
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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
name "hops"
maintainer "Jim Dowling"
maintainer_email "jdowling@kth.se"
license "Apache v2.0"
description 'Installs/Configures the Hops distribution'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.3.0"
source_url "https://github.com/hopshadoop/hops-hadoop-chef"
#link:<a target='_blank' href='http://%host%:50070/'>Launch the WebUI for the NameNode</a>
recipe "hops::nn", "Installs a HopsFs NameNode"
recipe "hops::ndb", "Installs MySQL Cluster (ndb) dal driver for Hops"
recipe "hops::dn", "Installs a HopsFs DataNode"
#link:<a target='_blank' href='http://%host%:8088/'>Launch the WebUI for the ResourceManager</a>
recipe "hops::rm", "Installs a YARN ResourceManager"
recipe "hops::nm", "Installs a YARN NodeManager"
recipe "hops::jhs", "Installs a MapReduce JobHistory Server for YARN"
recipe "hops::ps", "Installs a WebProxy Server for YARN"
recipe "hops::rt", "Installs a ResourceTracker server for YARN"
recipe "hops::client", "Installs libaries and configuration files for writing HDFS and YARN progams"
recipe "hops::purge", "Removes all hops-hadoop files and dirs and ndb-dal, but doesnt drop hops db from NDB"
recipe "hops::purge-ndb", "Drops hops db from NDB"
depends 'java'
depends 'kagent'
depends 'ndb'
depends 'magic_shell'
depends 'sysctl'
depends 'cmake'
depends 'kzookeeper'
%w{ ubuntu debian rhel centos }.each do |os|
supports os
end
attribute "java/jdk_version",
:description => "Jdk version",
:type => 'string'
attribute "java/install_flavor",
:description => "Oracle (default) or openjdk",
:type => 'string'
attribute "java/java_home",
:description => "JAVA_HOME",
:type => 'string'
attribute "hops/dir",
:description => "Base installation directory for HopsFS",
:type => 'string'
attribute "mysql/user",
:description => "Mysql server username",
:type => 'string',
:required => "required"
attribute "mysql/password",
:description => "MySql server Password",
:type => 'string',
:required => "required"
attribute "hops/erasure_coding",
:description => "'true' or 'false' - true to enable erasure-coding replication",
:type => 'string'
attribute "hops/nn/cache",
:description => "'true' or 'false' - true to enable the path cache in the NameNode",
:type => 'string'
attribute "hops/nn/partition_key",
:description => "'true' or 'false' - true to enable the partition key when starting transactions. Distribution-aware transactions.",
:type => 'string'
attribute "hops/yarn/resource_tracker",
:description => "Hadoop Resource Tracker enabled on this nodegroup",
:type => 'string'
attribute "hops/install_db",
:description => "Install hops database and tables in MySQL Cluster ('true' (default) or 'false')",
:type => 'string'
attribute "hops/use_systemd",
:description => "Use systemd startup scripts, default 'false'",
:type => "string"
attribute "hops/format",
:description => "Format HDFS",
:type => 'string'
attribute "hops/nm/log_dir",
:description => "The directory in which yarn node manager store containers logs",
:type => 'string'
attribute "hops/yarn/memory_mbs",
:description => "Apache_Hadoop NodeManager Memory in MB",
:type => 'string'
attribute "hops/yarn/nodemanager_ha_enabled",
:description => "",
:type => "string"
attribute "hops/yarn/nodemanager_auto_failover_enabled",
:description => "",
:type => "string"
attribute "hops/yarn/nodemanager_recovery_enabled",
:description => "",
:type => "string"
attribute "hops/yarn/rm_heartbeat",
:description => "",
:type => "string"
attribute "hops/yarn/nodemanager_rpc_batch_max_size",
:description => "",
:type => "string"
attribute "hops/yarn/nodemanager_rpc_batch_max_duration",
:description => "",
:type => "string"
attribute "hops/yarn/rm_distributed",
:description => "Set to 'true' to enable distributed RMs",
:type => "string"
attribute "hops/yarn/nodemanager_rm_streaming_enabled",
:description => "",
:type => "string"
attribute "hops/yarn/client_failover_sleep_base_ms",
:description => "",
:type => "string"
attribute "hops/yarn/client_failover_sleep_max_ms",
:description => "",
:type => "string"
attribute "hops/yarn/quota_enabled",
:description => "",
:type => "string"
attribute "hops/yarn/quota_monitor_interval",
:description => "",
:type => "string"
attribute "hops/yarn/quota_ticks_per_credit",
:description => "",
:type => "string"
attribute "hops/yarn/quota_min_ticks_charge",
:description => "",
:type => "string"
attribute "hops/yarn/quota_checkpoint_nbticks",
:description => "",
:type => "string"
attribute "hops/yarn/nm_heapsize_mbs",
:description => "Increase this value if using the YARN external shuffle service. (default: 1000)",
:type => 'string'
attribute "hops/yarn/rm_heapsize_mbs",
:description => "Resource manager heapsize. (default: 1000)",
:type => 'string'
attribute "hops/trash/interval",
:description => "How long in minutes trash survives in /user/<glassfish>/.Trash/<interval-bucket>/...",
:type => "string"
attribute "hops/trash/checkpoint/interval",
:description => "How long in minutes until a new directory bucket is created in /user/<glassfish>/.Trash with a timestamp. ",
:type => "string"
attribute "hops/nn/private_ips",
:description => "Set ip addresses",
:type => "array"
attribute "hops/nn/public_ips",
:description => "Set ip addresses",
:type => "array"
attribute "hops/rm/private_ips",
:description => "Set ip addresses",
:type => "array"
attribute "hops/rm/public_ips",
:description => "Set ip addresses",
:type => "array"
# Needed to find the jar file for yan-spark-shuffle
attribute "hadoop_spark/version",
:description => "Spark version",
:type => 'string'
attribute "hops/url/primary",
:description => "Primary download url of hops distribution",
:type => 'string'
attribute "hops/url/secondary",
:description => "Secondary download url of hops distribution",
:type => 'string'
attribute "hops/rpc/ssl",
:description => "'true' will enable RPC TLS and 'false' will disable it",
:type => 'string'
attribute "hops/yarn/vcores",
:description => "Hops NodeManager Number of Virtual Cores",
:type => 'string'
attribute "hops/yarn/max_vcores",
:description => "Hadoop NodeManager Maximum Virtual Cores per container",
:type => 'string'
attribute "hops/version",
:description => "Version of hops",
:type => 'string'
attribute "hops/num_replicas",
:description => "Number of replicates for each file stored in HDFS",
:type => 'string'
attribute "hops/container_cleanup_delay_sec",
:description => "The number of seconds container data is retained after termination",
:type => 'string'
attribute "hops/group",
:description => "Group to run hdfs/yarn/yarnapp/mr as",
:type => 'string'
attribute "hops/yarn/user",
:description => "Username to run yarn as",
:type => 'string'
attribute "hops/yarnapp/user",
:description => "Username to run yarn applications as",
:type => 'string'
attribute "hops/mr/user",
:description => "Username to run mapReduce as",
:type => 'string'
attribute "hops/hdfs/user",
:description => "Username to run hdfs as",
:type => 'string'
attribute "hops/hdfs/superuser_group",
:description => "Group for users with hdfs superuser privileges",
:type => 'string'
attribute "hops/hdfs/blocksize",
:description => "HDFS Blocksize (128k, 512m, 1g, etc). Default 128m.",
:type => 'string'
attribute "hops/format",
:description => "Format HDFS, Run 'hdfs namenode -format",
:type => 'string'
attribute "hops/tmp_dir",
:description => "The directory in which Hadoop stores temporary data, including container data",
:type => 'string'
attribute "hops/nn/name_dir",
:description => "Directory for NameNode's state",
:type => 'string'
attribute "hops/dn/data_dir",
:description => "The directory in which Hadoop's DataNodes store their data",
:type => 'string'
attribute "hops/yarn/nodemanager_hb_ms",
:description => "Heartbeat Interval for NodeManager->ResourceManager in ms",
:type => 'string'
attribute "hops/rm/scheduler_class",
:description => "Java Classname for the Yarn scheduler (fifo, capacity, fair)",
:type => 'string'
attribute "hops/user_envs",
:description => "Update the PATH environment variable for the hdfs and yarn users to include hadoop/bin in the PATH ",
:type => 'string'
attribute "hops/logging_level",
:description => "Log levels are: TRACE, DEBUG, INFO, WARN",
:type => 'string'
attribute "hops/nn/heap_size",
:description => "Size of the NameNode heap in MBs",
:type => 'string'
attribute "hops/nn/direct_memory_size",
:description => "Size of the direct memory size for the NameNode in MBs",
:type => 'string'
attribute "hops/yarn/aux_services",
:description => "mapreduce_shuffle, spark_shuffle",
:type => "string"
attribute "hops/capacity/max_ap",
:description => "Maximum number of applications that can be pending and running.",
:type => "string"
attribute "hops/capacity/max_am_percent",
:description => "Maximum percent of resources in the cluster which can be used to run application masters i.e. controls number of concurrent running applications.",
:type => "string"
attribute "hops/capacity/resource_calculator_class",
:description => "The ResourceCalculator implementation to be used to compare Resources in the scheduler. The default i.e. DefaultResourceCalculator only uses Memory while DominantResourceCalculator uses dominant-resource to compare multi-dimensional resources such as Memory, CPU etc.",
:type => "string"
attribute "hops/capacity/root_queues",
:description => "The queues at the root level (root is the root queue).",
:type => "string"
attribute "hops/capacity/default_capacity",
:description => "Default queue target capacity.",
:type => "string"
attribute "hops/capacity/user_limit_factor",
:description => " Default queue user limit a percentage from 0.0 to 1.0.",
:type => "string"
attribute "hops/capacity/default_max_capacity",
:description => "The maximum capacity of the default queue.",
:type => "string"
attribute "hops/capacity/default_state",
:description => "The state of the default queue. State can be one of RUNNING or STOPPED.",
:type => "string"
attribute "hops/capacity/default_acl_submit_applications",
:description => "The ACL of who can submit jobs to the default queue.",
:type => "string"
attribute "hops/capacity/default_acl_administer_queue",
:description => "The ACL of who can administer jobs on the default queue.",
:type => "string"
attribute "hops/capacity/queue_mapping",
:description => "A list of mappings that will be used to assign jobs to queues The syntax for this list is [u|g]:[name]:[queue_name][,next mapping]* Typically this list will be used to map users to queues, for example, u:%user:%user maps all users to queues with the same name as the user.",
:type => "string"
attribute "hops/capacity/queue_mapping_override.enable",
:description => "If a queue mapping is present, will it override the value specified by the user? This can be used by administrators to place jobs in queues that are different than the one specified by the user. The default is false.",
:type => "string"
attribute "kagent/enabled",
:description => "Set to 'true' to enable, 'false' to disable kagent",
:type => "string"
attribute "mysql/dir",
:description => "MySQL installation directory.",
:type => "string"
attribute "install/dir",
:description => "Set to a base directory under which we will install.",
:type => "string"
attribute "install/user",
:description => "User to install the services as",
:type => "string"
attribute "influxdb/graphite/port",
:description => "Port for influxdb graphite connector",
:type => "string"
#GPU settings
attribute "hops/yarn/min_gpus",
:description => "Min number of GPUs per container",
:type => "string"
attribute "hops/yarn/max_gpus",
:description => "Max number of GPUs per container",
:type => "string"
attribute "hops/gpu",
:description => "Are GPUs enabled for YARN? Default: false",
:type => "string"
attribute "hops/yarn/gpus",
:description => "'*' default: use all GPUs on the host. Otherwise, specify the number of GPUs per host (e.g., '4'). Otherwise, specify a comma-separated list of minor device-ids: '0,1,2' or '0-3')",
:type => "string"
#CGroups settings
attribute "hops/yarn/groups_enabled",
:description => "",
:type => "string"
attribute "hops/yarn/groups",
:description => "",
:type => "string"
attribute "hops/yarn/linux_container_local_user",
:description => "the user running the yarn containers",
:type => "string"
attribute "hops/yarn/linux_container_limit_users",
:description => "",
:type => "string"
attribute "hops/hopsutil_jar",
:description => "Name of the HopsUtil jar file.",
:type => "string"
attribute "hops/examples_jar",
:description => "Name of the examples file.",
:type => "string"
attribute "hops/hopsutil_version",
:description => "Version of the hops-util jar file.",
:type => "string"
attribute "hops/examples_version",
:description => "Version of the hops-spark jar file.",
:type => "string"
attribute "hops/cgroups",
:description => "'true' to enable cgroups, else (default) 'false'",
:type => "string"
attribute "livy/user",
:description => "Livy user that will be a proxy user",
:type => "string"
attribute "hopsworks/user",
:description => "Hopsworks username",
:type => "string"