编写环境
hadoop-2.6.5
python-2.7.5
xshell连接
金山云平台,一台master,3台selvet
数据类型
g 445
a 1117
b 222
c 333
d 444
e 123
f 345
h 456
map.py
1 #!/usr/bin/env python
2 import sys
3 list1=[]
4 for line in sys.stdin:
5 line=line.strip()
6 words = line.split("\n")
7 list1.append(words[0])