Skip to content

[Question] computer的算法调用和HugeGraph Server项目有什么关系? #260

Description

@wangyh365

Problem Type (问题类型)

others (please edit later)

Before submit

Environment (环境信息)

  • Server Version: v1.0.0
  • Computer Version: v1.0.0
  • Scheduler: K8s V1.xx
  • Data Size: xx vertices, xx edges

Your Question (问题描述)

HugeGraph Server 这个项目里面有个ComputerAPI类,暴露url让用户调用。
然后调用ComputerJob, 然后通过name 到ComputerPool 中找到算法,调用call方法执行。
call 方法里面是构造了如下的hadoop执行命令。 并且附带的注释是等待computer项目完毕。

// TODO: 2022/11/18 wait computer project adapt
private static final String MAIN_COMMAND =
        "%s/bin/hadoop jar hugegraph-computer.jar " +
        "com.baidu.hugegraph.Computer " +
        "-D libjars=./hugegraph-computer-core.jar";

请问这个方式目前能运行computer的算法吗? 还是按照官网的那个非常非常简单的文档
curl "http://localhost:8080/graphs/hugegraph/graph/vertices?page&limit=3" | gunzip
来执行?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions