| 46 | |
| 47 | == <補充> Apache Proxy == |
| 48 | |
| 49 | * 讓 http://node50.3du.me/hdfs 等於 http://node50.3du.me:50070 |
| 50 | * 讓 http://node50.3du.me/mapred 等於 http://node50.3du.me:50030 |
| 51 | |
| 52 | {{{ |
| 53 | user@node50:~$ sudo apt-get install apache2 |
| 54 | user@node50:~$ sudo a2enmod proxy_http |
| 55 | user@node50:~$ sudo vi /etc/apache2/sites-enabled/000-default |
| 56 | user@node50:~$ sudo service apache2 restart |
| 57 | }}} |
| 58 | {{{ |
| 59 | #!text |
| 60 | <Location /hdfs> |
| 61 | ProxyPass http://localhost:50070 |
| 62 | Order allow,deny |
| 63 | Allow from all |
| 64 | </Location> |
| 65 | |
| 66 | <Location /mapred> |
| 67 | ProxyPass http://localhost:50030 |
| 68 | Order allow,deny |
| 69 | Allow from all |
| 70 | </Location> |
| 71 | }}} |