PrefaceAmbari can build, manage the Hadoop cluster, this is a cool thing, make the cluster management become easy, but there may also be some of their own needs, if I want to do two times based on Ambari to develop DIY, modify the interface, add some features, adding a module and so on, These are no problem, first Ambari is based on ASF protocol, second, development is also very convenient, the only disadvantage is that the official website based on this development documentation is not many.
I mainly introduce, how to do two times based on Ambari to develop, build the development environment, finally compiled deployment packaging.
Development Environment Construction
Installing Nodejs python under Windows is more complex, mainly nodejs some library files need to be compiled in some languages such as C + +, Ruby, Python, etc., so it is simple to build these environments on Linux, Share files from Linux using the Samba protocol, run tests on Linux, and code modifications under Windows. (using the Samba protocol is a way to connect Linux and windows that can be applied to many scenarios, which I think is the highlight).
Installing Samba
1) Install Samba: You can first check if it is installed: Rpm-qa | grep samba, without the words to install it yourself, here is an online installation mode Yum based on RPM package. Yum is a quick-install mode that automatically solves the dependencies of software installation and automatically downloads the appropriate software for installation on a specific server, with simple commands: Yum installs Samba, which is fast and easy behind the programmer's hard work!
2) Service SMB restart//restart SMB
3) Useradd Samba//Create Samba users on Linux
4) Smbpasswd-a Samba//Create SMB user, this user must be an already established on Linux
Enter your password to complete.
5) Srvice iptables stop//Shut down firewall
6) Setenforce 0//ensure setlinux off
7) Modify the/etc/samba/smb.conf, which has more parameters, mainly
vi/etc/samba/smb.conf, add the folder you want to share at the end:
[Samba home]; share name
Path =/home/samba; shared folder path
writeable = yes; writable
Guest OK = no; allow guest access
8) Under Windows Connect, start running, enter \\<samba_ip>, enter the SMB account password.
Development process
1) under the Ambari-web project, run the command
Download good Ambari the corresponding source code, into the corresponding directory.
[Email protected] ambari-web]# Brunch Watch–server
At this point, the Ambari-web project is already running
can be accessed via browser: Http://<ambari-webserver ip>:3333
2) on the window, through the remote connection access to the Samba shared directory, modify the corresponding code, Ambari-web project will be automatically compiled, in the browser refresh, you will see the effect of the changes.
3) Packaging
After the development, you can refer to the first and second blog of the Ambari series for compiling and installing.
Original articles, welcome reprint, reproduced please indicate the source
Ambari Series (four): Based on Ambari do two times development (DIY)