Repository: hadoop Updated Branches: refs/heads/docker-hadoop-runner 9b8eae852 -> a63c65476
HDDS-189. Update HDDS to start OzoneManager. Contributed by Arpit Agarwal. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a63c6547 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a63c6547 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a63c6547 Branch: refs/heads/docker-hadoop-runner Commit: a63c654761b657b82768f1fe0ee5911bee1092c2 Parents: 9b8eae8 Author: Arpit Agarwal <a...@apache.org> Authored: Mon Jun 25 09:17:29 2018 -0700 Committer: Arpit Agarwal <a...@apache.org> Committed: Mon Jun 25 09:17:29 2018 -0700 ---------------------------------------------------------------------- README.md | 15 +++++++++++++-- scripts/starter.sh | 23 +++++++++++++++++++---- 2 files changed, 32 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/a63c6547/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index d43405d..eb6facd 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,21 @@ docker build -t apache/hadoop-runner . ## Usage -Do a full build on the HDFS-7240 branch of apache hadoop repositry +Do a full build on Apache Hadoop trunk with the `hdds` profile enabled. +``` +mvn clean install package -DskipTests -Pdist,hdds -Dtar -Dmaven.javadoc.skip=true +``` + +Then start HDDS services with `docker-compose`. ``` -cd dev-support/compose/ozone +cd hadoop-dist/target/compose/ozone docker-compose up -d ``` +## Troubleshooting + +If `docker-compose` fails to work, check that the `hadoop-dist/target/compose/ozone/.env` file exists and has a line like the following (the exact version number may be different): +``` + HDDS_VERSION=0.2.1-SNAPSHOT +``` http://git-wip-us.apache.org/repos/asf/hadoop/blob/a63c6547/scripts/starter.sh ---------------------------------------------------------------------- diff --git a/scripts/starter.sh b/scripts/starter.sh index 7792f1c..7c51826 100755 --- a/scripts/starter.sh +++ b/scripts/starter.sh @@ -55,12 +55,27 @@ if [ -n "$ENSURE_SCM_INITIALIZED" ]; then fi fi + +if [ -n "$ENSURE_OM_INITIALIZED" ]; then + if [ ! -f "$ENSURE_OM_INITIALIZED" ]; then + # To make sure SCM is running in dockerized environment we will sleep + # Could be removed after HDFS-13203 + echo "Waiting 15 seconds for SCM startup" + sleep 15 + /opt/hadoop/bin/ozone om -createObjectStore + fi +fi + + +# The KSM initialization block will go away eventually once +# we have completed renaming KSM to OzoneManager (OM). +# if [ -n "$ENSURE_KSM_INITIALIZED" ]; then if [ ! -f "$ENSURE_KSM_INITIALIZED" ]; then - #To make sure SCM is running in dockerized environment we will sleep - # Could be removed after HDFS-13203 - echo "Waiting 15 seconds for SCM startup" - sleep 15 + # To make sure SCM is running in dockerized environment we will sleep + # Could be removed after HDFS-13203 + echo "Waiting 15 seconds for SCM startup" + sleep 15 /opt/hadoop/bin/ozone ksm -createObjectStore fi fi --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org