THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
To build Ozone, please check out the Hadoop sources from the Apache Git Rep. Then check out trunk and build it with the
hdds
Maven profile enabled.Code Block | ||
---|---|---|
| ||
git clone git://git.apache.org/hadoop.git cd hadoop && git checkout trunk mvn clean package install -Phdds -DskipTests=true -Dmaven.javadoc.skip=true -Pdist -Dtar -DskipShade |
...
After building the package, run the following command in the git root directory.
Code Block | ||
---|---|---|
| ||
cd $(git rev-parse --show-toplevel)/hadoop-dist/target/ozone-?.?.?-SNAPSHOT/compose/ozone docker-compose up -d |
...
To run commands on your Ozone cluster please ssh into any DataNode.
Code Block | ||
---|---|---|
| ||
docker-compose exec datanode bash |
...
Alternatively, you can try running freon, the load generator for ozone. The following command creates a volume, ten buckets and writes one hundred keys to each bucket using corona.
Code Block | ||
---|---|---|
| ||
ozone freon -mode offline -validateWrites -numOfVolumes 1 -numOfBuckets 10 -numOfKeys 100 |
...