lokeshj1703 commented on a change in pull request #1826:
URL: https://github.com/apache/ozone/pull/1826#discussion_r585565195



##########
File path: hadoop-ozone/dist/src/main/compose/upgrade/generate-data.sh
##########
@@ -0,0 +1,25 @@
+#!/usr/bin/env bash
+# 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.
+
+# This script can be run only if the cluster is already started 
+# one, and initialized (but not data is written, yet).
+
+docker-compose run scm ozone freon cgscm -n 1

Review comment:
       I do not really have strong opinion on the script. Just wanted to try it 
out. But somehow I am still not able to make it work.
   ```
   ljain-mbp15:upgrade ljain$ ./generate-data.sh
   Stopping upgrade_s3g_1 ... done
   Stopping upgrade_dn1_1 ... done
   Stopping upgrade_scm_1 ... done
   Stopping upgrade_dn3_1 ... done
   Stopping upgrade_om_1  ... done
   Stopping upgrade_dn2_1 ... done
   Creating upgrade_scm_run ... done
   To use Ozone please mount ozone folder to /opt/hadoop
   /usr/local/bin/entrypoint.sh: line 22: exec: ozone: not found
   ERROR: 127
   Creating upgrade_om_run ... done
   To use Ozone please mount ozone folder to /opt/hadoop
   /usr/local/bin/entrypoint.sh: line 22: exec: ozone: not found
   ERROR: 127
   Creating upgrade_dn1_run ... done
   To use Ozone please mount ozone folder to /opt/hadoop
   /usr/local/bin/entrypoint.sh: line 22: exec: ozone: not found
   ERROR: 127
   Creating upgrade_dn2_run ... done
   To use Ozone please mount ozone folder to /opt/hadoop
   /usr/local/bin/entrypoint.sh: line 22: exec: ozone: not found
   ERROR: 127
   Creating upgrade_dn2_run ... done
   To use Ozone please mount ozone folder to /opt/hadoop
   /usr/local/bin/entrypoint.sh: line 22: exec: ozone: not found
   ERROR: 127
   ```
   I tried changing the script in this manner to make it work. But it still 
failed for me.
   ```
   docker-compose run scm /opt/hadoop/bin/ozone freon cgscm -n 1
   ```
   ```
   Creating upgrade_scm_run ... done
   To use Ozone please mount ozone folder to /opt/hadoop
   /usr/local/bin/entrypoint.sh: line 22: /opt/hadoop/bin/ozone: No such file 
or directory
   ERROR: 127
   ```




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to