Skip to content
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

Received an UnknownHostException when switching tabulario/iceberg-rest from 0.2.0 to 0.3.0 #29

Open
huaxk opened this issue Apr 12, 2023 · 0 comments

Comments

@huaxk
Copy link

huaxk commented Apr 12, 2023

environments:

tabulario/iceberg-rest:0.3.0
flink 1.16.1
iceberg 1.2.0

When I execute the following statement in Flink SQL client:

CREATE CATALOG rest_catalog WITH (
  'type'='iceberg',
  'catalog-type'='rest',
  'uri'='http://localhost:8181'
);
USE CATALOG rest_catalog;
CREATE TABLE all_users_sink (
  database_name STRING,
  table_name    STRING,
  `id`          DECIMAL(20, 0) NOT NULL,
  name          STRING,
  address       STRING,
  phone_number  STRING,
  email         STRING,
  PRIMARY KEY (database_name, table_name, `id`) NOT ENFORCED
);

An error occurred:
[ERROR] Could not execute SQL statement. Reason: org.apache.iceberg.exceptions.ServiceFailureException: Server error: SdkClientException: Received an UnknownHostException when attempting to interact with a service. See cause for the exact endpoint that is failing to resolve. If this is happening on an endpoint that previously worked, there may be a network connectivity issue or your DNS cache could be storing endpoints for too long.

The same configuration in tabulario/iceberg-rest:0.2.0, Execute fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant