HDDS-1914. Ozonescript example docker-compose cluster can't be started
Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
parent
48dc441864
commit
846848ac4c
@ -13,4 +13,4 @@
|
|||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/
|
JAVA_HOME=/usr/lib/jvm/jre
|
||||||
|
@ -14,8 +14,9 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
FROM apache/ozone-runner
|
FROM apache/ozone-runner
|
||||||
RUN sudo apt-get update && sudo apt-get install -y openssh-server
|
RUN sudo yum install -y openssh-clients openssh-server
|
||||||
|
|
||||||
|
RUN sudo ssh-keygen -A
|
||||||
RUN sudo mkdir -p /run/sshd
|
RUN sudo mkdir -p /run/sshd
|
||||||
RUN sudo sed -i "s/.*UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config
|
RUN sudo sed -i "s/.*UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config
|
||||||
RUN sudo sed -i "s/.*PermitUserEnvironment.*/PermitUserEnvironment yes/g" /etc/ssh/sshd_config
|
RUN sudo sed -i "s/.*PermitUserEnvironment.*/PermitUserEnvironment yes/g" /etc/ssh/sshd_config
|
||||||
@ -29,5 +30,5 @@ RUN sudo chown hadoop /opt
|
|||||||
RUN sudo chmod 600 /opt/.ssh/*
|
RUN sudo chmod 600 /opt/.ssh/*
|
||||||
RUN sudo chmod 700 /opt/.ssh
|
RUN sudo chmod 700 /opt/.ssh
|
||||||
|
|
||||||
RUN sudo sh -c 'echo "export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/" >> /etc/profile'
|
RUN sudo sh -c 'echo "export JAVA_HOME=/usr/lib/jvm/jre/" >> /etc/profile'
|
||||||
CMD ["sudo","/usr/sbin/sshd","-D"]
|
CMD ["sudo","/usr/sbin/sshd","-D"]
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/
|
|
||||||
CORE-SITE.XML_fs.defaultFS=hdfs://namenode:9000
|
CORE-SITE.XML_fs.defaultFS=hdfs://namenode:9000
|
||||||
OZONE-SITE.XML_ozone.ksm.address=ksm
|
OZONE-SITE.XML_ozone.ksm.address=ksm
|
||||||
OZONE-SITE.XML_ozone.scm.names=scm
|
OZONE-SITE.XML_ozone.scm.names=scm
|
||||||
@ -37,4 +36,4 @@ LOG4J.PROPERTIES_log4j.rootLogger=INFO, stdout
|
|||||||
LOG4J.PROPERTIES_log4j.logger.org.apache.hadoop.util.NativeCodeLoader=ERROR, stdout
|
LOG4J.PROPERTIES_log4j.logger.org.apache.hadoop.util.NativeCodeLoader=ERROR, stdout
|
||||||
LOG4J.PROPERTIES_log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
LOG4J.PROPERTIES_log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||||
LOG4J.PROPERTIES_log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
LOG4J.PROPERTIES_log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||||
LOG4J.PROPERTIES_log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
|
LOG4J.PROPERTIES_log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
|
||||||
|
@ -14,7 +14,9 @@
|
|||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
set -x
|
||||||
docker-compose ps | grep datanode | awk '{print $1}' | xargs -n1 docker inspect --format '{{ .Config.Hostname }}' > ../../etc/hadoop/workers
|
docker-compose ps | grep datanode | awk '{print $1}' | xargs -n1 docker inspect --format '{{ .Config.Hostname }}' > ../../etc/hadoop/workers
|
||||||
|
docker-compose ps | grep ozonescripts | awk '{print $1}' | xargs -I CONTAINER -n1 docker exec CONTAINER cp /opt/hadoop/etc/hadoop/workers /etc/hadoop/workers
|
||||||
docker-compose exec scm /opt/hadoop/bin/ozone scm --init
|
docker-compose exec scm /opt/hadoop/bin/ozone scm --init
|
||||||
docker-compose exec scm /opt/hadoop/sbin/start-ozone.sh
|
docker-compose exec scm /opt/hadoop/sbin/start-ozone.sh
|
||||||
#We need a running SCM for om objectstore creation
|
#We need a running SCM for om objectstore creation
|
||||||
|
Loading…
Reference in New Issue
Block a user