swineherd 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env jruby
2
+
3
+ require 'swineherd'
4
+
5
+ #
6
+ # Creates a 'tree' view of an hdfs path. It's not as pretty as the
7
+ # unix tree command but that's only because I'm not smart enough to
8
+ # print the hierarchy properly.
9
+ #
10
+
11
+ FS = Swineherd::FileSystem.get(:hdfs)
12
+ path = ARGV[0]
13
+
14
+ # Recursively list paths
15
+ def lr path
16
+ paths = FS.entries(path)
17
+ if (paths && !paths.empty?)
18
+ paths.map{|e| {File.basename(path) => lr(e)}}.flatten
19
+ else
20
+ File.basename(path)
21
+ end
22
+ end
23
+
24
+
25
+ tree = {File.dirname(path) => lr(path)}.to_yaml
26
+ puts tree
@@ -0,0 +1,429 @@
1
+ jerry costanza81
2
+ jerry ElaineBenes
3
+ jerry kramer
4
+ jerry NewmanUSPS
5
+ jerry THE_REAL_PUDDY
6
+ jerry JPeterman
7
+ jerry FRANKCOSTANZA
8
+ costanza81 jerry
9
+ costanza81 ElaineBenes
10
+ costanza81 kramer
11
+ costanza81 NewmanUSPS
12
+ costanza81 THE_REAL_PUDDY
13
+ costanza81 JPeterman
14
+ costanza81 FRANKCOSTANZA
15
+ ElaineBenes jerry
16
+ ElaineBenes costanza81
17
+ ElaineBenes kramer
18
+ ElaineBenes THE_REAL_PUDDY
19
+ ElaineBenes JPeterman
20
+ kramer jerry
21
+ kramer costanza81
22
+ kramer ElaineBenes
23
+ kramer NewmanUSPS
24
+ kramer THE_REAL_PUDDY
25
+ kramer JPeterman
26
+ kramer FRANKCOSTANZA
27
+ NewmanUSPS jerry
28
+ NewmanUSPS costanza81
29
+ NewmanUSPS ElaineBenes
30
+ NewmanUSPS kramer
31
+ NewmanUSPS THE_REAL_PUDDY
32
+ NewmanUSPS JPeterman
33
+ NewmanUSPS FRANKCOSTANZA
34
+ THE_REAL_PUDDY jerry
35
+ THE_REAL_PUDDY costanza81
36
+ THE_REAL_PUDDY ElaineBenes
37
+ THE_REAL_PUDDY kramer
38
+ THE_REAL_PUDDY NewmanUSPS
39
+ THE_REAL_PUDDY JPeterman
40
+ THE_REAL_PUDDY FRANKCOSTANZA
41
+ THE_REAL_PUDDY Vegetable_Lasagna
42
+ FRANKCOSTANZA jerry
43
+ FRANKCOSTANZA costanza81
44
+ FRANKCOSTANZA kramer
45
+ jerry MortySeinfeld
46
+ jerry HelenSeinfeld
47
+ jerry Izzy_Mandelbaum
48
+ jerry UncleLEO
49
+ jerry Artie_Levine
50
+ MortySeinfeld UncleLEO
51
+ MortySeinfeld HelenSeinfeld
52
+ MortySeinfeld Cousin_Jeffrey
53
+ Izzy_Mandelbaum jerry
54
+ UncleLEO jerry
55
+ UncleLEO MortySeinfeld
56
+ UncleLEO HelenSeinfeld
57
+ UncleLEO Cousin_Jeffrey
58
+ UncleLEO Babs_Kramer
59
+ Babs_Kramer UncleLEO
60
+ Cousin_Jeffrey jerry
61
+ Cousin_Jeffrey MortySeinfeld
62
+ Cousin_Jeffrey UncleLEO
63
+ jerry Nana
64
+ Nana MortySeinfeld
65
+ MortySeinfeld Nana
66
+ Cousin_Jeffrey Nana
67
+ UncleLEO Nana
68
+ Nana UncleLEO
69
+ JackKlompus MortySeinfeld
70
+ MortySeinfeld JackKlompus
71
+ Dolores jerry
72
+ MarlatheVirgin jerry
73
+ TiaVanCamp jerry
74
+ Rachel_Goldstein jerry
75
+ meryl jerry
76
+ MissRhodeIsland jerry
77
+ Pam jerry
78
+ Sheila jerry
79
+ MelissaFlyingFree jerry
80
+ jerry Dolores
81
+ jerry MarlatheVirgin
82
+ jerry TiaVanCamp
83
+ jerry Rachel_Goldstein
84
+ jerry meryl
85
+ jerry MissRhodeIsland
86
+ jerry Pam
87
+ jerry Sheila
88
+ jerry MelissaFlyingFree
89
+ jerry Laura
90
+ jerry Sandy
91
+ Laura Sandy
92
+ Laura jerry
93
+ Sandy jerry
94
+ kramer MissRhodeIsland
95
+ kramer Pam
96
+ jerry Jenna
97
+ Jenna jerry
98
+ jerry bania
99
+ costanza81 bania
100
+ bania jerry
101
+ bania The_Soup_Nazi
102
+ bania Poppie
103
+ bania Jenna
104
+ jerry Noreen
105
+ jerry JackKlompus
106
+ jerry Milos
107
+ jerry JeanPaul_JeanPaul
108
+ jerry FusilliJerry
109
+ FusilliJerry jerry
110
+ FusilliJerry kramer
111
+ kramer FusilliJerry
112
+ FusilliJerry FRANKCOSTANZA
113
+ jerry pez
114
+ jerry superman
115
+ jerry bigstein
116
+ Milos jerry
117
+ jerry Roy_the_Dentist
118
+ jerry BabuBhatt
119
+ kramer BabuBhatt
120
+ BabuBhatt kramer
121
+ kramer Poppie
122
+ Poppie kramer
123
+ Poppie ElaineBenes
124
+ ElaineBenes Poppie
125
+ jerry Poppie
126
+ jerry Shaky_the_Mohel
127
+ jerry bubble_boy
128
+ bubble_boy jerry
129
+ MatthewSeinfeldFan jerry
130
+ FragileFrankieMerman jerry
131
+ jerry FragileFrankieMerman
132
+ costanza81 FragileFrankieMerman
133
+ costanza81 EstelleC
134
+ FRANKCOSTANZA EstelleC
135
+ EstelleC costanza81
136
+ EstelleC FRANKCOSTANZA
137
+ FRANKCOSTANZA Lloyd_Braun
138
+ EstelleC Lloyd_Braun
139
+ Lloyd_Braun FRANKCOSTANZA
140
+ Lloyd_Braun costanza81
141
+ Lloyd_Braun EstelleC
142
+ kramer MrWilhelm
143
+ costanza81 MrWilhelm
144
+ costanza81 Allison
145
+ Allison costanza81
146
+ costanza81 LindsayEnright
147
+ LindsayEnright costanza81
148
+ costanza81 marisa_tomei
149
+ costanza81 SusanRoss
150
+ SusanRoss MrandMrsRoss
151
+ MrandMrsRoss SusanRoss
152
+ SusanRoss jerry
153
+ jerry SusanRoss
154
+ SusanRoss ElaineBenes
155
+ kramer SusanRoss
156
+ SusanRoss Russell_Dalrymple
157
+ Russell_Dalrymple SusanRoss
158
+ Russell_Dalrymple ElaineBenes
159
+ SallyWeaver SusanRoss
160
+ SusanRoss SallyWeaver
161
+ SallyWeaver MrandMrsRoss
162
+ SallyWeaver jerry
163
+ WyckThayer MrandMrsRoss
164
+ MrandMrsRoss WyckThayer
165
+ SusanRoss WyckThayer
166
+ WyckThayer SusanRoss
167
+ costanza81 MrKruger
168
+ MrKruger costanza81
169
+ ElaineBenes MrKruger
170
+ costanza81 guitarbern
171
+ costanza81 intangibles
172
+ costanza81 cushman
173
+ cushman bigstein
174
+ bigstein cushman
175
+ costanza81 JonVoight
176
+ costanza81 bubble_boy
177
+ costanza81 Pastrami
178
+ costanza81 bigstein
179
+ Victoria bigstein
180
+ bigstein Victoria
181
+ cushman Victoria
182
+ Victoria cushman
183
+ bigstein intangibles
184
+ bigstein guitarbern
185
+ guitarbern intangibles
186
+ guitarbern bigstein
187
+ intangibles Victoria
188
+ intangibles bigstein
189
+ bubble_boy trivial_pursuit
190
+ costanza81 StankyHanke
191
+ ElaineBenes MrLippman
192
+ ElaineBenes MrPitt
193
+ ElaineBenes Jack_The_Wiz
194
+ Jack_The_Wiz ElaineBenes
195
+ TheSuzie ElaineBenes
196
+ jerry TheSuzie
197
+ TheSuzie Peggy
198
+ Peggy TheSuzie
199
+ Peggy JPeterman
200
+ JPeterman kramer
201
+ JPeterman TheSuzie
202
+ ElaineBenes RobertKennedyJr
203
+ MarlatheVirgin RobertKennedyJr
204
+ RobertKennedyJr MarlatheVirgin
205
+ Jackie_Chiles MarlatheVirgin
206
+ Sue_Ellen_Mischke RobertKennedyJr
207
+ JPeterman RobertKennedyJr
208
+ RobertKennedyJr JPeterman
209
+ MrPitt RobertKennedyJr
210
+ RobertKennedyJr MrPitt
211
+ kramer TinaRobbins
212
+ TinaRobbins kramer
213
+ ElaineBenes TinaRobbins
214
+ TinaRobbins ElaineBenes
215
+ Jake_Jarmel ElaineBenes
216
+ Noreen
217
+ ElaineBenes HalKitzmiller
218
+ HalKitzmiller ElaineBenes
219
+ kramer HalKitzmiller
220
+ HalKitzmiller kramer
221
+ Joel_Rifkin ElaineBenes
222
+ Darryl ElaineBenes
223
+ NedIsakoff ElaineBenes
224
+ ElaineBenes NedIsakoff
225
+ ElaineBenes Carl_Farbman
226
+ Carl_Farbman JPeterman
227
+ JPeterman Carl_Farbman
228
+ CrazyJoeDavola jerry
229
+ CrazyJoeDavola costanza81
230
+ CrazyJoeDavola ElaineBenes
231
+ CrazyJoeDavola kramer
232
+ CrazyJoeDavola NewmanUSPS
233
+ costanza81 CrazyJoeDavola
234
+ ElaineBenes CrazyJoeDavola
235
+ kramer CrazyJoeDavola
236
+ NewmanUSPS CrazyJoeDavola
237
+ jerry DrTimWhatley
238
+ costanza81 DrTimWhatley
239
+ ElaineBenes DrTimWhatley
240
+ kramer DrTimWhatley
241
+ NewmanUSPS DrTimWhatley
242
+ DrTimWhatley jerry
243
+ DrTimWhatley costanza81
244
+ DrTimWhatley ElaineBenes
245
+ DrTimWhatley kramer
246
+ jerry TheDrake
247
+ costanza81 TheDrake
248
+ ElaineBenes TheDrake
249
+ kramer TheDrake
250
+ NewmanUSPS TheDrake
251
+ TheDrake jerry
252
+ TheDrake costanza81
253
+ TheDrake ElaineBenes
254
+ TheDrake kramer
255
+ jerry JoeMayo
256
+ ElaineBenes JoeMayo
257
+ costanza81 JoeMayo
258
+ JoeMayo jerry
259
+ JoeMayo ElaineBenes
260
+ JoeMayo costanza81
261
+ jerry Alec_Berg
262
+ Alec_Berg jerry
263
+ ElaineBenes Sue_Ellen_Mischke
264
+ Sue_Ellen_Mischke ElaineBenes
265
+ Sue_Ellen_Mischke jerry
266
+ jerry Sue_Ellen_Mischke
267
+ kramer Sue_Ellen_Mischke
268
+ kramer Mickey_Abbott
269
+ jerry Mickey_Abbott
270
+ costanza81 Mickey_Abbott
271
+ NewmanUSPS Mickey_Abbott
272
+ Mickey_Abbott kramer
273
+ Mickey_Abbott jerry
274
+ Mickey_Abbott costanza81
275
+ Mickey_Abbott NewmanUSPS
276
+ Babs_Kramer NewmanUSPS
277
+ NewmanUSPS Babs_Kramer
278
+ kramer Bob_Sacamano
279
+ kramer Lomez
280
+ kramer JayRiemenschneider
281
+ kramer CorkyRamirez
282
+ kramer LenNicademo
283
+ kramer Specter
284
+ kramer Brody
285
+ Bob_Sacamano kramer
286
+ Lomez kramer
287
+ JayRiemenschneider kramer
288
+ CorkyRamirez kramer
289
+ LenNicademo kramer
290
+ Specter kramer
291
+ Brody kramer
292
+ Bob_Sacamano Lomez
293
+ Bob_Sacamano JayRiemenschneider
294
+ Bob_Sacamano CorkyRamirez
295
+ Bob_Sacamano LenNicademo
296
+ Bob_Sacamano Specter
297
+ Bob_Sacamano Brody
298
+ Bob_Sacamano jerry
299
+ Brody Bob_Sacamano
300
+ Brody Lomez
301
+ Brody JayRiemenschneider
302
+ Brody CorkyRamirez
303
+ Brody LenNicademo
304
+ Brody Specter
305
+ CorkyRamirez Bob_Sacamano
306
+ CorkyRamirez Lomez
307
+ CorkyRamirez JayRiemenschneider
308
+ CorkyRamirez Specter
309
+ CorkyRamirez Brody
310
+ JayRiemenschneider Bob_Sacamano
311
+ JayRiemenschneider Lomez
312
+ JayRiemenschneider CorkyRamirez
313
+ JayRiemenschneider LenNicademo
314
+ JayRiemenschneider Brody
315
+ LenNicademo Bob_Sacamano
316
+ LenNicademo Lomez
317
+ LenNicademo JayRiemenschneider
318
+ LenNicademo CorkyRamirez
319
+ LenNicademo Brody
320
+ Lomez Bob_Sacamano
321
+ Lomez JayRiemenschneider
322
+ Lomez CorkyRamirez
323
+ Lomez LenNicademo
324
+ Lomez Brody
325
+ Specter Bob_Sacamano
326
+ Specter Lomez
327
+ Specter CorkyRamirez
328
+ kramer FranklinDelanoRomanowski
329
+ kramer SalBass
330
+ kramer EstelleC
331
+ kramer Vegetable_Lasagna
332
+ kramer MortySeinfeld
333
+ kramer Noreen
334
+ kramer Babs_Kramer
335
+ kramer Shaky_the_Mohel
336
+ kramer assman
337
+ assman DrTimWhatley
338
+ DrTimWhatley assman
339
+ kramer Stan_the_Caddy
340
+ Stan_the_Caddy Jackie_Chiles
341
+ NewmanUSPS Jackie_Chiles
342
+ Jackie_Chiles NewmanUSPS
343
+ kramer Jackie_Chiles
344
+ Jackie_Chiles kramer
345
+ EstelleC kramer
346
+ Vegetable_Lasagna kramer
347
+ MortySeinfeld kramer
348
+ Noreen kramer
349
+ Babs_Kramer kramer
350
+ Shaky_the_Mohel kramer
351
+ Bob_Cobb kramer
352
+ kramer Bob_Cobb
353
+ Bob_Cobb FRANKCOSTANZA
354
+ FRANKCOSTANZA Bob_Cobb
355
+ kramer Earl_Haffler
356
+ Earl_Haffler kramer
357
+ kramer MikeMoffit
358
+ MikeMoffit kramer
359
+ MikeMoffit jerry
360
+ NewmanUSPS Henry_Atkins
361
+ AvisRental jerry
362
+ jerry The_Soup_Nazi
363
+ costanza81 The_Soup_Nazi
364
+ ElaineBenes The_Soup_Nazi
365
+ kramer The_Soup_Nazi
366
+ NewmanUSPS The_Soup_Nazi
367
+ FRANKCOSTANZA The_Soup_Nazi
368
+ THE_REAL_PUDDY The_Soup_Nazi
369
+ jerry ArtVandelay
370
+ costanza81 ArtVandelay
371
+ ElaineBenes ArtVandelay
372
+ kramer ArtVandelay
373
+ jerry Kel_Varnsen
374
+ costanza81 Kel_Varnsen
375
+ ElaineBenes Kel_Varnsen
376
+ kramer Kel_Varnsen
377
+ jerry HEPennypacker
378
+ costanza81 HEPennypacker
379
+ ElaineBenes HEPennypacker
380
+ kramer HEPennypacker
381
+ jerry MartinvanNostrand
382
+ costanza81 MartinvanNostrand
383
+ ElaineBenes MartinvanNostrand
384
+ kramer MartinvanNostrand
385
+ jerry WandaPepper
386
+ costanza81 WandaPepper
387
+ ElaineBenes WandaPepper
388
+ kramer WandaPepper
389
+ ArtVandelay ArtVandelay
390
+ ArtVandelay Kel_Varnsen
391
+ ArtVandelay HEPennypacker
392
+ ArtVandelay MartinvanNostrand
393
+ ArtVandelay WandaPepper
394
+ Kel_Varnsen ArtVandelay
395
+ Kel_Varnsen HEPennypacker
396
+ Kel_Varnsen MartinvanNostrand
397
+ Kel_Varnsen WandaPepper
398
+ HEPennypacker ArtVandelay
399
+ HEPennypacker Kel_Varnsen
400
+ HEPennypacker MartinvanNostrand
401
+ HEPennypacker WandaPepper
402
+ MartinvanNostrand ArtVandelay
403
+ MartinvanNostrand Kel_Varnsen
404
+ MartinvanNostrand HEPennypacker
405
+ MartinvanNostrand WandaPepper
406
+ WandaPepper ArtVandelay
407
+ WandaPepper Kel_Varnsen
408
+ WandaPepper HEPennypacker
409
+ WandaPepper MartinvanNostrand
410
+ Kevin Gene
411
+ Kevin Feldman
412
+ Kevin Vargas
413
+ Kevin ElaineBenes
414
+ Gene Kevin
415
+ Gene Feldman
416
+ Gene Vargas
417
+ Gene ElaineBenes
418
+ Feldman Kevin
419
+ Feldman Gene
420
+ Feldman Vargas
421
+ Feldman ElaineBenes
422
+ Vargas Kevin
423
+ Vargas Gene
424
+ Vargas Feldman
425
+ Vargas ElaineBenes
426
+ ElaineBenes Kevin
427
+ ElaineBenes Gene
428
+ ElaineBenes Feldman
429
+ ElaineBenes Vargas