[ https://issues.apache.org/jira/browse/HDDS-1518?focusedWorklogId=243298&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-243298 ]
ASF GitHub Bot logged work on HDDS-1518: ---------------------------------------- Author: ASF GitHub Bot Created on: 16/May/19 12:47 Start Date: 16/May/19 12:47 Worklog Time Spent: 10m Work Description: anuengineer commented on pull request #814: HDDS-1518. Use /etc/ozone for configuration inside docker-compose URL: https://github.com/apache/hadoop/pull/814#discussion_r284687801 ########## File path: Dockerfile ########## @@ -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 777 /etc/hadoop && chmod 777 /var/log/hadoop +ENV HADOOP_LOG_DIR=/var/log/hadoop +ENV HADOOP_CONF_DIR=/etc/hadoop Review comment: +1, I will commit this now. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 243298) Time Spent: 1h 50m (was: 1h 40m) > Use /etc/ozone for configuration inside docker-compose > ------------------------------------------------------- > > Key: HDDS-1518 > URL: https://issues.apache.org/jira/browse/HDDS-1518 > Project: Hadoop Distributed Data Store > Issue Type: Sub-task > Reporter: Elek, Marton > Assignee: Elek, Marton > Priority: Major > Labels: pull-request-available > Time Spent: 1h 50m > Remaining Estimate: 0h > > As [~eyang] reported the docker-compose clusters write the config files with > uid=1000. In case of the build is created with different user (eg id=401) the > hadoop user inside the container (id=100) can't work to the ozone/etc/hadoop > directory. > I propose to generate the configuration file to /etc/hadoop (And add that > directory to the classpath). In that case the volume mount of the ozone > distribution folder can be read only. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org