diff options
author | Colin Marc <hi@colinmarc.com> | 2022-02-09 11:11:29 +0100 |
---|---|---|
committer | Colin Marc <hi@colinmarc.com> | 2022-02-09 11:11:29 +0100 |
commit | 3faa96d6617937854a27fab92b7d65fc0b983055 (patch) | |
tree | 3e875212a52a2379c82ec05b48ee4ae8de6beb1c | |
parent | 81c61d61ab08c9e256e25d44354a3d6bf9485200 (diff) |
Useradd fails if the user already exists
-rwxr-xr-x | .github/scripts/install-hdfs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/scripts/install-hdfs.sh b/.github/scripts/install-hdfs.sh index 909bc91..03a49eb 100755 --- a/.github/scripts/install-hdfs.sh +++ b/.github/scripts/install-hdfs.sh @@ -170,7 +170,7 @@ EOF $HADOOP_ROOT/bin/hdfs namenode -format sudo groupadd hadoop -sudo useradd -G hadoop $USER +usermod -a -G hadoop $USER echo "Starting namenode..." $HADOOP_ROOT/bin/hdfs namenode > /tmp/hdfs/namenode.log 2>&1 & |