Created
June 8, 2016 00:55
-
-
Save tag1216/33e6f640b239e98cafe05df425159f0a to your computer and use it in GitHub Desktop.
Hadoop-Streaming Pythonで外部モジュールを使用
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
sys.path.append("./") # -filesで指定したファイルはカレントディレクトリにコピーされるのでパスを通す | |
import test2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
${hadoop} jar ${STREAMING} \ | |
-files "../common/test2.py" \ <ー-Dより前に指定する | |
-D... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment