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
Get exception "Unknown protocol: HTT" when using hazelcast-hibernate with hazelcast-kubernetes #186
Comments
Solved. |
Hi, could you explain how to set service-name. Thank you very much |
You can set it in the Hazelcast configuration in the Kubernetes section. Check this: https://github.com/hazelcast/hazelcast-kubernetes#hazelcast-configuration |
I also had this error, but for a different reason. I had forgotten to add
in my pod deployment. This apparently caused hazelcast-kubernetes to connect to the only other open port on the pod, which in my case was 8080, where a web application was being served. Perhaps this will help someone along the line. |
What is the default port used when not specifying any service ?
Does it search for 5701 (hardcoded), or a port named "hazelcast" ? |
@donatelloOo You can specify the parameter |
Also check if you have the service.yaml properly configured, if you are on kubernetes. |
@imjuoy This is in case you are discovering through services (service-name/label), but if you rely on default fallback method which retrieves pod ips directly then it is not a matter of deployment nor service yaml configuration. In that case the plugin still tries to find containers spec ports on the yaml and if you don't specify service-port property then you get 8080 or whatever main server port you defined as target in those yaml. Remember that Kubernetes allows connecting to any port on the container if you do it through internal network (just like docker expose), so there can be setups where ports defined in yamls are irrelevant |
I used https://github.com/Cepr0/sb-hazelcast-hibernate-l2c-demo as reference, which works well, but when I added hazelcast-kubenetes by this guide, I get following exception and cannot run the pod.
Here are my configs (slightly different from the reference)
HazelcastConfiguration.java
application.yml
pom.xml (use Hazelcast 3 because hazelcast-hibernate53 doesn't fit Hazelcast 4 yet)
Where does the "HTT" come from? Is there any crash in the config for hazelcast-hibernate and hazelcast-kubernetes?
I noticed an issue in hibernate with similar exception.
The text was updated successfully, but these errors were encountered: