Steps to Verify Hadoop/Elasticsearch/ActiveMQ/Cassandra Installation in One Box Setup VM

Name of Innovation

Steps to Verify Hadoop/Elasticsearch/ActiveMQ/Cassandra Installation in One Box Setup VM

January 26, 2017 Hadoop Message Brokers NoSQL Tutorial 0

Hadoop Installation

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

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

  • Please login as user Hadoop ( user id hduser), if asked for please enter password ‘abcd1234’

Screen Shot 2017-01-27 at 12.41.46 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 2017-01-27 at 12.42.28 AM

  • Go to home directory and take a look on the directory presents
    • cd /home/hduser
    • ‘pwd’ command should show path as ‘/home/hduser’.
    • execute ‘ls -lart’ to take a look on the files and directory in general.
  • Close already running applications
    • /home/hduser/stop_all.sh
  • Start hadoop
    • /home/hduser/start_hadoop.sh
  • Confirm that service is running successfully or not
    • run ‘jps’ – you should see something similar to following –

screen-shot-2016-12-09-at-12-44-15-pm

  • Run wordcount program by using following command –
    • /home/hduser/run_helloword.sh
  • At the end you should see something similar –

screen-shot-2016-12-09-at-11-44-33-am

  • Check if the output files have been generated
  • hadoop dfs -ls /user/hduser/output     – you should see something similar to below screenshot

screen-shot-2016-12-09-at-11-46-35-am

  • Get the contents of the output files ( similar to following ) –
    • hadoop dfs -cat /user/hduser/output/part-r-00000

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

  • Finally shutdown the hadoop services
    • /home/hduser/stop_hadoop.sh

Elasticsearch Installation

  • Close already running applications
    • /home/hduser/stop_all.sh
  • Start Elasticsearch –
    • /home/hduser/start_elasticsearch.sh
    • tail /home/hduser/elastic123.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

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

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

 

  • Start Kibana –
    • /home/hduser/start_kibana.sh
    • tail /home/hduser/kibana123.log
  • You should see some messages ( it should not have any ERROR ) in the last you may something similar –

 

Screen Shot 2017-01-27 at 1.04.45 AM

  • Verify Kibana instance
    • Open browser ( firefox )
    • goto http://localhost:5601/app/kibana#
    • You should see similar output

screen-shot-2016-12-16-at-1-26-42-am

  • Shutdown Elasticsearch and Kibana
    • /home/hduser/stop_elasticsearch.sh
    • /home/hduser/stop_kibana.sh

ActiveMQ Installation

  • Close already running applications
    • /home/hduser/stop_all.sh
  • Start ActiveMQ
    • /home/hduser/start_activemq.sh
  • Run validation test – send messages
    • cd /home/hduser/activemq-5.14.3
    • /home/hduser/activemq-5.14.3/send_message.sh
  • See following output on the screen

Screen Shot 2017-01-27 at 1.19.50 AM

  • Continue – receive messages
    • cd /home/hduser/activemq-5.14.3
    • /home/hduser/activemq-5.14.3/receive_message.sh
  • See following output on the screen

Screen Shot 2017-01-27 at 1.24.01 AM

  • Stop ActiveMQ
    • /home/hduser/stop_activemq.sh