pinpoint-apm / pinpoint-docker

Official Dockerized components of the Pinpoint
http://pinpoint-apm.github.io/pinpoint/
Apache License 2.0
452 stars 226 forks source link

Pinpoint hbase tables not creating in kubernetes #32

Open asasisekar opened 4 years ago

asasisekar commented 4 years ago

Using pinpointdocker/pinpoint-hbase:1.8.5 for hbase. Docker run is creating the hbase tables. But in kubernetes, tables are not getting created. Do i need to do execute any script to create tables in kubernetes?

RoySRose commented 4 years ago

Hello, @asasisekar

I didn't have time to test in k8s. I'm trying to make time for it.

geoberle commented 4 years ago

Hi. I'm not entirely sure if i'm right but i have a hunch. As far as i understand the Dockerfile, the tables are beeing generated during the build phase, somewhere within /home/pinpoint/hbase. If you run pinpoint-hbase on kubernetes you usually overwrite the storage locations with persistent volumes, hence hiding the tables that exist in the container image. One way to solve this is to create the tables during hbase startup, not during the container build phase.

Please let me know if you think this might be the case.

RoySRose commented 4 years ago

@geoberle

has a good point~

qiaolb commented 4 years ago

@asasisekar Me too. Besides, I can not connect HBase, do you have this problem? #57

shambu468 commented 4 years ago

Hbase bind 2181 port on localhost. if you want to connect hbase with another pod then you need to connect hbase with another zookeeper. and don't forget to start localregionalserver on your hbase pod.