Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

examples/Search/recipe_search_java/ NoNodeAvailableException[None of the configured nodes are available #258

@borislavib

Description

@borislavib

I'm trying to run the basic Search example with Java. It doesn't fill the Description | Ingredients | Directions columns in the table.

I tried the solutions available in Elasticsearch discuss and also on the None of the configured nodes are available on StackOverflow

Here are the cluster settings:

{
  "name" : "bba",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "BHEE1G2_RMmGiuhaIbOeeg",
  "version" : {
    "number" : "7.2.0",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "508838a",
    "build_date" : "2019-06-20T15:54:18.811730Z",
    "build_snapshot" : false,
    "lucene_version" : "8.0.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

I added in the IndexRecipesApp.java the following code:

            Settings settings = Settings.builder()
                    .put("cluster.name", "elasticsearch")
                    .build();
                 TransportClient client = new PreBuiltTransportClient(settings)
                    .addTransportAddress(new TransportAddress(InetAddress.getByName("localhost"), 9300)); 

What else can I try ? Any directions ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions