hadoop-demo: updated and tested SR; moved to software/unstable
[slapos.git] / software / unstable / hadoop-demo / gutenberg / put-files.sh.in
1 #!/bin/bash
2
3 # exit on error
4 # set -e
5
6 source environment.sh
7
8 hdfs dfs -mkdir var/gutenberg/input
9
10 RAW_DATA=var/gutenberg/raw-data
11
12 for file in `ls $RAW_DATA`; do
13 hdfs dfs -put $RAW_DATA/$file var/gutenberg/input
14 done
15
16
17