24 |
|
|
25 |
|
|
26 |
Example of importing files into Storm, storing them on local disk directory: |
Example of importing files into Storm, storing them on local disk directory: |
27 |
|
mkdir ../test-pool |
28 |
make import POOL=../test-pool CT=text/plain FILES=../files/*.txt |
make import POOL=../test-pool CT=text/plain FILES=../files/*.txt |
29 |
|
ls ../test-pool |
30 |
|
|
31 |
Example of starting the gateway for http clients: |
Example of starting the gateway for http clients: |
32 |
make http-gateway POOL=../test-pool |
make http-gateway POOL=../test-pool |
33 |
|
|
34 |
|
|
35 |
|
Example of setting up P2P: |
36 |
|
start the peer that publishes: |
37 |
|
@fishy:~/ff/storm$ make peer ARGS="-pub pool -port 2000" |
38 |
|
|
39 |
|
start a local peer that can fetch the blocks: |
40 |
|
@fishy:~/ff/storm$ make peer ARGS="-gw 5000 -port 2001 localhost:2000" |
41 |
|
|
42 |
|
or, start a remote peer that can fetch the blocks: |
43 |
|
@himalia:~/ff/storm$ make peer ARGS="-gw 5000 -port 2000 fishy.it.jyu.fi:2000" |
44 |
|
|
45 |
|
Notice, that the peer gateways can only list blocks that have already been |
46 |
|
retrieved through them. So take the block id from http-gateway, or |
47 |
|
from filenames in ../test-pool. |