Giter Site home page Giter Site logo

hdpviz's Introduction

An Ambari Stack for HDP Visualizer for component services

Ambari stack/view for easily installing and managing HDP component services Visualizer on HDP cluster

  • Download HDP 2.2 sandbox VM image (Sandbox_HDP_2.2_VMware.ova) from Hortonworks website
  • Import Sandbox_HDP_2.2_VMware.ova into VMWare and set the VM memory size to 8GB
  • Now start the VM
  • After it boots up, find the IP address of the VM and add an entry into your machines hosts file e.g.
192.168.191.241 sandbox.hortonworks.com sandbox    
  • Connect to the VM via SSH (password hadoop), correct the /etc/hosts entry and start Ambari server
  • Edit /etc/hosts on sandbox and change localhost entry to point to IP address instead of 127.0.0.1 e.g.
127.0.0.1               localhost.localdomain
192.168.191.142 sandbox.hortonworks.com sandbox ambari.hortonworks.com localhost
  • Start Ambari service
/root/start_ambari.sh
  • Install Maven
mkdir /usr/share/maven
cd /usr/share/maven
wget http://mirrors.koehn.com/apache/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
tar xvzf apache-maven-3.2.5-bin.tar.gz
ln -s /usr/share/maven/apache-maven-3.2.5/ /usr/share/maven/latest
echo 'M2_HOME=/usr/share/maven/latest' >> ~/.bashrc
echo 'M2=$M2_HOME/bin' >> ~/.bashrc
echo 'PATH=$PATH:$M2' >> ~/.bashrc
export M2_HOME=/usr/share/maven/latest
export M2=$M2_HOME/bin
export PATH=$PATH:$M2
  • To deploy the stack and view, run below
cd /root
git clone https://github.com/abajwa-hw/hdpviz.git 

cp -R /root/hdpviz/hdpviz_stack /var/lib/ambari-server/resources/stacks/HDP/2.2/services/

IP=$(ifconfig eth0|awk '/inet addr/ {split ($2,A,":"); print A[2]}')
sed -i "s/sandbox.hortonworks.com/$IP/g" /root/hdpviz/hdpviz-view/src/main/resources/index.html

cd /root/hdpviz/hdpviz-view
mvn clean package
cp target/*.jar /var/lib/ambari-server/resources/views

sudo service ambari restart
  • Then you can click on 'Add Service' from the 'Actions' dropdown menu in the bottom left of the Ambari dashboard:

On bottom left -> Actions -> Add service -> check HDPVIZ server -> Next -> Next -> Next -> Deploy Image

  • On successful deployment you will see the HDPVIZ service as part of Ambari stack and will be able to start/stop the service from here: Image

  • When you've completed the install process, HDPVIZ will appear in Ambari. You can see the parameters you configured under 'Configs' tab Image

  • To remove the HDPVIZ service:

    • Stop the service via Ambari

    • Delete the service

      curl -u admin:admin -i -H 'X-Requested-By: ambari' -X DELETE http://sandbox.hortonworks.com:8080/api/v1/clusters/Sandbox/services/HDPVIZ
      
    • Remove artifacts

      /var/lib/ambari-server/resources/stacks/HDP/2.2/services/hdpviz-stack/remove.sh
      

Open view

Image

hdpviz's People

Contributors

abajwa-hw avatar

Watchers

James Cloos avatar Damien Claveau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.