javeme commented on code in PR #184:
URL:
https://github.com/apache/incubator-hugegraph-computer/pull/184#discussion_r875432293
##########
computer-dist/src/assembly/travis/load-data-into-hugegraph.sh:
##########
@@ -5,25 +5,25 @@ set -ev
TRAVIS_DIR=`dirname $0`
DATASET_DIR=${TRAVIS_DIR}/../dataset
-HUGEGRAPH_LOADER_GIT_URL="https://github.com/hugegraph/hugegraph-loader.git"
+HUGEGRAPH_LOADER_GIT_URL="https://github.com/apache/hugegraph-toolchain.git"
git clone --depth 10 ${HUGEGRAPH_LOADER_GIT_URL}
-cd hugegraph-loader
+cd hugegraph-toolchain/hugegraph-loader
mvn install:install-file -Dfile=assembly/static/lib/ojdbc8-12.2.0.1.jar
-DgroupId=com.oracle -DartifactId=ojdbc8 -Dversion=12.2.0.1 -Dpackaging=jar ||
exit 1
mvn package -DskipTests || exit 1
tar -zxf hugegraph-loader-*.tar.gz || exit 1
-cd ../
+cd ../../
wget http://files.grouplens.org/datasets/movielens/ml-latest-small.zip
unzip -d ${DATASET_DIR} ml-latest-small.zip
-hugegraph-loader/hugegraph-loader-*/bin/hugegraph-loader.sh -g hugegraph -f
${DATASET_DIR}/struct.json -s ${DATASET_DIR}/schema.groovy || exit 1
+hugegraph-toolchain/hugegraph-loader/hugegraph-loader-*/bin/hugegraph-loader.sh
-g hugegraph -f ${DATASET_DIR}/struct.json -s ${DATASET_DIR}/schema.groovy ||
exit 1
# load dataset to hdfs
sort -t , -k1n -u "${DATASET_DIR}"/ml-latest-small/ratings.csv | cut -d "," -f
1 > "${DATASET_DIR}"/ml-latest-small/user_id.csv || exit 1
-hadoop fs -mkdir -p /dataset/ml-latest-small || exit 1
-hadoop fs -put "${DATASET_DIR}"/ml-latest-small/* /dataset/ml-latest-small ||
exit 1
-hadoop fs -ls /dataset/ml-latest-small
+/opt/hadoop/bin/hadoop fs -mkdir -p /dataset/ml-latest-small || exit 1
Review Comment:
can define var HADOOP=/opt/hadoop/bin/hadoop
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]