Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is the traditional method. Please follow the build instructions from the Development cluster with docker page to build the Ozone tarball.

You Once the package is built, you can start it Ozone services by going to the hadoop-dist/target/hadoopozone-30.2.01-SNAPSHOT directory and start the cluster.

Configuration

There is a detailed documentation about the configuration of Ozone cluster. But If you would like to To get started, just save the following minimal snippet to the etc/hadoop/ozone-site.xml file (inside your hadoop distribution)

Code Block
languagexml
<properties>
<property><name>ozone.scm.block.omclient.address</name><value>localhost</value></property>
<property><name>ozone.handler.type</name><value>distributed</value></property>
<property><name>ozone.enabled</name><value>True</value></property>
<property><name>ozone.scm.datanode.id</name><value>/tmptmo/ozone/data/datanode.id</value></property>
<property><name>ozone.scm.names<client.address</name><value>localhost</value></property>
<property><name>ozone.handler.type<replication</name><value>distributed<name><value>1</value></property>
<property><name>ozone.container.metadata.dirs</name><value>/tmp/ozone/data/metadata</value></property>
<property><name>ozone.scm.block.client.address</name><value>localhost<names</name><value>scm</value></property>
<property><name>ozone.scmom.client.address</name><value>localhost</value></property>
<property><name>ozone.enabled</name><value>True</value></property>
</properties>

Run

Ozone is designed to run concurrently with HDFS. The simplest way to start is to run start-dfs.sh from the $HADOOP/sbin/start-dfs.sh. Once HDFS is running, please verify it is fully functional by running some commands like.

  

Code Block
hdfs dfs -mkdir /usr
hdfs dfs -ls /

 

Once you are sure that HDFS is running, start Ozone. To start ozone, you need to start SCM and KSM. Currently we assume that both KSM and SCM is running on the same node, this will change in future.

To start ozone, you need to start SCM and OzoneManager. In pseudo-cluster mode, both services will be started on localhost.

Code Block
languagebash
  bin/ozone scm -init
  bin/ozone --daemon start scm
  bin/ozone om -createObjectStore
  bin/ozone
Code Block
./hdfs --daemon start scmom
.  bin/hdfsozone --daemon start ksmdatanode

 

if you would like to start HDFS and Ozone together, you can do that by running a single command.

Code Block
$HADOOP/sbin/start-ozone.sh

This command will start HDFS and then start the ozone components.

Once you have ozone running you can use these ozone Ozone shell commands to create a volume, bucket and keys.

...