question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find Elasticsearch Client

See original GitHub issue
12:08:27,138 WARN  [f.p.e.c.f.c.v.ElasticsearchClientV7] failed to create elasticsearch client, disabling crawler...
12:08:27,138 FATAL [f.p.e.c.f.c.FsCrawlerCli] We can not start Elasticsearch Client. Exiting.
java.lang.IllegalArgumentException: HTTP Host may not be null
        at org.apache.http.util.Args.containsNoBlanks(Args.java:81) ~[httpcore-4.4.11.jar:4.4.11]
        at org.apache.http.HttpHost.create(HttpHost.java:108) ~[httpcore-4.4.11.jar:4.4.11]
        at fr.pilato.elasticsearch.crawler.fs.client.v7.ElasticsearchClientV7.lambda$buildRestClient$1(ElasticsearchClientV7.java:385) ~[fscrawler-elasticsearch-client-v7-2.7-SNAPSHOT.jar:?]
        at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_71]
        at fr.pilato.elasticsearch.crawler.fs.client.v7.ElasticsearchClientV7.buildRestClient(ElasticsearchClientV7.java:385) ~[fscrawler-elasticsearch-client-v7-2.7-SNAPSHOT.jar:?]
        at fr.pilato.elasticsearch.crawler.fs.client.v7.ElasticsearchClientV7.start(ElasticsearchClientV7.java:141) ~[fscrawler-elasticsearch-client-v7-2.7-SNAPSHOT.jar:?]
        at fr.pilato.elasticsearch.crawler.fs.cli.FsCrawlerCli.main(FsCrawlerCli.java:263) [fscrawler-cli-2.7-SNAPSHOT.jar:?]
12:08:27,138 INFO  [f.p.e.c.f.FsCrawlerImpl] FS crawler [first_crawl] stopped
12:08:27,154 INFO  [f.p.e.c.f.FsCrawlerImpl] FS crawler [first_crawl] stopped

I get the above error when trying to reindex the tmp/es folder into the first_crawl index using the FS-es7-2.7 SNAPSHOT from October 24 2019.

Elasticsearch version 7.4.2 is running at the same time as this error is happening, all locally on the same Windows 10 machine. I’m rather new to ES, I got fscrawler to work previously, but since installing Tesseract for OCR I get this error. I have specified the path to Tesseract.exe and Tessdata but still no difference.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dadoonetcommented, May 21, 2020
0reactions
aabid0193commented, May 21, 2020

I think this is related to https://github.com/dadoonet/fscrawler/issues/928 This is still an open issue…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Elastic Search client cannot find Request class - Stack Overflow
I use elastic search 6.3.2 java client with spring boot, and the error is Request class is missing. However from the dependencies, ...
Read more >
Java: cannot find symbol class RestHighLevelClient
I should add that find ~/. m2 -name "elastic*" produces no results. Try taking your IDE out of the equation and check if...
Read more >
Python Elasticsearch Client - Read the Docs
Official low-level client for Elasticsearch. Its goal is to provide common ground for all Elasticsearch-related code in Python; because of this it tries...
Read more >
[Fixed] ModuleNotFoundError: No module named 'elasticsearch'
Quick Fix: Python raises the ImportError: No module named 'elasticsearch' when it cannot find the library elasticsearch . The most frequent source of...
Read more >
@elastic/elasticsearch - npm
The official Elasticsearch client for Node.js. Latest version: 8.5.0, last published: a month ago. Start using @elastic/elasticsearch in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found