2020-09-28 17:29:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NAME=rclone-hdfs
|
|
|
|
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
|
|
|
|
start() {
|
|
|
|
docker run --rm -d --name "rclone-hdfs" -p 127.0.0.1:9866:9866 -p 127.0.0.1:8020:8020 --hostname "rclone-hdfs" rclone/test-hdfs
|
|
|
|
sleep 10
|
|
|
|
|
|
|
|
echo type=hdfs
|
|
|
|
echo namenode=127.0.0.1:8020
|
2021-01-08 09:05:25 +00:00
|
|
|
echo username=root
|
2020-09-28 17:29:44 +00:00
|
|
|
}
|
|
|
|
stop() {
|
|
|
|
if status ; then
|
|
|
|
docker kill $NAME
|
|
|
|
echo "$NAME stopped"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
. $(dirname "$0")/run.bash
|