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. 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. 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
zypper install knox
# export knox home
export gateway_home=/usr/lib/knox
su -l knox -c "$gateway_home/bin/gateway.sh setup"
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
# testing webhdfs
telnet hwnode1.divbox.net 50070
su -l knox -c "$gateway_home/bin/gateway.sh start"
su -l knox -c "$gateway_home/bin/ldap.sh start"
su -l knox -c "$gateway_home/bin/gateway.sh status"
>> Gateway is running with PID 23387.
su -l knox -c "$gateway_home/bin/ldap.sh status"
>> LDAP is running with PID 23566.
- 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"