Skip to content

Commit e5b24ef

Browse files
committed
Updating MapReduce for Python 3.6+
1 parent 1ec2c8c commit e5b24ef

File tree

1 file changed

+12
-31
lines changed

1 file changed

+12
-31
lines changed

mapreduce/mapreduce-python.ipynb

+12-31
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "markdown",
5-
"metadata": {},
6-
"source": [
7-
"This notebook was prepared by [Donne Martin](http://donnemartin.com). Source and license info is on [GitHub](https://github.com/donnemartin/data-science-ipython-notebooks)."
8-
]
9-
},
103
{
114
"cell_type": "markdown",
125
"metadata": {},
@@ -65,9 +58,7 @@
6558
{
6659
"cell_type": "code",
6760
"execution_count": null,
68-
"metadata": {
69-
"collapsed": false
70-
},
61+
"metadata": {},
7162
"outputs": [],
7263
"source": [
7364
"%%file mr_s3_log_parser.py\n",
@@ -227,9 +218,7 @@
227218
{
228219
"cell_type": "code",
229220
"execution_count": null,
230-
"metadata": {
231-
"collapsed": false
232-
},
221+
"metadata": {},
233222
"outputs": [],
234223
"source": [
235224
"!python mr_s3_log_parser.py -r emr s3://bucket-source/ --output-dir=s3://bucket-dest/"
@@ -245,9 +234,7 @@
245234
{
246235
"cell_type": "code",
247236
"execution_count": null,
248-
"metadata": {
249-
"collapsed": false
250-
},
237+
"metadata": {},
251238
"outputs": [],
252239
"source": [
253240
"!python mr_s3_log_parser.py input_data.txt > output_data.txt"
@@ -270,9 +257,7 @@
270257
{
271258
"cell_type": "code",
272259
"execution_count": null,
273-
"metadata": {
274-
"collapsed": false
275-
},
260+
"metadata": {},
276261
"outputs": [],
277262
"source": [
278263
"%%file test_mr_s3_log_parser.py\n",
@@ -383,9 +368,7 @@
383368
{
384369
"cell_type": "code",
385370
"execution_count": null,
386-
"metadata": {
387-
"collapsed": false
388-
},
371+
"metadata": {},
389372
"outputs": [],
390373
"source": [
391374
"!python test_mr_s3_log_parser.py -v"
@@ -401,9 +384,7 @@
401384
{
402385
"cell_type": "code",
403386
"execution_count": null,
404-
"metadata": {
405-
"collapsed": false
406-
},
387+
"metadata": {},
407388
"outputs": [],
408389
"source": [
409390
"runners:\n",
@@ -428,23 +409,23 @@
428409
],
429410
"metadata": {
430411
"kernelspec": {
431-
"display_name": "Python 2",
412+
"display_name": "Python 3",
432413
"language": "python",
433-
"name": "python2"
414+
"name": "python3"
434415
},
435416
"language_info": {
436417
"codemirror_mode": {
437418
"name": "ipython",
438-
"version": 2
419+
"version": 3
439420
},
440421
"file_extension": ".py",
441422
"mimetype": "text/x-python",
442423
"name": "python",
443424
"nbconvert_exporter": "python",
444-
"pygments_lexer": "ipython2",
445-
"version": "2.7.10"
425+
"pygments_lexer": "ipython3",
426+
"version": "3.6.1"
446427
}
447428
},
448429
"nbformat": 4,
449-
"nbformat_minor": 0
430+
"nbformat_minor": 1
450431
}

0 commit comments

Comments
 (0)