Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion hadoop-ozone/dist/src/main/compose/ozone-om-ha/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM apache/ozone-runner
ARG OZONE_RUNNER_VERSION

FROM apache/ozone-runner:${OZONE_RUNNER_VERSION}

# Install ssh
RUN sudo yum install -y openssh-clients openssh-server
Expand Down
30 changes: 25 additions & 5 deletions hadoop-ozone/dist/src/main/compose/ozone-om-ha/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
version: "3"
services:
datanode:
build: .
build:
context: .
args:
- OZONE_RUNNER_VERSION
image: ozone-runner-om-ha:${OZONE_RUNNER_VERSION}
privileged: true #required by the profiler
volumes:
- ../..:/opt/hadoop
Expand All @@ -27,7 +31,11 @@ services:
env_file:
- ./docker-config
om1:
build: .
build:
context: .
args:
- OZONE_RUNNER_VERSION
image: ozone-runner-om-ha:${OZONE_RUNNER_VERSION}
privileged: true #required by the profiler
volumes:
- ../..:/opt/hadoop
Expand All @@ -40,7 +48,11 @@ services:
- ./docker-config
command: sleep 1d
om2:
build: .
build:
context: .
args:
- OZONE_RUNNER_VERSION
image: ozone-runner-om-ha:${OZONE_RUNNER_VERSION}
privileged: true #required by the profiler
volumes:
- ../..:/opt/hadoop
Expand All @@ -53,7 +65,11 @@ services:
- ./docker-config
command: sleep 1d
om3:
build: .
build:
context: .
args:
- OZONE_RUNNER_VERSION
image: ozone-runner-om-ha:${OZONE_RUNNER_VERSION}
privileged: true #required by the profiler
volumes:
- ../..:/opt/hadoop
Expand All @@ -66,7 +82,11 @@ services:
- ./docker-config
command: sleep 1d
scm:
build: .
build:
context: .
args:
- OZONE_RUNNER_VERSION
image: ozone-runner-om-ha:${OZONE_RUNNER_VERSION}
privileged: true #required by the profiler
volumes:
- ../..:/opt/hadoop
Expand Down
6 changes: 5 additions & 1 deletion hadoop-ozone/dist/src/main/compose/ozonescripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM apache/ozone-runner

ARG OZONE_RUNNER_VERSION

FROM apache/ozone-runner:${OZONE_RUNNER_VERSION}

RUN sudo yum install -y openssh-clients openssh-server

RUN sudo ssh-keygen -A
Expand Down
6 changes: 3 additions & 3 deletions hadoop-ozone/dist/src/main/compose/ozonescripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ similar to a real cluster.
To use it, first start the cluster:

```
docker-copmose up -d
docker-compose up -d
```

After a successfull startup (which starts only the ssh daemons) you can start ozone:
After a successful startup (which starts only the ssh daemons) you can start ozone:

```
./start.sh
Expand All @@ -35,4 +35,4 @@ Check it the java processes are started:

```
./ps.sh
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,35 @@
version: "3"
services:
datanode:
build: .
build:
context: .
args:
- OZONE_RUNNER_VERSION
image: ozone-runner-scripts:${OZONE_RUNNER_VERSION}
volumes:
- ../..:/opt/hadoop
ports:
- 9864
env_file:
- ./docker-config
om:
build: .
build:
context: .
args:
- OZONE_RUNNER_VERSION
image: ozone-runner-scripts:${OZONE_RUNNER_VERSION}
volumes:
- ../..:/opt/hadoop
ports:
- 9874:9874
env_file:
- ./docker-config
scm:
build: .
build:
context: .
args:
- OZONE_RUNNER_VERSION
image: ozone-runner-scripts:${OZONE_RUNNER_VERSION}
volumes:
- ../..:/opt/hadoop
ports:
Expand Down