-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix azure databricks + docs #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% sure if databricks hostname is a flag required always 100% of the time that this connector is use, but without a default value it may be better to set it to required.
pkg/databricks/client.go
Outdated
|
||
func GetAccountHostname(cfg *viper.Viper) string { | ||
if cfg.GetString(config.AccountHostnameField.FieldName) == "" { | ||
return "accounts." + GetHostname(cfg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will work for Azure or GCP, as the hostname provided will be something like 8757561887652360.0.gcp.databricks.com
or adb-5555555555555555.19.azuredatabricks.net
, but the account hostnames for those need to be accounts.gcp.databricks.com
and accounts.azuredatabricks.net
respectively. Prepending "accounts" to the hostnames will result in accounts.8757561887652360.0.gcp.databricks.com
and accounts.adb-5555555555555555.19.azuredatabricks.net
, which isn't correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ggreer Isn't that solved by just using account-hostname ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but we should change the behavior to detect GCP and Azure hostnames and return correct account hostnames for them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.