Skip to content

Commit 1d459de

Browse files
authored
Merge branch 'master' into master
2 parents 64bc8a3 + deacfd9 commit 1d459de

File tree

12 files changed

+52
-46
lines changed

12 files changed

+52
-46
lines changed

.asf.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ github:
3939
strict: false
4040
# contexts are the names of checks that must pass
4141
contexts:
42-
- computer-ci
42+
#- computer-ci # always stuck in CI
4343
- check-license-header
4444
- Analyze (java)
4545
required_pull_request_reviews:
4646
dismiss_stale_reviews: true
4747
require_code_owner_reviews: false
48-
required_approving_review_count: 2
48+
required_approving_review_count: 1
4949

5050
notifications:
5151
# use https://selfserve.apache.org to manage it

.gitattributes

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66

77
# ignored directory
88
.github/ export-ignore
9-
computer-k8s-operator/crd-generate/bin/ export-ignore
9+
computer/computer-k8s-operator/crd-generate/bin/ export-ignore
10+
computer/computer-dist/scripts/ export-ignore
11+
computer/computer-dist/release-docs/ export-ignore

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ jobs:
1616
env:
1717
USE_STAGE: 'true' # Whether to include the stage repository.
1818
TRAVIS_DIR: computer-dist/src/assembly/travis
19-
KUBERNETES_VERSION: 1.20.1
2019
BSP_ETCD_URL: http://localhost:2579
21-
# TODO: delete this env in the future (replaced by docker way now)
22-
HUGEGRAPH_SERVER_COMMIT_ID: d01c8737d7d5909119671953521f1401dcd1a188
20+
KUBERNETES_VERSION: 1.20.1
21+
# TODO: adapt the HugeGraph Server/Loader version to 1.5.0 (EdgeID has 5 parts now)
22+
# NOTE: Remember to adaptor/update the version before new release
23+
GRAPH_ENV_VERSION: 1.3.0
2324

2425
steps:
2526
- name: Checkout
@@ -78,8 +79,7 @@ jobs:
7879
- name: Prepare env and service
7980
run: |
8081
$TRAVIS_DIR/install-env.sh
81-
$TRAVIS_DIR/load-data-into-hugegraph.sh
82-
#$TRAVIS_DIR/install-hugegraph-from-source.sh $HUGEGRAPH_SERVER_COMMIT_ID
82+
$TRAVIS_DIR/load-data-into-hugegraph.sh ${{ env.GRAPH_ENV_VERSION }}
8383
8484
- name: Install JDK 11
8585
uses: actions/setup-java@v3

NOTICE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Apache HugeGraph(incubating)
2-
Copyright 2022-2023 The Apache Software Foundation
2+
Copyright 2022-2024 The Apache Software Foundation
33

44
This product includes software developed at
55
The Apache Software Foundation (http://www.apache.org/).

README.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@
55
[![codecov](https://codecov.io/gh/apache/incubator-hugegraph-computer/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/incubator-hugegraph-computer)
66
[![Docker Pulls](https://img.shields.io/docker/pulls/hugegraph/hugegraph-computer)](https://hub.docker.com/repository/docker/hugegraph/hugegraph-computer)
77

8-
The [hugegraph-computer](./computer/README.md) is a distributed graph processing system for hugegraph.
8+
The [hugegraph-computer](./computer/README.md) is a distributed graph processing system for hugegraph.
9+
(Also, the in-memory computing engine(vermeer) is on the way 🚧)
910

1011
## Learn More
1112

12-
The [project homepage](https://hugegraph.apache.org/docs/) contains more information about hugegraph-computer.
13+
The [project homepage](https://hugegraph.apache.org/docs/quickstart/hugegraph-computer/) contains more information about hugegraph-computer.
1314

1415
And here are links of other repositories:
15-
1. [hugegraph-server](https://github.com/apache/hugegraph) (graph's core component - OLTP server)
16-
2. [hugegraph-toolchain](https://github.com/apache/hugegraph-toolchain) (include loader/dashboard/tool/client)
17-
3. [hugegraph-website](https://github.com/apache/hugegraph-doc) (include doc & website code)
16+
17+
1. [hugegraph](https://github.com/apache/hugegraph) (graph's core component - Graph server + PD + Store)
18+
2. [hugegraph-toolchain](https://github.com/apache/hugegraph-toolchain) (graph tools **[loader](https://github.com/apache/incubator-hugegraph-toolchain/tree/master/hugegraph-loader)/[dashboard](https://github.com/apache/incubator-hugegraph-toolchain/tree/master/hugegraph-hubble)/[tool](https://github.com/apache/incubator-hugegraph-toolchain/tree/master/hugegraph-tools)/[client](https://github.com/apache/incubator-hugegraph-toolchain/tree/master/hugegraph-client)**)
19+
3. [hugegraph-ai](https://github.com/apache/incubator-hugegraph-ai) (integrated **Graph AI/LLM/KG** system)
20+
4. [hugegraph-website](https://github.com/apache/hugegraph-doc) (**doc & website** code)
21+
1822

1923
## Note
2024

@@ -40,5 +44,5 @@ hugegraph-computer is licensed under [Apache 2.0](https://github.com/apache/incu
4044
- Feedback Email: [dev@hugegraph.apache.org](mailto:dev@hugegraph.apache.org) ([subscriber](https://hugegraph.apache.org/docs/contribution-guidelines/subscribe/) only)
4145
- WeChat public account: Apache HugeGraph, welcome to scan this QR code to follow us.
4246

43-
<img src="https://github.com/apache/incubator-hugegraph-doc/blob/master/assets/images/wechat.png?raw=true" alt="QR png" width="350"/>
47+
<img src="https://github.com/apache/hugegraph-doc/blob/master/assets/images/wechat.png?raw=true" alt="QR png" width="350"/>
4448

computer/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ The hugegraph-computer is a distributed graph processing system for hugegraph. I
55
## Features
66

77
- Support distributed MPP graph computing, and integrates with HugeGraph as graph input/output storage.
8-
- Based on BSP(Bulk Synchronous Parallel) model, an algorithm performs computing through multiple parallel iterations, every iteration is a superstep.
8+
- Based on BSP (Bulk Synchronous Parallel) model, an algorithm performs computing through multiple parallel iterations, every iteration is a superstep.
99
- Auto memory management. The framework will never be OOM(Out of Memory) since it will split some data to disk if it doesn't have enough memory to hold all the data.
10-
- The part of edges or the messages of super node can be in memory, so you will never lose it.
10+
- The part of edges or the messages of supernode can be in memory, so you will never lose it.
1111
- You can load the data from HDFS or HugeGraph, output the results to HDFS or HugeGraph, or adapt any other systems manually as needed.
12-
- Easy to develop a new algorithm. You just need to focus on a vertex only processing just like as in a single server, without worrying about message transfer and memory/storage management.
12+
- Easy to develop a new algorithm. You need to focus on a vertex only processing just like as in a single server, without worrying about message transfer and memory/storage management.

computer/computer-dist/scripts/apache-release.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ echo "In the work dir: $(pwd)"
3939
rm -rf dist && mkdir -p dist/apache-${REPO}
4040

4141
# step1: package the source code
42-
cd ../../ || exit
42+
cd ../../../ || exit
43+
pwd
4344
git archive --format=tar.gz \
44-
--output="computer-dist/scripts/dist/apache-${REPO}/apache-${REPO}-incubating-${RELEASE_VERSION}-src.tar.gz" \
45+
--output="computer/computer-dist/scripts/dist/apache-${REPO}/apache-${REPO}-incubating-${RELEASE_VERSION}-src.tar.gz" \
4546
--prefix="apache-${REPO}-incubating-${RELEASE_VERSION}-src/" "${GIT_BRANCH}" || exit
4647
cd - || exit
4748

computer/computer-dist/scripts/dependency/known-dependencies.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ commons-logging-1.1.3.jar
3636
commons-math3-3.1.1.jar
3737
commons-net-3.6.jar
3838
commons-text-1.9.jar
39-
computer-algorithm-1.3.0.jar
40-
computer-api-1.3.0.jar
41-
computer-core-1.3.0.jar
42-
computer-dist-1.3.0.jar
43-
computer-driver-1.3.0.jar
44-
computer-k8s-1.3.0.jar
45-
computer-k8s-operator-1.3.0.jar
46-
computer-yarn-1.3.0.jar
39+
computer-algorithm-1.5.0.jar
40+
computer-api-1.5.0.jar
41+
computer-core-1.5.0.jar
42+
computer-dist-1.5.0.jar
43+
computer-driver-1.5.0.jar
44+
computer-k8s-1.5.0.jar
45+
computer-k8s-operator-1.5.0.jar
46+
computer-yarn-1.5.0.jar
4747
curator-client-2.13.0.jar
4848
curator-framework-2.13.0.jar
4949
curator-recipes-2.13.0.jar

computer/computer-dist/scripts/dependency/regenerate_known_dependencies.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717
#
1818

19-
BASE_PATH=$(cd $(dirname $0); pwd)
19+
BASE_PATH=$(cd $(dirname $0) || exit; pwd)
2020
DEP_PATH=$BASE_PATH/all_dependencies
2121
FILE_NAME=${1:-known-dependencies.txt}
2222

@@ -25,9 +25,9 @@ if [[ -d $DEP_PATH ]];then
2525
rm -r -f $DEP_PATH
2626
fi
2727

28-
cd $BASE_PATH/../../../
28+
cd $BASE_PATH/../../../ || exit
2929

30-
mvn dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=$DEP_PATH
30+
mvn dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=$DEP_PATH -P stage
3131

3232
ls $DEP_PATH | egrep -v "^hugegraph" | sort -n > $BASE_PATH/$FILE_NAME
3333
rm -r -f $DEP_PATH

computer/computer-dist/src/assembly/travis/install-hugegraph-from-source.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727
COMMIT_ID=$1
2828
HUGEGRAPH_GIT_URL="https://github.com/apache/hugegraph.git"
2929

30-
git clone --depth 100 ${HUGEGRAPH_GIT_URL} hugegraph
30+
git clone --depth 300 ${HUGEGRAPH_GIT_URL} hugegraph
3131
cd hugegraph
3232
git checkout "${COMMIT_ID}"
3333
mvn package -DskipTests -ntp

computer/computer-dist/src/assembly/travis/load-data-into-hugegraph.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ DATASET_DIR=${TRAVIS_DIR}/../dataset
2323

2424
docker network create ci
2525
# Note: we need wait for server start finished, so start it first
26-
docker run -itd --name=graph --network ci -p 8080:8080 hugegraph/hugegraph:latest && sleep 6
26+
docker run -itd --name=graph --network ci -p 8080:8080 hugegraph/hugegraph:"${GRAPH_ENV_VERSION}" && sleep 6
2727

2828
wget http://files.grouplens.org/datasets/movielens/ml-latest-small.zip
29-
unzip -d ${DATASET_DIR} ml-latest-small.zip
29+
unzip -d "${DATASET_DIR}" ml-latest-small.zip
3030

31-
cd ${DATASET_DIR}/.. && pwd && ls -lh *
31+
cd "${DATASET_DIR}"/.. && pwd && ls -lh ./*
3232

33-
docker run -id --name=loader --network ci hugegraph/loader:latest
33+
docker run -id --name=loader --network ci hugegraph/loader:"${GRAPH_ENV_VERSION}"
3434
docker cp dataset loader:/dataset || exit 1
3535

3636
docker exec -i loader ls -lh /dataset

computer/pom.xml

+9-10
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,11 @@
9191
</prerequisites>
9292

9393
<properties>
94-
<!-- TODO: update the version after toolchain v1.2 fixed -->
95-
<revision>1.3.0</revision>
96-
<hugegraph-common-version>1.3.0</hugegraph-common-version>
97-
<hugegraph-client-version>1.3.0</hugegraph-client-version>
98-
<hugegraph-rpc-version>1.3.0</hugegraph-rpc-version>
99-
<hugegraph-loader-version>1.3.0</hugegraph-loader-version>
94+
<revision>1.5.0</revision>
95+
<!-- TODO: fix deps conflicts & update to 1.5.0 -->
96+
<hugegraph-commons-version>1.3.0</hugegraph-commons-version>
97+
<!-- FIXME: DegreeCentralityTest:L50 failed with loader 1.5.0 -->
98+
<hugegraph-toolchain-version>1.3.0</hugegraph-toolchain-version>
10099
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
101100
<top.level.dir>${project.basedir}/..</top.level.dir>
102101
<release.name>hugegraph-computer</release.name>
@@ -128,12 +127,12 @@
128127
<dependency>
129128
<groupId>org.apache.hugegraph</groupId>
130129
<artifactId>hugegraph-common</artifactId>
131-
<version>${hugegraph-common-version}</version>
130+
<version>${hugegraph-commons-version}</version>
132131
</dependency>
133132
<dependency>
134133
<groupId>org.apache.hugegraph</groupId>
135134
<artifactId>hugegraph-rpc</artifactId>
136-
<version>${hugegraph-rpc-version}</version>
135+
<version>${hugegraph-commons-version}</version>
137136
<exclusions>
138137
<!-- conflict with etcd -->
139138
<exclusion>
@@ -154,7 +153,7 @@
154153
<dependency>
155154
<groupId>org.apache.hugegraph</groupId>
156155
<artifactId>hugegraph-client</artifactId>
157-
<version>${hugegraph-client-version}</version>
156+
<version>${hugegraph-toolchain-version}</version>
158157
</dependency>
159158
<dependency>
160159
<groupId>org.apache.hugegraph</groupId>
@@ -251,7 +250,7 @@
251250
<dependency>
252251
<groupId>org.apache.hugegraph</groupId>
253252
<artifactId>hugegraph-loader</artifactId>
254-
<version>${hugegraph-loader-version}</version>
253+
<version>${hugegraph-toolchain-version}</version>
255254
<exclusions>
256255
<exclusion>
257256
<groupId>org.apache.hive</groupId>

0 commit comments

Comments
 (0)