HDDS-1518. Use /etc/ozone for configuration inside docker-compose.
Contributed by Elek, Marton.
(cherry picked from commit ac814f15b1
)
This commit is contained in:
parent
fc758b4be6
commit
527b43b604
|
@ -36,7 +36,9 @@ RUN chown hadoop /opt
|
|||
ADD scripts /opt/
|
||||
ADD scripts/krb5.conf /etc/
|
||||
RUN yum install -y krb5-workstation
|
||||
|
||||
RUN mkdir -p /etc/hadoop && mkdir -p /var/log/hadoop && chmod 1777 /etc/hadoop && chmod 1777 /var/log/hadoop
|
||||
ENV HADOOP_LOG_DIR=/var/log/hadoop
|
||||
ENV HADOOP_CONF_DIR=/etc/hadoop
|
||||
WORKDIR /opt/hadoop
|
||||
|
||||
VOLUME /data
|
||||
|
|
|
@ -36,7 +36,7 @@ class Simple(object):
|
|||
|
||||
self.known_formats = ['xml', 'properties', 'yaml', 'yml', 'env', "sh", "cfg", 'conf']
|
||||
self.output_dir = self.args.destination
|
||||
|
||||
self.excluded_envs = ['HADOOP_CONF_DIR']
|
||||
self.configurables = {}
|
||||
|
||||
def destination_file_path(self, name, extension):
|
||||
|
@ -51,6 +51,8 @@ class Simple(object):
|
|||
def process_envs(self):
|
||||
"""Process environment variables"""
|
||||
for key in os.environ.keys():
|
||||
if key in self.excluded_envs:
|
||||
continue
|
||||
pattern = re.compile("[_\\.]")
|
||||
parts = pattern.split(key)
|
||||
extension = None
|
||||
|
|
|
@ -99,7 +99,7 @@ fi
|
|||
#To avoid docker volume permission problems
|
||||
sudo chmod o+rwx /data
|
||||
|
||||
"$DIR"/envtoconf.py --destination /opt/hadoop/etc/hadoop
|
||||
"$DIR"/envtoconf.py --destination "${HADOOP_CONF_DIR:-/opt/hadoop/etc/hadoop}"
|
||||
|
||||
if [ -n "$ENSURE_NAMENODE_DIR" ]; then
|
||||
CLUSTERID_OPTS=""
|
||||
|
|
Loading…
Reference in New Issue