Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support to convert internal storage address to available address for connector #149

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Nicole00
Copy link
Contributor

@Nicole00 Nicole00 commented Jul 8, 2024

useage:

use withStorageAddrMapping interface to config the mapping of stroaged address show through show hosts to access available storaged address for connector.

eg: if your storaged address info is abc:9779 in show hosts, and the reflacted address is 192.168.1.1:9779 and it's available for connector, then you can config :
withStorageAddrMapping(Map("abc:977" -> "192.168.1.1:9779"))

    val nebulaReadVertexConfig: ReadNebulaConfig = ReadNebulaConfig
      .builder()
      .withUser("root") // optional config
      .withPasswd("nebula") // optional config
      .withSpace("test")
      .withLabel("person")
      .withNoColumn(false)
      .withReturnCols(List())
      .withLimit(10)
      .withPartitionNum(10)
      // when your client cannot access the storaged address return by metad, you can set the config with 'withStorageAddrMapping'
      //.withStorageAddrMapping(Map("127.0.0.1:9779"->"available_ip:9779"))
      .build()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants