-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unknown Host exception starting schema registry #199
Comments
@AndrewSwerlick It seems like it's |
So should I be able to avoid this by explicitly setting something for host.name in schema-registry-properties? I've tried setting a couple of values there (localhost, 127.0.0.1) but it doesn't seem change anything. |
I think it's not changing anything because the default host is looked up as part of the setup of the configuration options -- it is computed in order to fill in the default value. So this exception is happening even before you've hit the configuration parsing code. I think that shouldn't be a problem to fix since we could, for example, leave the |
It's basically a stock Digital Ocean server running Centos 6.6. After digging around a while I was able to find some documentation on setting the FQDN by following those instructions and adding the proper /etc/hosts entry I was able to get it working properly. Of course now I'm fighting an unrelated issue where kafka will only start when run as a root user, and will throw out of memory exceptions as non root, so in general it seems like there's some wonkiness with the base digital ocean centos images. |
@AndrewSwerlick Any news? Have you been able to sort out the issue? If so, we can close this ticket. |
@miguno I was thinking there might be a better solution to this. The problem is this method. What if we separate the It'd be worth testing this patch on this Digital Ocean Centos 6.6. setup before committing a change like this since I'm not sure whether it helps in that case (i.e. if ignoring the canonicalization step leaves you with a usable hostname), but if it at least works in the localhost case (i.e. at least works for another process running on the same host as SR), it would be better behavior than we're currently providing. |
I'd like to propose an alternative solution, which is to allow the fallback to the value in an environment variable. Will send a PR, as we're running into this exact issue as well. |
@AndrewSwerlick Could you share your /etc/hosts file? |
I don't have the box anymore because we upgraded to Centos 7.0 and we aren't experimenting with kafka anymore. Sorry. |
This error is sporadic and seen when multiple Kafka services are added to the same docker container (one of the services fails to with an Unknown Host exception. One way, I got to resolve it is by adding a "hostname: localhost" tag to every service. Sample is attached. |
Hello, I got the same issue running on latest Arch Linux x64 with latest Docker and Docker compose version. I don't have any problem with my host hostname configuration. Both hostname and hostname -f give me the right result. |
Since there are known workarounds for the issue, I'm closing this issue for now. If we think, this needs to be addressed in the service, please feel free to reopen. |
In trying to start the schema registry I'm getting the following error.
This is on a Centos 6.6 box where zookeeper and kafka are both installed, and I'm using the default configuration for both after having installed the confluent platform via yum. The box is hosted at digital ocean.
The text was updated successfully, but these errors were encountered: