You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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

Once the package is built, you can start Ozone services by going to the hadoop-dist/target/ozone-0.2.1-SNAPSHOT directory.

Configuration

To get started, just save the minimal snippet to the etc/hadoop/ozone-site.xml file (inside your hadoop distribution)

<properties>
<property><name>ozone.scm.block.client.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>/tmo/ozone/data/datanode.id</value></property>
<property><name>ozone.scm.client.address</name><value>localhost</value></property>
<property><name>ozone.replication</name><value>1</value></property>
<property><name>ozone.metadata.dirs</name><value>/tmp/ozone/data/metadata</value></property>
<property><name>ozone.scm.names</name><value>scm</value></property>
<property><name>ozone.om.address</name><value>localhost</value></property>
</properties>

Run

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

  bin/ozone scm -init
  bin/ozone --daemon start scm
  bin/ozone om -createObjectStore
  bin/ozone --daemon start om
  bin/ozone --daemon start datanode

 

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


  • No labels