2018-09-17 13:46:28 -04:00
|
|
|
---
|
2019-06-28 13:51:30 -04:00
|
|
|
title: Pseudo-cluster
|
2019-09-16 09:41:17 -04:00
|
|
|
weight: 23
|
2019-06-28 13:51:30 -04:00
|
|
|
|
2018-09-17 13:46:28 -04:00
|
|
|
---
|
|
|
|
<!---
|
2018-09-17 19:21:10 -04:00
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
2018-09-17 13:46:28 -04:00
|
|
|
|
2018-09-17 19:21:10 -04:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2018-09-17 13:46:28 -04:00
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
2018-09-17 19:21:10 -04:00
|
|
|
limitations under the License.
|
2018-09-17 13:46:28 -04:00
|
|
|
-->
|
|
|
|
|
2019-06-28 13:51:30 -04:00
|
|
|
{{< requirements >}}
|
|
|
|
* docker and docker-compose
|
|
|
|
{{< /requirements >}}
|
2018-09-17 13:46:28 -04:00
|
|
|
|
2019-06-28 13:51:30 -04:00
|
|
|
* Download the Ozone binary tarball and untar it.
|
2018-09-17 13:46:28 -04:00
|
|
|
|
|
|
|
* Go to the directory where the docker compose files exist and tell
|
|
|
|
`docker-compose` to start Ozone in the background. This will start a small
|
|
|
|
ozone instance on your machine.
|
|
|
|
|
|
|
|
{{< highlight bash >}}
|
2019-04-29 16:28:19 -04:00
|
|
|
cd compose/ozone/
|
2018-09-17 13:46:28 -04:00
|
|
|
|
|
|
|
docker-compose up -d
|
|
|
|
{{< /highlight >}}
|
|
|
|
|
|
|
|
To verify that ozone is working as expected, let us log into a data node and
|
|
|
|
run _freon_, the load generator for Ozone. The ```exec datanode bash``` command
|
2019-04-29 16:28:19 -04:00
|
|
|
will open a bash shell on the datanode.
|
|
|
|
|
|
|
|
The `ozone freon` command is executed within the datanode container. You can quit freon via CTRL-C any time. The
|
2018-09-17 13:46:28 -04:00
|
|
|
```rk``` profile instructs freon to generate random keys.
|
|
|
|
|
|
|
|
{{< highlight bash >}}
|
|
|
|
docker-compose exec datanode bash
|
|
|
|
ozone freon rk
|
|
|
|
{{< /highlight >}}
|
|
|
|
|
|
|
|
You can check out the **OzoneManager UI** at http://localhost:9874/ to see the
|
|
|
|
activity generated by freon.
|
|
|
|
While you are there, please don't forget to check out the ozone configuration explorer.
|
|
|
|
|
|
|
|
***Congratulations, You have just run your first ozone cluster.***
|
|
|
|
|
|
|
|
To shutdown the cluster, please run
|
|
|
|
{{< highlight bash >}}
|
|
|
|
docker-compose down
|
2019-06-28 13:51:30 -04:00
|
|
|
{{< /highlight >}}
|
|
|
|
|