Verify Elasticsearch installation on Ubuntu VM

Verify Elasticsearch installation on Ubuntu VM

  •         Start Virtual Box, Choose the machine you prepared in earlier step and click on the “Start” button ( green color ).

screen-shot-2016-12-09-at-11-08-22-am

  • If asked for please enter password ‘abcd1234’

screen-shot-2016-12-09-at-11-09-13-am

  • Click on the Ubuntu on the top-left corner and look for terminal and click on the terminal

screen-shot-2016-12-09-at-11-10-51-am

  • Once the terminal is up and running it should look similar to following –

screen-shot-2016-12-09-at-11-12-16-am

  • Login as hduser user.
    • su hduser
    • password ‘abcd1234’
  • Set the JAVA_HOME
    • export JAVA_HOME=/usr/lib/jvm/java-8-oracle/
  • Start Elasticsearch –
    • cd /home/hduser/elasticsearch-5.0.2/bin
    • sudo ./elasticsearch 2>&1 > /home/hduser/elastic.log &
    • You should see some messages ( it should not have any ERROR ) in the last you may something similar –

screen-shot-2016-12-09-at-12-22-59-pm

  • Very the instance
    • Open browser ( firefox )
    • goto http://localhost:9200
    • You should see following output

screen-shot-2016-12-09-at-12-26-20-pm