...
This is the traditional way to start a development cluster from source code. Once the package is built, you can start Ozone services by going to the hadoop-ozone/dist/target/ozone-*/
directory. Your Unix shell should expand the '*' wildcard to the correct Ozone version number.
...
Save the minimal snippet to hadoop-ozone/dist/target/ozone-*/etc/hadoop/ozone-site.xml
in the compiled distribution.
...
To start ozone, you need to start SCM, OzoneManager and DataNode. In pseudo-cluster mode, all services will be started on localhost.
Note : jps (use this command to check if all the daemons are up and running or not)
Code Block | ||||
---|---|---|---|---|
| ||||
cd ../../ (move up two levels in the directory hierarchy to hadoop-ozone/dist/target/ozone-*/) bin/ozone scm --init bin/ozone --daemon start scm bin/ozone om --init bin/ozone --daemon start om bin/ozone --daemon start datanode |
...
Code Block | ||||
---|---|---|---|---|
| ||||
bin/ozone sh volume create /vol1 bin/ozone sh bucket create /vol1/bucket1 dd if=/dev/zero of=/tmp/myfile bs=1024 count=1 bin/ozone sh key put -t=RATIS -r=ONE /vol1/bucket1/key1 /tmp/myfile binbin/ozone sh key list /vol1/bucket1 |
...