forked from mrry/skywriting
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgen-data.sh
More file actions
executable file
·13 lines (13 loc) · 817 Bytes
/
gen-data.sh
File metadata and controls
executable file
·13 lines (13 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
if [ ! -d data ]
then
mkdir -p data
echo "Generating SmithWaterman example data"
dd if=/dev/urandom of=data/horizontal_string_random ibs=1000 count=100
dd if=/dev/urandom of=data/vertical_string_random ibs=1000 count=100
echo "Generating KMeans example data"
java -cp `find ext/mahout-0.3/ -iname \*jar -printf %p:`dist/sky-eg-skyhout.jar skywriting.examples.skyhout.kmeans.RandomClusterSequenceFileGenerator data/kmeans-cluster 1 100 100 -1000000 1000000
java -cp `find ext/mahout-0.3/ -iname \*jar -printf %p:`dist/sky-eg-skyhout.jar skywriting.examples.skyhout.kmeans.RandomVectorSequenceFileGenerator data/kmeans-vector 1 10000 100 -1000000 1000000
echo "Generating PageRank example data"
./examples/skyhout/src/python/gen_pagerank.py 10000 > data/pagerank_graph
fi