Tuesday, February 20, 2018

Apache Reverse Proxy Example for Cloudera Yarn

[root@cdh-vm conf.d]# cat /etc/httpd/conf.d/reverse.conf 
# Yarn Resource Manager
Listen 192.168.31.14:8088

    ProxyPreserveHost On
    ProxyPass / http://cdh-vm.dbaglobe.com:8088/
    ProxyPassReverse / http://cdh-vm.dbaglobe.com:8088/


# Yarn Node Manager
Listen 192.168.31.14:8042

    ProxyPreserveHost On
    ProxyPass / http://cdh-vm.dbaglobe.com:8042/
    ProxyPassReverse / http://cdh-vm.dbaglobe.com:8042/


# Yarn JobHistory Server
Listen 192.168.31.14:19888

    ProxyPreserveHost On
    ProxyPass / http://cdh-vm.dbaglobe.com:19888/
    ProxyPassReverse / http://cdh-vm.dbaglobe.com:19888/