Embed any webapp/website as Ambari view!
Switch branches/tags
Nothing to show
Clone or download
Latest commit f302f54 Feb 26, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples renamed AH view to HCC Feb 26, 2016
screenshots adding iPython Notebook Jan 31, 2015
src/main/resources removed title Jul 20, 2015
.gitignore initial commit Jan 23, 2015
README.md test commit Jun 6, 2015
pom.xml use ambari-view jar from maven repo Mar 19, 2015


iFrame embedded in Ambari view

Embed any webapp or webpage into Ambari!

Author: Ali Bajwa

  • Remote desktop into your sandbox from within Ambari by combining the view with the VNC stack: Image

    • ...and bring up Ambari in a Firefox browser to create an Ambari Droste effect Image
  • Ranger audits in Ambari Image

  • Beeswax query in Ambari Image

  • iPython Notebook in Ambari - see here for additional iPython notebook instructions Image

  • Document crawler in Ambari Image

  • phpLDAP UI in Ambari Image

  • Tableau visualization in Ambari Image

  • Other ideas:

    • Create an Ambari view of customer website/webapp in front of them to demonstrate ease of setup
    • Demonstrate integration with external webservices: JQuery webapp making external REST calls (in this case to Youtube) from within Ambari View Image
  • 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. sandbox.hortonworks.com sandbox    
  • Connect to the VM via SSH (password hadoop) and start Ambari server
ssh root@sandbox.hortonworks.com
  • Install Maven
curl -o /etc/yum.repos.d/epel-apache-maven.repo https://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo
yum -y install apache-maven
  • To deploy the iFrame view, run below. On non-sandbox env, these steps should be run on node running Ambari server
#Pull code (pom.xml, view.xml, index.html)
git clone https://github.com/abajwa-hw/iframe-view.git
cd iframe-view

#OPTIONAL STEP: change the iframe to point to any website you want. The default is set to Ranger admin (sandbox:6080)
vi src/main/resources/index.html

#OPTIONAL STEP: change the view label that will display in Ambari, or the internal view name. The default is "iFrame View"
vi src/main/resources/view.xml

#Compile view
mvn clean package

#move jar to Ambari dir
cp target/*.jar /var/lib/ambari-server/resources/views
  • Restart Ambari
#on HDP 2.2 sandbox
service ambari restart

#on non-sandbox
service ambari-server restart
#change the url here
vi src/main/resources/index.html

#bump up the version e.g. to 1.0.1
vi src/main/resources/view.xml

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

#Now restart Ambari 

#on HDP 2.2 sandbox
service ambari restart
#on non-sandbox
service ambari-server restart