-
Notifications
You must be signed in to change notification settings - Fork 972
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RANGER-3801: Add support for Ozone in docker (#377)
Includes following changes: - Add support for Ozone in docker with ranger-ozone plugin enabled - Docker CI updated to include ozone containers - download-archives.sh updated to allow download of specific service tarballs - Updated docker README
- Loading branch information
Showing
15 changed files
with
964 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 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 | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# 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 | ||
# limitations under the License. | ||
|
||
ARG OZONE_RUNNER_IMAGE | ||
ARG OZONE_RUNNER_VERSION | ||
FROM ${OZONE_RUNNER_IMAGE}:${OZONE_RUNNER_VERSION} | ||
|
||
ARG OZONE_HOME | ||
ARG OZONE_PLUGIN_VERSION | ||
|
||
USER root | ||
|
||
RUN useradd -g hadoop -ms /bin/bash ozone | ||
RUN mkdir -p -m 755 /var/log/ozone | ||
|
||
# Required to locate the plugin jars and the config files | ||
ENV OZONE_MANAGER_CLASSPATH="${OZONE_HOME}/ranger-ozone-plugin/lib/libext/*:${OZONE_HOME}/ranger-ozone-plugin/conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# 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 | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# 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 | ||
# limitations under the License. | ||
|
||
CORE-SITE.XML_fs.defaultFS=ofs://om | ||
CORE-SITE.XML_fs.trash.interval=1 | ||
# For HttpFS service it is required to enable proxying users. | ||
CORE-SITE.XML_hadoop.proxyuser.hadoop.hosts=* | ||
CORE-SITE.XML_hadoop.proxyuser.hadoop.groups=* | ||
|
||
OZONE-SITE.XML_ozone.om.address=om | ||
OZONE-SITE.XML_ozone.om.http-address=om:9874 | ||
OZONE-SITE.XML_ozone.scm.http-address=scm:9876 | ||
OZONE-SITE.XML_ozone.scm.container.size=1GB | ||
OZONE-SITE.XML_ozone.scm.block.size=1MB | ||
OZONE-SITE.XML_ozone.scm.datanode.ratis.volume.free-space.min=10MB | ||
OZONE-SITE.XML_ozone.scm.pipeline.creation.interval=30s | ||
OZONE-SITE.XML_ozone.scm.pipeline.owner.container.count=1 | ||
OZONE-SITE.XML_ozone.scm.names=scm | ||
OZONE-SITE.XML_ozone.scm.datanode.id.dir=/data | ||
OZONE-SITE.XML_ozone.scm.block.client.address=scm | ||
OZONE-SITE.XML_ozone.metadata.dirs=/data/metadata | ||
#OZONE-SITE.XML_ozone.recon.db.dir=/data/metadata/recon | ||
OZONE-SITE.XML_ozone.scm.client.address=scm | ||
OZONE-SITE.XML_hdds.datanode.dir=/data/hdds | ||
OZONE-SITE.XML_hdds.datanode.volume.min.free.space=100MB | ||
#OZONE-SITE.XML_ozone.recon.address=recon:9891 | ||
#OZONE-SITE.XML_ozone.recon.http-address=0.0.0.0:9888 | ||
#OZONE-SITE.XML_ozone.recon.https-address=0.0.0.0:9889 | ||
#OZONE-SITE.XML_ozone.recon.om.snapshot.task.interval.delay=1m | ||
OZONE-SITE.XML_ozone.datanode.pipeline.limit=1 | ||
OZONE-SITE.XML_hdds.scmclient.max.retry.timeout=30s | ||
OZONE-SITE.XML_hdds.container.report.interval=60s | ||
OZONE-SITE.XML_ozone.scm.stale.node.interval=30s | ||
OZONE-SITE.XML_ozone.scm.dead.node.interval=45s | ||
OZONE-SITE.XML_hdds.heartbeat.interval=5s | ||
OZONE-SITE.XML_ozone.scm.close.container.wait.duration=5s | ||
OZONE-SITE.XML_hdds.scm.replication.thread.interval=15s | ||
OZONE-SITE.XML_hdds.scm.replication.under.replicated.interval=5s | ||
OZONE-SITE.XML_hdds.scm.replication.over.replicated.interval=5s | ||
OZONE-SITE.XML_hdds.scm.wait.time.after.safemode.exit=30s | ||
OZONE-SITE.XML_ozone.http.basedir=/tmp/ozone_http | ||
|
||
OZONE-SITE.XML_hdds.container.ratis.datastream.enabled=true | ||
|
||
OZONE_CONF_DIR=/etc/hadoop | ||
OZONE_LOG_DIR=/var/log/hadoop | ||
|
||
no_proxy=om,scm,s3g,recon,kdc,localhost,127.0.0.1 | ||
|
||
# Explicitly enable filesystem snapshot feature for this Docker compose cluster | ||
OZONE-SITE.XML_ozone.filesystem.snapshot.enabled=true | ||
|
||
# To enable Ranger as the Authorizer in Ozone | ||
OZONE-SITE.XML_ozone.acl.enabled=true | ||
OZONE-SITE.XML_ozone.acl.authorizer.class=org.apache.ranger.authorization.ozone.authorizer.RangerOzoneAuthorizer |
Oops, something went wrong.