beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rik Nauta (JIRA)" <>
Subject [jira] [Created] (BEAM-2541) ElasticsearchIO breaks for non locally accessible DB
Date Thu, 29 Jun 2017 15:35:00 GMT
Rik Nauta created BEAM-2541:

             Summary: ElasticsearchIO breaks for non locally accessible DB
                 Key: BEAM-2541
             Project: Beam
          Issue Type: Improvement
          Components: sdk-java-extensions
            Reporter: Rik Nauta
            Assignee: Davor Bonaci

We have a ES (2.4) database running in production that is not accessible from dev-machines
because of VPS firewall rules. However, we do create the Beam graph locally on our machines
and submit it to Google Dataflow for execution. However because of this check (line 213)

{{private static void checkVersion(ConnectionConfiguration connectionConfiguration)
        throws IOException {
      RestClient restClient = connectionConfiguration.createClient();
      Response response = restClient.performRequest("GET", "", new BasicHeader("", ""));
      JsonNode jsonNode = parseResponse(response);
      String version = jsonNode.path("version").path("number").asText();
      boolean version2x = version.startsWith("2.");
          "ConnectionConfiguration.create(addresses, index, type): "
              + "the Elasticsearch version to connect to is different of 2.x. "
              + "This version of the ElasticsearchIO is only compatible with Elasticsearch

the creation of the graph fails because it can't complete the restClient request from our
dev machines. This check should probably not happen this early since there is no guarantee
that the database is reachable when building the graph

This message was sent by Atlassian JIRA

View raw message