/go-hbase

go 读取hbase数据

Primary LanguageGoApache License 2.0Apache-2.0

go-hbase

go 读取hbase数据

hbase thrift2运行

bin/hbase-daemon.sh start thrift2

打包

linux

CGO_ENABLED=1 go build -ldflags '-linkmode "external" -extldflags "-static"' main.go

docker

打包

docker build . -t dounine/go-hbase

docker运行

docker run -e domain=server:9090 -e maxLength=100 -p 8000:8000 dounine/go-hbase

访问

curl --location --request GET 'localhost:8000/user' \
--header 'Content-Type: application/json' \
--data-raw '{
    "uid":"",
    "uids":["1","2"]
}'