Before we boot up the Ozone cluster, we need to initialize both SCM and Ozone Manager.
ozone scm --initinit command is similar to Namenode format. Init command is executed only once, that allows SCM to create all the required on-disk structures to work correctly.
ozone --daemon start scmOnce we know SCM is up and running, we can create an Object Store for our use. This is done by running the following command.
ozone om --initOnce Ozone manager has created the Object Store, we are ready to run the name services.
ozone --daemon start omAt this point Ozone’s name services, the Ozone manager, and the block service SCM is both running.
Please note: If SCM is not running
om --init command will fail. SCM start will fail if on-disk data structures are missing. So please make sure you have done both scm --init and om --init commands.
Now we need to start the data nodes. Please run the following command on each datanode.
ozone --daemon start datanodeAt this point SCM, Ozone Manager and data nodes are up and running.
Congratulations!, You have set up a functional ozone cluster.
If you want to make your life simpler, you can just run
ozone scm --init
ozone om --init
start-ozone.sh