Skip to content

Commit a7015f9

Browse files
committed
Reintroduce HADOOP_CLIENT_OPTS
1 parent a3b3d73 commit a7015f9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ WORKDIR /opt
55
RUN apk add bash curl maven python
66
RUN curl -L 'http://archive.apache.org/dist/hadoop/core/hadoop-2.6.0/hadoop-2.6.0.tar.gz' | tar -xz
77

8+
ENV HADOOP_CLIENT_OPTS '-Xmx8G'
9+
810
# Copy the project
911
COPY . /opt/ldbc_snb_datagen
1012
WORKDIR /opt/ldbc_snb_datagen
@@ -13,4 +15,4 @@ RUN rm params*.ini
1315
# Build jar bundle
1416
RUN mvn -DskipTests clean assembly:assembly
1517

16-
CMD /opt/ldbc_snb_datagen/docker_run.sh
18+
CMD /opt/ldbc_snb_datagen/docker_run.sh

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ To build, execute the following command from the repository directory:
4141
docker build . --tag ldbc/datagen
4242
```
4343

44+
### Options
45+
46+
To configure the amount of memory available, set the `HADOOP_CLIENT_OPTS` variable in the Dockerfile. The default value is `-Xmx8G`.
47+
4448
### Running
4549

4650
In order to run the container, a `params.ini` file is required. For reference, please see the `params*.ini` files in the repository. The file will be mounted in the container by the `--mount type=bind,source="$(pwd)/params.ini,target="/opt/ldbc_snb_datagen/params.ini"` option. If required, the source path can be set to a different path.

0 commit comments

Comments
 (0)