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

metad服务地址转成127.0.0.1 #156

Closed
yangdasen1 opened this issue Oct 15, 2021 · 3 comments
Closed

metad服务地址转成127.0.0.1 #156

yangdasen1 opened this issue Oct 15, 2021 · 3 comments

Comments

@yangdasen1
Copy link

graph_storage_client = GraphStorageClient(meta_cache)代码会把我填的服务器地址转成127.0.0.1,导致无法在本地上运行,只能在服务器上运行,这个要怎么解决?

@yangdasen1 yangdasen1 changed the title metad服务地址映射成127.0.0.1 metad服务地址转成127.0.0.1 Oct 15, 2021
@wey-gu
Copy link
Contributor

wey-gu commented Oct 19, 2021

storageD 的地址是从 metaD 里获取的,而源头是 storageD 自己的配置,然后会被 metaD 服务发现出来的,如果是的话,请把 storageD 的配置修改一下,改成你的客户端可以访问的网络的地址哈~~。

metaD 的地址是被配置到里边的哈,类似的如果需要直接访问 metaD,需要配置成可达的网络地址哈~~

@yangdasen1
Copy link
Author

谢谢,我修改了nebula2\sclient\net_init_.py文件下的s = TSocket.TSocket(self._address.host, self._address.port),self._address.host改成要访问的地址后可以了,不知道为什么这里的地址会变成127.0.0.1

@wey-gu
Copy link
Contributor

wey-gu commented Oct 22, 2021

谢谢,我修改了nebula2\sclient\net__init__.py文件下的s = TSocket.TSocket(self._address.host, self._address.port),self._address.host改成要访问的地址后可以了,不知道为什么这里的地址会变成127.0.0.1

因为这个是从 metaD 里获取的,而 metaD 里缓存有所有发现上来的 storageD (storageD 曾经配置成 127.0.0.1 然后起来了被 metaD 发现、缓存了,你修改之后的被他认为是另一个storageD了)哈。

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

No branches or pull requests

3 participants