Skip to content

Commit ca47a6c

Browse files
authored
Merge pull request #81 from hegyibalint/master
Document the docker image's HADOOP_CLIENT_OPTS override
2 parents 57a14ef + b57372d commit ca47a6c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ 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-
108
# Copy the project
119
COPY . /opt/ldbc_snb_datagen
1210
WORKDIR /opt/ldbc_snb_datagen
@@ -15,4 +13,5 @@ RUN rm params*.ini
1513
# Build jar bundle
1614
RUN mvn -DskipTests clean assembly:assembly
1715

16+
ENV HADOOP_CLIENT_OPTS '-Xmx8G'
1817
CMD /opt/ldbc_snb_datagen/docker_run.sh

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ mkdir datagen_output
5757
docker run --rm --mount type=bind,source="$(pwd)/datagen_output/",target="/opt/ldbc_snb_datagen/social_network/" --mount type=bind,source="$(pwd)/params.ini",target="/opt/ldbc_snb_datagen/params.ini" ldbc/datagen
5858
```
5959

60+
If the memory limit has to be raised, the `-e HADOOP_CLIENT_OPTS="-Xmx..."` parameter can override the default `-Xmx8G` value.
61+
6062
<!-- Publicly available datasets can be found at the LDBC-SNB Amazon Bucket. These datasets are the official SNB datasets and were generated using version 0.2.6. They are available in the three official supported serializers: CSV, CSVMergeForeign and TTL. The bucket is configured in "Requester Pays" mode, thus in order to access them you need a properly set up AWS client.
6163
* http://ldbc-snb.s3.amazonaws.com/ -->
6264

0 commit comments

Comments
 (0)