You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "changxue (Jira)" <ji...@apache.org> on 2023/03/09 09:42:00 UTC
[jira] [Created] (IOTDB-5653) Some of the shell scripts in IoTDB are called by /bin/sh, it would fail on docker deployment
changxue created IOTDB-5653:
-------------------------------
Summary: Some of the shell scripts in IoTDB are called by /bin/sh, it would fail on docker deployment
Key: IOTDB-5653
URL: https://issues.apache.org/jira/browse/IOTDB-5653
Project: Apache IoTDB
Issue Type: Bug
Affects Versions: 1.1.0-SNAPSHOT
Reporter: changxue
Assignee: Haonan Hou
Some of the shell scripts in IoTDB are called by /bin/sh, it would fail on docker deployment
bug:
When I execute remove-datanode.sh in a docker container:
{code}
root@i-lx1zh95i:/iotdb/sbin# ./remove-datanode.sh 1
---------------------
Starting to remove a DataNode
---------------------
./remove-datanode.sh: 25: source: not found
./remove-datanode.sh: 28: get_iotdb_include: not found
./remove-datanode.sh: 29: checkAllVariables: not found
./remove-datanode.sh: 35: initEnv: not found
./remove-datanode.sh: 56: exec: : Permission denied
{code}
I replaced this file with a new one which replace /bin/sh with /bin/bash on the first line, then it run successfully.
list the shell scripts with /bin/sh on the first line:
{code}
iotdb-common.sh:#!/bin/sh
start-cli.sh:#!/bin/sh
start-standalone.sh:#!/bin/sh
stop-standalone.sh:#!/bin/sh
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)