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

gohbase连接客户端时候为什么只传入url,没有端口号 #156

Closed
yuanpengpeng opened this issue Nov 30, 2020 · 0 comments
Closed

Comments

@yuanpengpeng
Copy link

yuanpengpeng commented Nov 30, 2020

gohbase连接客户端代码: var client = gohbase.NewClient(host)

thrift编译hbase连接hbase集群代码:const (
HOST1 = "172.16.3.127"
PORT1 = "19090"
)

func TestHbase1(t *testing.T){
protocolFactory := thrift.NewTBinaryProtocolFactoryDefault()
transport, err := thrift.NewTSocket(net.JoinHostPort(HOST1, PORT1))
if err != nil {
fmt.Fprintln(os.Stderr, "error resolving address:", err)
os.Exit(1)
}
}

gohbase连接客户端时候为什么只传入url,没有端口号,我通过另一种方式 用thrift编译hbase,连接我们公司另一个团队开发的hyperbase,传入url和19090可以连接集群成功,但是thrift服务默认是9090,gohbase没有传入参数的地方,这个怎么传入修改端口号

@dethi dethi closed this as completed Feb 13, 2022
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

2 participants