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

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

Open
borislavib opened this issue Aug 2, 2019 · 1 comment

Comments

@borislavib
Copy link

borislavib commented Aug 2, 2019

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 ?

@borislavib borislavib changed the title NoNodeAvailableException[None of the configured nodes are available examples/Search/recipe_search_java/ NoNodeAvailableException[None of the configured nodes are available Aug 2, 2019
@Sternbach-Software
Copy link

Same issue.

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

2 participants