Skip to content

Commit 23e7b60

Browse files
committed
Specify unprivileged run mode
1 parent 44cb267 commit 23e7b60

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,15 @@ When upgrading to version 0.6.0 from version 0.5.x or earlier, please follow the
6060
## Docker usage
6161

6262
This package is available as docker image [`radarbase/radar-output-restructure`](https://hub.docker.com/r/radarbase/radar-output-restructure). The entrypoint of the image is the current application. So in all the commands listed in usage, replace `radar-output-restructure` with for example:
63+
6364
```shell
64-
docker run --rm -t --network hadoop -v "$PWD/output:/output" radarbase/radar-output-restructure:1.1.5-hdfs -n hdfs-namenode -o /output /myTopic
65+
docker run --rm -t --network hadoop -v "$PWD/output:/output" radarbase/radar-output-restructure:1.1.5 -n hdfs-namenode -o /output /myTopic
6566
```
66-
if your docker cluster is running in the `hadoop` network and your output directory should be `./output`.
6767

68-
Docker image tags that are optimized for HDFS are suffixed with `-hdfs`. Otherwise, please use the image without that suffix.
68+
if your docker cluster is running in the `hadoop` network and your output directory should be `./output`. Note that to run this in production this should be run as a non-root user. If local output is used, specify the user that the data should be written as both in the local storage configuration `target: {local: {userId: <MyUid>, groupId: <MyGroupId>}}` and also in the docker command line or docker-compose configuration:
69+
```shell
70+
docker run --rm -t --network hadoop -v "$PWD/output:/output" --user <MyUserId> --group-add <MyGroupId> radarbase/radar-output-restructure:1.1.5 -n hdfs-namenode -o /output /myTopic
71+
```
6972

7073
## Command line usage
7174

0 commit comments

Comments
 (0)