Code Monkey home page Code Monkey logo

ambari's Introduction

1. Install Ambary on management system

1.1. Add Hortonworks Ambari repostiry with wget

 wget http://public-repo-1.hortonworks.com/ambari/suse11/1.x/updates/1.6.0/ambari.repo  && cp ambari.repo /etc/zypp/repos.d
 # check repositories
 zypper repos | egrep -i "HDP|Ambari"

1.2. Patch ambari 1.6 configs for SLES 11sp3

1.2.1 Ganglia

1. line 94: apache2-mod_php5 to apache2-mod_php5

 vim /var/lib/ambari-server/resources/stacks/HDP/1.3.2/services/GANGLIA/metainfo.xml
 vim /var/lib/ambari-server/resources/stacks/HDP/2.0.6/services/GANGLIA/metainfo.xml

1.2.2. Nagios

1. line 110: php5-json to php53-json

2. line 114: apache2-mod_php5 to apache2-mod_php53

 vim /var/lib/ambari-server/resources/stacks/HDP/1.3.2/services/NAGIOS/metainfo.xml
 vim /var/lib/ambari-server/resources/stacks/HDP/2.0.6/services/NAGIOS/metainfo.xml

2. Install knox on knox gateway

2.1. Install knox

 zypper install knox

2.2. Set knox home

 # export knox home
 export gateway_home=/usr/lib/knox

2.3. Setup knox

 su -l knox -c "$gateway_home/bin/gateway.sh setup"

2.3.1. Change knox configuration for testing

Knox default config file is sandbox.xml move it to your cluster name, your need to know master service hosts of your cluster in this example: hwtestc01

Change all services hostnames from your hortonworks cluster!

 cd /usr/lib/knox/conf/topologies
 export cluster_name=hwtestc01
 mv sandbox.xml "$cluster_name".xml

2.3.2. Test one of services from your hortonworks cluster

 # testing webhdfs
 telnet hwnode1.divbox.net 50070

2.4. Start knox

 su -l knox -c "$gateway_home/bin/gateway.sh start"

2.4.1. Testing knox with guest account (inbuild LDAP)

 su -l knox -c "$gateway_home/bin/ldap.sh start"

2.6. Check knox service running

 su -l knox -c "$gateway_home/bin/gateway.sh status"
 >> Gateway is running with PID 23387.

2.6.1. Check testing ldap service

 su -l knox -c "$gateway_home/bin/ldap.sh status"
 >> LDAP is running with PID 23566.

2.7 Testing knox gateway host

  • cluster_name is filename of your knox configuration file, s. 2.3.1.
 # gateway_host system with installed knox
 export knox_gateway_host=hwnode1.divbox.net

 # test connection with guest user from test ldap
 curl -k -ssl3 -u guest:guest-password -X GET "https://$knox_gateway_host:8443/gateway/$cluster_name/webhdfs/v1/?op=LISTSTATUS"

ambari's People

Contributors

vinoth4v avatar

Watchers

James Cloos avatar Timea Magyar 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.