Elasticsearch is not running in browser - elasticsearch

I have downloaded the Elasticsearch 8.1 in my Ubuntu. After successful installation, when I execute
curl -u elastic https://127.0.0.1:9200 -k
It is showing expected elasticsearch response. But when I hit http://127.0.0.1:9200/ or http://localhost:9200 in my browser, it is returning
After installation, I added network.host: 127.0.0.1 to elasticsearch.yml
Can anybody help me, why it is not running in browser ?
I am using Ubuntu 20 OS & following this Doc

As of version 8.0, Elasticsearch security is turned on by default and SSL/TLS is required for HTTP communications.
You can disable HTTP security if you want, but that's discouraged.

I am using the windows platform, the steps are the same. When you run the elasticsearch.bat in cmd
use this port for elasticsearch HTTPS secure https://localhost:9200/
check the username and password scroll down the cmd running elasticsearch
After login into the elasticsearch. Hurry...
Thanks
But
the best solution is to use Docker Image of ELK stack which is easy instead of downloading the E L K and then run on the local machine.

Related

Sandbox IP mapping not working on HDP Sandbox

I have downloaded the latest HDP 2.6.5 from Hortonworks website. Following the instructions in the section 'MAP SANDBOX IP TO YOUR DESIRED HOSTNAME IN THE HOSTS FILE
' from the link -
https://hortonworks.com/tutorial/learning-the-ropes-of-the-hortonworks-sandbox/#determine-ip-address-of-your-sandbox
I added the details to the hosts file. When I try the site sandbox.hortonworks.com or any of the ones mentioned in the mapping, I get the error 'Site can't be reached'.
I am using Macbook and running the Sandbox on VirtualBox. I am able to log on to the command line using the url http://localhost:4200 and Ambari via http://localhost:8080/#/login.
I just want to know why I am not able to get it working using sandbox.hortonworks.com
Just add the port after your link:
sandbox.hortonworks.com:4200
or
sandbox.hortonworks.com:8080

Elasticsearch windows service not work on Nano server

I am now trying to install ES on windows 2016 Nano server, it works when start ES in command line, but failed to start ES as windows service, maybe due to some changes on Nano server, but I have no hint at all why it didn't work.
Anyone has experience on installing ES on Nano server?
or Where can I get the source code of ES windows service, elasticsearch-windows-x64.exe? It could be helpful to troubleshoot the root cause.
I haven't got a chance to test it on Nano Server 2016, but I've installed ES 5.1.2 + JDK1.8.0_121 on Windows 2016 Server Core successfully and was able to start the service.
Install JDK and set SYSTEM ENV with setx -m JAVA_HOME
"C:\PROGRA~1\Java\jdk1.8.0_121" command. It doesn't work with user level ENV variable such as using set JAVA_HOME=xxx.
unzip ES to c:\elk\elasticsearch
Edit the elasticsearch.yml config file, config the Cluster and Node names and save it
install the ES service C:\elk\elasticsearch\bin>elasticsearch-service.bat install
start the ES service C:\elk\elasticsearch\bin>elasticsearch-service.bat start
Reference:
https://github.com/elastic/elasticsearch/issues/18373
http://blog.technotesdesk.com/setting-a-system-environment-variable-from-command-line-in-windows-server-2012-r2/

Connecting to ElasticSearch plugin under proxy settings

I have a problem with connecting to Elasticsearch under proxy settings. I have installed Bigdesk plugin manually with bin/plugin -DproxyHost=myproxy.proxy.com -DproxyPort=80 --install lukas-vlcek/bigdesk, everything went all right with it.
I run my Elasticsearch on docker, it generated some private IP.
After http://[GeneratedIP]:9200/_plugin/bigdesk/ I have error 504, Proxy Timeout in web browser console.
After running ElasticSearch locally with service elasticsearch start and then in browser http://localhost:9200/_plugin/bigdesk/ it stops loading and I can see just white screen, no output in inspect-console.
Any ideas?

Elasticsearch not responding after update (1.7.5 -> 2.3.1)

I had Elasticsearch 1.7.5 and kopf plugin installed.
I've updated Elasticsearch to 2.3.1 and kopf to 2.0 and now it's not responding (Unable to connect error in browser). When I downgrade both to previous versions all work fine.
I run Ubuntu 14.04 + Apache2.
I checked here and here but did not find anything (tried various settings).
Thank you for any help.
So finally I got to the point where all works fine again.
you need to remember that it is yaml file so every character counts - I had unnecessary white spaces in it.
I added settings:
network.host: site (please remember to add _ before and after)
http.cors.enabled: true
http.cors.allow-origin: /https?://localhost(:[0-9]+)?/
and finally in my PHP code I set the host
$client =
ClientBuilder::create()->setHosts(['http://domain.local:9200'])->build();
In command line I'm calling and getting positive result
curl -XGET http://domain.local:9200/
Very, very big thank you for your help.

Elasctic Search is working at port 9200 but Kibana is not working

Hello I am starting work with kibana and elasticsearch. I am being able to run elasticsearch at port 9200 but kibana is not running at port 5601. The following two images are given for clarification
Kibana is not running and showing the page is not available
Kibana doesn't support space in the folder name. Your folder name is
GA Works
Remove the space between those two words kibana will then run without errors and you will be able to access at
http://localhost:5601
You can rename the folder with
GA_Works
Have you
a) Set the elasticsearch_url to point at your Elasticsearch instance in file kibana/config.yml?
b) Run ./bin/kibana (or bin\kibana.bat on windows) (after setting the above config)
?
If you tried all of the above and still it doesn't work make sure that the kibana process is running first. I found that /etc/init.d/kibana4_init doesn't start the process. If that is the case then try: opt/kibana/bin/kibana.
I also made kibana user:group owner of the folder/files.

Resources