HDDS-1419. Fix shellcheck errors in start-chaos.sh

Closes #728
This commit is contained in:
Doroszlai, Attila 2019-04-11 16:37:17 +02:00 committed by Márton Elek
parent a9b46c58fe
commit 75ba719ddd
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28
1 changed files with 8 additions and 8 deletions

View File

@ -15,21 +15,21 @@
# 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.
date=`date +"%Y-%m-%d--%H-%M-%S-%Z"` date=$(date +"%Y-%m-%d--%H-%M-%S-%Z")
fileformat=".MiniOzoneChaosCluster.log" fileformat=".MiniOzoneChaosCluster.log"
heapformat=".dump" heapformat=".dump"
current="/tmp/" current="/tmp/"
filename=$current$date$fileformat filename="${current}${date}${fileformat}"
heapdumpfile=$current$date$heapformat heapdumpfile="${current}${date}${heapformat}"
export MAVEN_OPTS="-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath={$heapdumpfile}" export MAVEN_OPTS="-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${heapdumpfile}"
echo "logging to" ${filename} echo "logging to ${filename}"
echo "heapdump to" ${heapdumpfile} echo "heapdump to ${heapdumpfile}"
echo "Starting MiniOzoneChaosCluster" echo "Starting MiniOzoneChaosCluster"
mvn clean install -DskipTests > ${filename} 2>&1 mvn clean install -DskipTests > "${filename}" 2>&1
mvn exec:java \ mvn exec:java \
-Dexec.mainClass="org.apache.hadoop.ozone.TestMiniChaosOzoneCluster" \ -Dexec.mainClass="org.apache.hadoop.ozone.TestMiniChaosOzoneCluster" \
-Dexec.classpathScope=test \ -Dexec.classpathScope=test \
-Dexec.args="$*" >> ${filename} 2>&1 -Dexec.args="$*" >> "${filename}" 2>&1