Version 1.0 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. For up-to-date documentation, see the latest version.
HugeGraph-Computer Quick Start
1 HugeGraph-Computer Overview
The HugeGraph-Computer is a distributed graph processing system for HugeGraph (OLAP). It is an implementation of Pregel. It runs on Kubernetes framework.
Features
- Support distributed MPP graph computing, and integrates with HugeGraph as graph input/output storage.
- Based on BSP(Bulk Synchronous Parallel) model, an algorithm performs computing through multiple parallel iterations, every iteration is a superstep.
- 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.
- The part of edges or the messages of super node can be in memory, so you will never lose it.
- You can load the data from HDFS or HugeGraph, or any other system.
- You can output the results to HDFS or HugeGraph, or any other system.
- 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.
2 Get Started
2.1 Run PageRank algorithm locally
To run algorithm with HugeGraph-Computer, you need to install 64-bit JRE/JDK 11 or later versions.
You also need to deploy HugeGraph-Server and Etcd.
There are two ways to get HugeGraph-Computer:
- Download the compiled tarball
- Clone source code then compile and package
2.1 Download the compiled archive
Download the latest version of the HugeGraph-Computer release package:
2.2 Clone source code to compile and package
Clone the latest version of HugeGraph-Computer source package:
Compile and generate tar package:
2.3 Start master node
You can use
-cparameter specify the configuration file, more computer config please see:Computer Config Options
2.4 Start worker node
2.5 Query algorithm results
2.5.1 Enable OLAP index query for server
If OLAP index is not enabled, it needs to enable, more reference: modify-graphs-read-mode
2.5.2 Query page_rank property value:
2.2 Run PageRank algorithm in Kubernetes
To run algorithm with HugeGraph-Computer you need to deploy HugeGraph-Server first
2.2.1 Install HugeGraph-Computer CRD
2.2.2 Show CRD
2.2.3 Install hugegraph-computer-operator&etcd-server
2.2.4 Wait for hugegraph-computer-operator&etcd-server deployment to complete
2.2.5 Submit job
More computer crd please see: Computer CRD
More computer config please see: Computer Config Options
2.2.6 Show job
2.2.7 Show log of nodes
2.2.8 Show success event of a job
NOTE: it will only be saved for one hour
2.2.9 Query algorithm results
If the output to Hugegraph-Server is consistent with Locally, if output to HDFS, please check the result file in the directory of /hugegraph-computer/results/{jobId} directory.
3 Built-In algorithms document
3.1 Supported algorithms list:
Centrality Algorithm:
- PageRank
- BetweennessCentrality
- ClosenessCentrality
- DegreeCentrality
Community Algorithm:
- ClusteringCoefficient
- Kcore
- Lpa
- TriangleCount
- Wcc
Path Algorithm:
- RingsDetection
- RingsDetectionWithFilter
More algorithms please see: Built-In algorithms
3.2 Algorithm describe
TODO
4 Algorithm development guide
TODO