Open chen-xiaochen opened 3 weeks ago
I found a similar open issue: [Question] StressCentrality algorithm, which was last updated on September 03, 2024. The suggested solution is that the StressCentrality algorithm is included in the HugeGraph source code, specifically in the StressCentralityAlgorithmV2
class located at hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/job/algorithm/cent/StressCentralityAlgorithmV2.java
[1].
Regarding invoking the StressCentrality algorithm through Hubble, I wasn't able to find specific documentation or example code in the repository that demonstrates how to do this. It might be necessary to check the Hubble documentation or other related resources for more detailed instructions.
To continue talking to Dosu, mention @dosu.
我目前使用了computer1.0.0版本,但是启动失败了,拉取1.2.0版本的computer编译,报错在k8s模块
我只想运行一下StressCentrality算法,我怎样才能运行?
要运行 StressCentrality
算法,建议升级到 HugeGraph Computer 1.2.0 版本,因为 1.0.0 版本和 1.2.0 版本之间存在兼容性问题,特别是与 K8s 模块相关的部分 [1][2]。
以下是编译和构建 HugeGraph Computer 1.2.0 版本的步骤:
下载源代码: 你可以从 ASF 网站下载稳定版本,或者从 GitHub 克隆最新代码。
选项 1:从 ASF 网站下载发布包
wget https://downloads.apache.org/incubator/hugegraph/1.2.0/apache-hugegraph-incubating-src-1.2.0.tar.gz
tar zxf apache-hugegraph-incubating-src-1.2.0.tar.gz
# (可选)使用 SHA512 验证完整性(推荐)
shasum -a 512 apache-hugegraph-incubating-src-1.2.0.tar.gz
curl https://downloads.apache.org/incubator/hugegraph/1.2.0/apache-hugegraph-incubating-1.2.0-src.tar.gz.sha512
选项 2:通过 git 克隆最新代码(例如 GitHub)
git clone https://github.com/apache/hugegraph.git
安装 Java 11 (JDK 11): 确保你已经安装并配置了 Java 11。通过运行以下命令验证安装:
java -version
编译并生成 tarball:
cd hugegraph
mvn clean package -DskipTests
这将编译源代码并生成 HugeGraph 所需的 tarball。
启动 master 节点:
cd hugegraph-computer
bin/start-computer.sh -d local -r master
启动 worker 节点:
bin/start-computer.sh -d local -r worker
查询算法结果:
启用 OLAP
索引查询:
PUT http://localhost:8080/graphs/hugegraph/graph_read_mode
"ALL"
查询 page_rank
属性值:
curl "http://localhost:8080/graphs/hugegraph/graph/vertices?page&limit=3" | gunzip
这些步骤将帮助你编译和构建 HugeGraph Computer 1.2.0 版本,并运行 StressCentrality
算法 [3][4]。
To continue talking to Dosu, mention @dosu.
Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label
Problem Type (问题类型)
None
Before submit
Environment (环境信息)
Your Question (问题描述)
I want to invoke the StressCentrality algorithm, but I can't do it in Hubble. What do I need to do to invoke this algorithm?