README.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Ambari
  2. ======
  3. - Ambari provides the GUI frontend that would help users install, manage and
  4. monitor the Hadoop cluster.
  5. - It uses CSS, Javascript, and HTML on client side. We use the existing proven
  6. open-source technologies in the backend e.g. PHP, Puppet for deploying and
  7. configuring the Hadoop services, Nagios & Ganglia for monitoring alerts and
  8. metrics graphs respectively.
  9. Getting Ambari
  10. ==============
  11. The source can be checked out anonymously from SVN with this command:
  12. $ svn checkout http://svn.apache.org/repos/asf/incubator/ambari/trunk ambari
  13. How to build Ambari
  14. ===================
  15. You need to build a AMBARI rpm from the source code that you checkout above:
  16. $ yum install rpm-build
  17. $ cd hmc; // The new directory structure
  18. $ cd package/rpm
  19. $ ./create_hmc_rpm.sh
  20. When it succeeds, you will find two RPMs inside the build directory package/rpm/build/rpmbuild/RPMS/noarch/:
  21. 1) ambari-1.0.0-1.noarch.rpm
  22. 2) ambari-agent-1.0.0-1.noarch.rpm
  23. Steps to run before you use Ambari for installing Hadoop on your cluster
  24. ========================================================================
  25. The node on which you will run the Ambari web-server will be henceforth referred
  26. to as Ambari master and the nodes which will be used to run Hadoop software will
  27. be called as cluster nodes.
  28. 1) Set up password-less SSH for root to all your cluster nodes.
  29. - Make sure you copy root's ssh public keys to all the cluster hosts.
  30. - You will have to copy the ssh private key to the Ambari node for installing
  31. Hadoop on your cluster nodes from the UI.
  32. Make sure you copy root's ssh public keys to all the cluster hosts.
  33. You will have to copy the ssh private key to your desktop for later use in the UI.
  34. 2) Install the above built ambari-agent-1.0.0-1.noarch.rpm on each of the nodes by running
  35. $ sudo rpm -Uvh ambari-agent-1.0.0-1.noarch.rpm
  36. 3) Stop ip-tables on your Ambari master:
  37. $ sudo service iptables stop
  38. How to install Ambari
  39. =====================
  40. Ambari has few external runtime dependencies, most important of which are
  41. 1) puppet
  42. 2) php
  43. 3) ruby
  44. To simplify the installation of dependencies, you need to enable the following
  45. yum repos. For that, you can simply install the corresponding RPMs.
  46. 1) EPEL repo
  47. 2) Puppet passenger
  48. 3) Hadoop repo
  49. So, you should do the following at the command line:
  50. $ sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/5/[i386|x86_64]/epel-release-5-4.noarch.rpm
  51. $ sudo rpm -Uvh http://passenger.stealthymonkeys.com/rhel/5/passenger-release.noarch.rpm
  52. $ sudo rpm -Uvh http://public-repo-1.hortonworks.com/HDP-1.0.13/repos/centos5/hdp-release-1.0.13-1.el5.noarch.rpm
  53. Now, to install ambari-rpms
  54. $ sudo yum install php-pecl-json (version 1.2.1 compatible with php-5.1 or php-5.2)
  55. $ php -m | grep posix
  56. If the posix module is not found, run 'sudo yum install php-process'
  57. $ sudo rpm -iv ambari-1.0.0-1.noarch.rpm
  58. Hadoop required JDK, so you can download it from the Oracle website
  59. http://download.oracle.com/otn-pub/java/jdk/6u26-b03 . Ambari needs the following
  60. two files to be available on the Ambari master node under /var/run/hmc/downloads/
  61. :
  62. 1) jdk-6u26-linux-x64.bin
  63. 2) jdk-6u26-linux-i586.bin
  64. How to run Ambari
  65. =================
  66. $ sudo service ambari start
  67. You have installed ambari by now. You can start deploying Apache Hadoop and
  68. ecosystem components on your cluster nodes by visiting:
  69. http://AMBARIMASTER/hmc/html/index.php