summaryrefslogtreecommitdiff
path: root/hadoop/streaming/mapper_test1.py
diff options
context:
space:
mode:
Diffstat (limited to 'hadoop/streaming/mapper_test1.py')
-rw-r--r--hadoop/streaming/mapper_test1.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/hadoop/streaming/mapper_test1.py b/hadoop/streaming/mapper_test1.py
new file mode 100644
index 0000000..79c8aa6
--- /dev/null
+++ b/hadoop/streaming/mapper_test1.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python2
+
+import sys
+
+
+if __name__ == "__main__":
+ for line in sys.stdin:
+ print "MYKEY\t%s"%line.upper()
+