+1
Makefile
+1
Makefile
+15
-9
README.md
+15
-9
README.md
···
62
62
63
63
## Usage
64
64
65
-
First, you have to setup the project.
66
-
67
-
```sh
68
-
make all
69
-
```
65
+
First, check out the different parts in the project:
70
66
71
67
This will compile all the necessary executables and put them in a directory
72
68
called: `./.build`. The executables provided are:
···
176
172
177
173
Remember, this will put all the executables in a directory called `.build`.
178
174
179
-
Then, launch the metadata server first!
175
+
Then, you have to create the database:
180
176
177
+
```sh
178
+
./.build/createdb
179
+
```
180
+
181
+
Now, you can start launching things! First, you want to create the metadata
182
+
server. Like this:
181
183
182
184
```sh
183
185
./.build/metadata-server 127.0.0.1 42069
184
186
```
185
187
186
-
Leave this running in the background. Now launch several data nodes in other
187
-
terminals:
188
+
Leave this running in the background. Now, go to a different terminal and launch
189
+
several data nodes in other terminals:
188
190
189
191
Terminal 1:
190
192
```sh
···
208
210
209
211
There is a `./test.sh` file that can help you test out your files. It will create
210
212
a `500MB` file. I tested this with files up to `5GB` so if you want to try that,
211
-
just add another 0 to the `./test.sh` file.
213
+
just add another 0 to the line in `./test.sh` that has the following:
214
+
215
+
```sh
216
+
cat /dev/random | head -c5000000000 > 500MB.bin
217
+
```