From 9772705fe30e0aecec95aba7d5f8b01f0538ce9b Mon Sep 17 00:00:00 2001 From: Qifeng <69379048+AcKing-Sam@users.noreply.github.com> Date: Mon, 25 Dec 2023 16:18:38 +0800 Subject: [PATCH] Fix scripts/generate-data.sh (#94) * fix scripts/generate-data.sh, address for github repo:ldbc_snb_datagen has changed, need revise git clone xxx command * fix scripts/generate-data.sh, address for github repo:ldbc_snb_datagen has changed, need revise git clone xxx command * change variable LDBC_SNB_DATAGEN_VERSION=0.3.3 --- scripts/env.sh | 2 +- scripts/generate-data.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/env.sh b/scripts/env.sh index b7ecb9d..01bb64d 100755 --- a/scripts/env.sh +++ b/scripts/env.sh @@ -1,6 +1,6 @@ #!/bin/bash -LDBC_SNB_DATAGEN_VERSION=v0.3.3 +LDBC_SNB_DATAGEN_VERSION=0.3.3 HADOOP_VERSION=3.2.1 scaleFactor=${scaleFactor:-1} diff --git a/scripts/generate-data.sh b/scripts/generate-data.sh index 02a5612..333e752 100755 --- a/scripts/generate-data.sh +++ b/scripts/generate-data.sh @@ -43,7 +43,9 @@ if [ -d ${DATA_DIR}/ldbc_snb_datagen ];then else cd ${DATA_DIR} && \ rm -rf ldbc_snb_datagen && \ - git clone --branch ${LDBC_SNB_DATAGEN_VERSION} https://github.com/ldbc/ldbc_snb_datagen && \ + wget https://github.com/ldbc/ldbc_snb_datagen_hadoop/archive/refs/tags/v${LDBC_SNB_DATAGEN_VERSION}.tar.gz && \ + tar -zxvf v${LDBC_SNB_DATAGEN_VERSION}.tar.gz && \ + mv ldbc_snb_datagen_hadoop-${LDBC_SNB_DATAGEN_VERSION} ldbc_snb_datagen && \ cd ldbc_snb_datagen && \ cp test_params.ini params.ini fi