Skip to content

Instantly share code, notes, and snippets.

@tag1216
Created June 8, 2016 00:55
Show Gist options
  • Save tag1216/33e6f640b239e98cafe05df425159f0a to your computer and use it in GitHub Desktop.
Save tag1216/33e6f640b239e98cafe05df425159f0a to your computer and use it in GitHub Desktop.
Hadoop-Streaming Pythonで外部モジュールを使用
import sys
sys.path.append("./") # -filesで指定したファイルはカレントディレクトリにコピーされるのでパスを通す
import test2
${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