-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
574 lines (508 loc) · 15.9 KB
/
index.html
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
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<head>
<title>RHIPE - R and Hadoop Integrated Processing Environment </title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2010-08-04 13:29:40 EDT"/>
<meta name="author" content="Saptarshi Guha"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
html { font-family: Times, serif; font-size: 12pt; }
.title { text-align: center; }
.todo { color: red; }
.done { color: green; }
.tag { background-color: #add8e6; font-weight:normal }
.target { }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
p.verse { margin-left: 3% }
pre {
border: 1pt solid #AEBDCC;
background-color: #F3F5F7;
padding: 5pt;
font-family: courier, monospace;
font-size: 90%;
overflow:auto;
}
table { border-collapse: collapse; }
td, th { vertical-align: top; }
dt { font-weight: bold; }
div.figure { padding: 0.5em; }
div.figure p { text-align: center; }
.linenr { font-size:smaller }
.code-highlighted {background-color:#ffff00;}
.org-info-js_info-navigation { border-style:none; }
#org-info-js_console-label { font-size:10px; font-weight:bold;
white-space:nowrap; }
.org-info-js_search-highlight {background-color:#ffff00; color:#000000;
font-weight:bold; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="a.css" />
<script type="text/javascript">
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
</head>
<body>
<div id="content">
<h1 class="title">RHIPE - R and Hadoop Integrated Processing Environment </h1>
<p>RHIPE(phonetic spelling: hree-pay' <sup><a class="footref" name="fnr.1" href="#fn.1">1</a></sup>) is a java package that integrates the R environment with <a href="http://hadoop.apache.org/core/">Hadoop</a>, the open source implementation
of Google's mapreduce. Using RHIPE it is possible to code map-reduce algorithms in R e.g
</p>
<pre class="src src-R-example">m <- expression({
y <- unlist(strsplit(unlist(map.values),<span style="color: #8b2252;">"[[:space:]]+"</span>))
sapply(y,function(r) rhcollect(r,T))
## instead of the previous line, you could also do
## z <- table(sapply(y,function(r) rhcollect(r,T)))
## sapply(names(z), function(r) rhcollect(r, z[r]))
})
r <- expression(
pre={
count=0
},
reduce={
count <- sum(as.numeric(unlist(reduce.values)),count)
},post={
rhcollect(reduce.key,count)
})
z=rhmr(map=m,reduce=r,comb=T,inout=c(<span style="color: #8b2252;">"text"</span>,<span style="color: #8b2252;">"sequence"</span>),ifolder=<span style="color: #8b2252;">"/tmp/50mil"</span>,ofolder='/tmp/tof')
rhex(z)
</pre>
<p>
Or just, load Rhipe and type
</p>
<pre class="src src-R-example">rhwordcount(infolder,outfolder)
</pre>
<p>
where <code>infolder</code> is the input file(or folder of files) of words(text file) and <code>outfolder</code> is
the destination directory.
</p>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 Mailing List </a></li>
<li><a href="#sec-2">2 Data types supported </a></li>
<li><a href="#sec-3">3 More Information </a></li>
<li><a href="#sec-4">4 Download </a></li>
<li><a href="#sec-5">5 EC2 </a></li>
<li><a href="#sec-6">6 Documentation </a></li>
<li><a href="#sec-7">7 Contact </a></li>
<li><a href="#sec-8">8 News </a></li>
</ul>
</div>
</div>
<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> Mailing List </h2>
<div class="outline-text-2" id="text-1">
<p>Mailing list is hosted on Google Groups. The url is
<a href="http://groups.google.com/group/rhipe">http://groups.google.com/group/rhipe</a> . Your first post will be moderated.
</p>
</div>
</div>
<div id="outline-container-2" class="outline-2">
<h2 id="sec-2"><span class="section-number-2">2</span> Data types supported </h2>
<div class="outline-text-2" id="text-2">
<p>
Well, a useful subset, but not all, see <a href="./doc/html/datatypes.html">Data Types</a>
</p></div>
</div>
<div id="outline-container-3" class="outline-2">
<h2 id="sec-3"><span class="section-number-2">3</span> More Information </h2>
<div class="outline-text-2" id="text-3">
<p>For more information about what RHIPE is and not, read the FAQ.
Please note, this does not work on Mac OS X Snow Leopard.
</p>
</div>
</div>
<div id="outline-container-4" class="outline-2">
<h2 id="sec-4"><span class="section-number-2">4</span> Download </h2>
<div class="outline-text-2" id="text-4">
<p><b>Source</b>
</p>
<p>
The source code is present on Git, go here <a href="http://github.com/saptarshiguha/RHIPE/">http://github.com/saptarshiguha/RHIPE/</a>
</p>
<p>
To check out the current version, install <code>git</code>
</p>
<pre class="src src-sh">git clone git://github.com/saptarshiguha/RHIPE.git
</pre>
<p>
To download version <code>X</code> e.g <code>0.45</code>
</p>
<pre class="src src-sh">git clone git://github.com/saptarshiguha/RHIPE.git
git checkout 0.45
</pre>
<p>
The current version is <b>always</b> the master.
</p>
<p>
<b>Versions</b>
</p>
<p>
Read the documentation for installation. Current is the latest version.
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption></caption>
<colgroup><col align="right" /><col align="left" /><col align="left" />
</colgroup>
<thead>
<tr><th scope="col">Version</th><th scope="col">Download</th><th scope="col"></th></tr>
</thead>
<tbody>
<tr><td>0.60</td><td><a href="./dn/Rhipe_0.60.tar.gz">Rhipe<sub>0</sub>.60.tar.gz</a></td><td>Fri May 28 17:13:16 EDT 2010</td></tr>
<tr><td>0.59</td><td><a href="./dn/Rhipe_0.59.tar.gz">Rhipe<sub>0</sub>.59.tar.gz</a></td><td>Tue May 04 18:15:26 EDT 2010</td></tr>
<tr><td>0.58</td><td><a href="./dn/Rhipe_0.58.tar.gz">Rhipe<sub>0</sub>.58.tar.gz</a></td><td>Fri Apr 09 01:41:48 EDT 2010</td></tr>
<tr><td>0.57</td><td><a href="./dn/Rhipe_0.57.tar.gz">Rhipe<sub>0</sub>.57.tar.gz</a></td><td>Sat Mar 20 11:20:21 EDT 2010</td></tr>
<tr><td>0.56</td><td><a href="./dn/Rhipe_0.56.tar.gz">Rhipe<sub>0</sub>.56.tar.gz</a></td><td>Sat Feb 27 17:04:44 EST 2010</td></tr>
<tr><td>0.55</td><td><a href="./dn/Rhipe_0.55.tar.gz">Rhipe_0.55.tar.gz</a></td><td>Sun Feb 21 00:49:04 EST 2010</td></tr>
<tr><td>0.54</td><td><a href="./dn/Rhipe_0.54.tar.gz">Rhipe_0.54.tar.gz</a></td><td></td></tr>
<tr><td>0.53</td><td><a href="./dn/Rhipe_0.53.tar.gz">Rhipe_0.53.tar.gz</a></td><td></td></tr>
<tr><td>0.52</td><td><a href="./dn/Rhipe_0.52.tar.gz">Rhipe_0.52.tar.gz</a></td><td></td></tr>
<tr><td>0.51</td><td><a href="./dn/Rhipe_0.51.tar.gz">Rhipe_0.51.tar.gz</a></td><td></td></tr>
<tr><td>0.5</td><td><a href="./dn/Rhipe_0.5.tar.gz">Rhipe_0.5.tar.gz</a></td><td></td></tr>
<tr><td>0.44</td><td><a href="./dn/rhipe.0.44.tgz">rhipe.0.44.tgz</a></td><td></td></tr>
</tbody>
</table>
</div>
</div>
<div id="outline-container-5" class="outline-2">
<h2 id="sec-5"><span class="section-number-2">5</span> EC2 </h2>
<div class="outline-text-2" id="text-5">
<p>See the documentation.
</p>
</div>
</div>
<div id="outline-container-6" class="outline-2">
<h2 id="sec-6"><span class="section-number-2">6</span> Documentation </h2>
<div class="outline-text-2" id="text-6">
<p>The documentation can be found <a href="./doc/html/index.html">here</a>. PDF version can be found <a href="./doc/rhipe.pdf">here</a>
</p></div>
</div>
<div id="outline-container-7" class="outline-2">
<h2 id="sec-7"><span class="section-number-2">7</span> Contact </h2>
<div class="outline-text-2" id="text-7">
<p>sguha -AT- purdue -DOT- edu
</p>
</div>
</div>
<div id="outline-container-8" class="outline-2">
<h2 id="sec-8"><span class="section-number-2">8</span> News </h2>
<div class="outline-text-2" id="text-8">
<ul>
<li id="sec-8.1">Wed Aug 04 13:19:09 EDT 2010 <br/>
<ul>
<li>
Version 0.61, minor=2
</li>
<li>
Ordering of numeric and alphabetical keys (not default)
</li>
</ul>
</li>
<li id="sec-8.2">Wed Jun 30 13:28:21 EDT 2010 <br/>
<ul>
<li>
Version 0.61
</li>
<li>
Added a partitioner that partitions on the i'th element of a scalar vector
(strings, numerics and integers)
</li>
</ul>
</li>
<li id="sec-8.3">Fri May 28 17:11:16 EDT 2010 <br/>
<ul>
<li>
Now version 0.60
</li>
<li>
Added asynch options to <code>rhex</code>, so jobs can run in the background freeing the
R console. The return value can be used to monitor job progress. See
<a href="http://www.stat.purdue.edu/~sguha/rhipe/doc/html/rhmisc.html">Miscellaneous Commands</a> for more information.
</li>
</ul>
</li>
<li id="sec-8.4">Thu May 06 21:29:36 EDT 2010 <br/>
<ul>
<li>
Added <code>rhcp</code> and <code>rhmv</code> to copy and moves files when both source and destination are on the HDFS (thanks to Jeff Li)
</li>
</ul>
</li>
<li id="sec-8.5">Tue May 04 18:15:35 EDT 2010 <br/>
<ul>
<li>
Some bugs in the comparator - fixed.
</li>
</ul>
</li>
<li id="sec-8.6">Thu Apr 23 12:48:45 EDT 2010 - <br/>
<ul>
<li>
fixed comparators, <code>rhgetkey</code> working again. (0.59-2)
</li>
</ul>
</li>
<li id="sec-8.7">Thu Apr 22 12:23:37 EDT 2010 <br/>
<ul>
<li>
Fixed a bug in <code>rhlapply</code>, would not read in data. Thanks to <i>eddyu</i>
</li>
<li>
<code>rhoptions()$version</code> now has displays major, minor , date and notes. I added
this since i make changes to RHIPE but keep the version the same.
</li>
</ul>
</li>
<li id="sec-8.8">Mon Apr 19 02:00:22 EDT 2010 <br/>
<ul>
<li>
Less memory allocation in the key/value(s).
</li>
<li>
<code>rhread</code> now does not do a mapreduce job to convert sequence files to binary. Also has a <code>head</code> like function.
<ul>
<li>
if multicore is installed, then running rhread(..,mc=TRUE) will deserialize in parallel, which might or might be slower …
</li>
</ul>
</li>
<li>
<code>rhez</code> takes an option <code>mapred</code> which is of the same form as <code>mapred</code> in <code>rhmr</code>. This will override the <code>mapred</code> value in <code>rhmr</code>.
</li>
<li>
<code>rhgetkey</code> takes a parameter <code>skip</code> to read in large databases, also no need for trailing "*".
<ul>
</ul>
</li>
</ul>
</li>
<li id="sec-8.9">Thur Apr 15 <br/>
<ul>
<li>
moved to protobuf-2.3
</li>
</ul>
</li>
<li id="sec-8.10">Fri Apr 09 01:42:05 EDT 2010 <br/>
<ul>
<li>
<code>rhls</code> can now recurse
</li>
<li>
<code>rhread</code> now need only take a folder (no need for <code>rhmap.sqs</code> to read map files).
Use the <code>type</code> argument to specify sequence(or text) files or map files.
</li>
<li>
Similarly <code>rhmr</code> does not need <code>rhmap.sqs</code>
</li>
</ul>
</li>
<li id="sec-8.11">Wed Apr 07 16:56:07 EDT 2010 <br/>
<ul>
<li>
<code>rhread</code> takes a <code>max</code> argument that reads in only max number of key-value pairs
</li>
<li>
<code>rhex</code> passes all extra arguments to the system command.
</li>
</ul>
</li>
<li id="sec-8.12">Sat Mar 20 20:51:58 EDT 2010 <br/>
<ul>
<li>
Combiner bug fixed, it's still needs to be tested. Mail if numbers do not match.
</li>
</ul>
</li>
<li id="sec-8.13">Sat Mar 20 11:20:44 EDT 2010 <br/>
<ul>
<li>
Fixed combiner, still alpha, but it halves the wordcount speed. The combiner
logic is run in the R interpreter C code. However it is still alpha, so if you
get erroneous results kindly report them back.
</li>
<li>
Also fixed a buffer overflow in <code>main.c</code>. Thanks to Will Nolan.
</li>
<li>
Values and Keys can be now be upto 256MB.
</li>
</ul>
</li>
<li id="sec-8.14">Fri Feb 19 20:43:25 EST 2010 <br/>
<ul>
<li>
EC2 now works!
</li>
</ul>
</li>
<li id="sec-8.15">Thu Jan 14 20:19:24 EST 2010 <br/>
<ul>
<li>
Counters are returned to the R session (for <code>rhmr</code> only). That is the return
value of <code>rhmr</code> is a list, the first element indicates success/failure and the
second are all the counters visible in the job UI.
</li>
</ul>
</li>
<li id="sec-8.16">Wed Jan 13 02:52:27 EST 2010 <br/>
<ul>
<li>
Fixed a bug where errors in R code were not appearing. Somewhat fixed. Version
stays the same.
</li>
</ul>
</li>
<li id="sec-8.17">Thu Dec 24 11:58:04 EST 2009 <br/>
Released version 0.54
<ul>
<li>
Introduce a Hadoop Map File Outputformat and functions for reading a key from
map files(see help on rhmr and misc functions)
</li>
<li>
Fixed a bug for the case when no reducer is specified but RHIPE java code
threw an exception.
</li>
</ul>
</li>
<li id="sec-8.18">Sun Dec 13 22:11:53 EST 2009 <br/>
<ul>
<li>
Release **Version 0.53**
</li>
<li>
Bug fixes:
<ul>
<li>
Inserted R_CStackLimits, since I'm using Protobuf a threaded library, it was
upsetting R.
</li>
<li>
Removed Rf_duplicate
</li>
</ul>
</li>
<li>
Data types have been enhanced, now allows scalar vectors with attributes. Experimental.
</li>
<li>
A result of which can now write data.frames and read them back in.
</li>
<li>
Impose 64MB key,value serialization limit(workaround to come in
future). Objects bigger than this will be written successfully,but will fail
to read and will cause the job to fail.
</li>
</ul>
</li>
<li id="sec-8.19">Thu Dec 10 13:28:19 EST 2009 <br/>
<ul>
<li>
<code>rhcounter</code> ,available in mapreduce code, is more versatile. Previously, ','
in the counter names would upset Hadoop. Not anymore, see documentation for <code>rhmr</code>
</li>
</ul>
</li>
<li id="sec-8.20">Wed Dec 2 12:44:23 EST 2009 <br/>
<ul>
<li>
Failed when running RHIPE from different UID's. Now writes to
<code>/tmp/logger-UID</code>. Version number is still the same
</li>
</ul>
</li>
<li id="sec-8.21">Mon Oct 12 11:18:31 EDT 2009 <br/>
<ul>
<li>
Removed the dependency on rJava. Getting it to work with Hadoop classpaths
caused to much grief. The actualy RHIPE program remains unchanged but the
client handler (R package) is a bit slower(?)
</li>
</ul>
</li>
<li id="sec-8.22">Sun Sep 27 22:01:33 EDT 2009 <br/>
<ul>
<li>
Names are <b>only</b> read for VECSXP (list objects), because of a strange bug.
</li>
</ul>
</li>
<li id="sec-8.23">Tue Sep 8 15:35:24 EDT 2009 <br/>
<ul>
<li>
Moved to Hadoop 0.20
</li>
<li>
Uses protobuf for serialization, fewer R types allowed
</li>
<li>
Does not depend on Rserve, single R package to install
</li>
</ul>
</li>
<li id="sec-8.24">Fri Aug 7 2009, Version 0.45 <br/>
<ul>
<li>
Web site revamped. Beginning with the current version, the entire
manual is in PDF or can be accessed at the <a href="./doc/index.html/">documentation</a> link.
</li>
<li>
Source code is available on Git, go to the download page for instructions.
</li>
<li>
Stopped seeding via secure random generator, so the user will have
to seed it to avoid correlated streams. On RHEL linux
when running <code>rhlapply</code> on 145K+ tasks, <code>/dev/random</code> would block.
</li>
</ul>
</li>
</ul>
</div>
</div>
<div id="footnotes">
<h2 class="footnotes">Footnotes: </h2>
<div id="text-footnotes">
<p class="footnote"><sup><a class="footnum" name="fn.1" href="#fnr.1">1</a></sup> This is greek for <i>a moment in time</i>. See here for pronunciation:
<a href="http://www.searchgodsword.org/lex/grk/view.cgi?number=4493">Greek Lexicon</a>
</p>
</div>
</div>
<div id="postamble">
<p class="author"> Author: Saptarshi Guha
<a href="mailto:[email protected]"><[email protected]></a>
</p>
<p class="date"> Date: 2010-08-04 13:29:40 EDT</p>
<p class="creator">HTML generated by org-mode 6.33x in emacs 23</p>
</div>
</div>
</body>
</html>