Installing Cloudera under Virtual machine Linux

Source: Internet
Author: User

-------------------------------------the previous article-------------------------------------

In the case I have not contacted CDH installation Cloudera, the first is the side of Baidu tutorial side specific practice, and then encountered a lot of setbacks.

So I wrote this article over and over to show my installation process, and some problems and workarounds.

-------------------------------------Directory-------------------------------------

One, the system installation under the virtual machine

System Installation

Static IP Internet Settings

Installation Enhancements

Second, the Cloudera installation preparation work

Download of the installation package

System cloning

Third, the installation of Cloudera

Script installation CDH (offline)

-------------------------------------Body-------------------------------------

One, the system installation under the virtual machine
My Cloudera version selected is the 5.9.0,rhel selected is 6.3, virtual machine VM12.0
Configure default on line, single cpu+2g memory, hard disk size I wrote 30G.
When installing, select the desktop version and add the application library at the same time:
Application: Emacs (Gedit)
---Development: All that's needed
---database: all of it.
---Basic system: I do not have a printer, so I do not want to "print client"
---server: Look, I want it all.

And then it's going into the system,
① shutting down the firewall
② Close SELinux
Gedit/etc/selinux/config
Modify Selinux=disabled
③ modifying hostname
Gedit/etc/sysconfig/network
④ Modifying the Hosts
Gedit/etc/hosts
ip+ Space + hostname (example: 192.168.101.221 hadoop1)
I am a cluster of three virtual units, so I wrote three rows of host

⑤ static IP settings (Internet available)

Open network connection, edit eth0
Delete MAC address, add a row in IP4

650) this.width=650; "title=" clears the MAC address. png "src=" http://s4.51cto.com/wyfs02/M01/8C/4D/wKioL1hqGhDBqMU9AABka0R0_ Mi942.png "alt=" Wkiol1hqghdbqmu9aabka0r0_mi942.png "/>

Set up IP, gateway, etc. (here to specify)


---static IP internet settings

First of all, your IP is naturally the host IP just written

Open cmd-> Type ipconfig

650) this.width=650; "title=" Ipconfig-1.png "src=" http://s3.51cto.com/wyfs02/M00/8C/51/ Wkiom1hqgnst4iskaaadl7tmmmy770.png "alt=" Wkiom1hqgnst4iskaaadl7tmmmy770.png "/>

Open Windows Network and Sharing Center, change adapter settings, right-click Current network card (WLAN or Ethernet),
Share-All tick-Select a network connection (select VM's virtual network card), OK

650) this.width=650; "title=" network share. png "src=" http://s2.51cto.com/wyfs02/M00/8C/4D/ Wkiol1hqgfeazm-daagwbvtyyc0925.png "alt=" Wkiol1hqgfeazm-daagwbvtyyc0925.png "/>

Open VM Software, menu editor, virtual Network Editor,->nat mode, follow the picture tick---subnet IP first three bit settings
Need to be consistent with the Linux host IP you just wrote, the last one to write 0

650) this.width=650; "title=" Virtual network editor. png "src=" http://s1.51cto.com/wyfs02/M02/8C/51/ Wkiom1hqgyts8yviaacuxfpaqd8633.png "alt=" Wkiom1hqgyts8yviaacuxfpaqd8633.png "/>

Continue to turn on NAT settings, view gateway IP

650) this.width=650; "title=" Gateway. png "src=" http://s4.51cto.com/wyfs02/M01/8C/4D/wKioL1hqGdSS23c1AABuf9TU3gA052.png "alt=" Wkiol1hqgdss23c1aabuf9tu3ga052.png "/>

After confirming the return, type ipconfig under CMD to see if it takes effect

650) this.width=650; "title=" Ipconfig-2.png "src=" http://s3.51cto.com/wyfs02/M00/8C/51/ Wkiom1hqgl6apbakaaavgip4kw8519.png "alt=" Wkiom1hqgl6apbakaaavgip4kw8519.png "/>

The IP address has changed and OK returns to Linux

Continue to set up the network connection, fill in the corresponding parameters

650) this.width=650; "title=" Network connection settings. png "src=" http://s2.51cto.com/wyfs02/M00/8C/51/ Wkiom1hqgrfzastcaacqxsbal9k989.png "alt=" Wkiom1hqgrfzastcaacqxsbal9k989.png "/>

---Tips:

After an abnormal shutdown, the network may be disabled and the workaround is
Service Network Stop
Rm/var/lib/networkmanager/networkmanager.state
And then restart


After the network has been applied, install the enhancements (http://www.cnblogs.com/web21/p/6007289.html)

Command

CD/
Mkdir/aaa
Mkdir/mnt/cdrom
Mount/dev/cdrom/mnt/cdrom
Cd/mnt/cdrom
Tar zxvf VMwareTools-10 ...-c/aaa
cd/aaa/vmware-tools-distrib/
./vmware-install.pl
And then just return to the car.

Reboot reboot after completion.


Second, the Cloudera installation preparation work

http://archive-primary.cloudera.com/cm5/redhat/6/x86_64/cm/5/RPMS/x86_64/

Download the RPM package from the above address and put it in a folder.

Http://archive.cloudera.com/cm5/installer/5.9.0/cloudera-manager-installer.bin

Download the installation script. bin file.

http://archive.cloudera.com/cdh5/parcels/5/

650) this.width=650; "title=" Parcel.png "src=" http://s2.51cto.com/wyfs02/M01/8C/4D/ Wkiol1hqhmuhx1cuaagu9ryy6e0550.png "alt=" Wkiol1hqhmuhx1cuaagu9ryy6e0550.png "/>

Download the three files and put them in a folder.

Next, drag the RPM folder and the parcel folder into the Linux desktop and shut down when you are done.

Clone the current host, use as a node (I cloned two copies, altogether three hosts).


Third, the installation of Cloudera

Turn on all hosts

Follow the previous method to modify the clone host's hostname and IP, and then command service network restart.

---for all host operations:

command line into the RPM folder, then command yum Localinstall--nogpgcheck *.rpm

---Tips:

650) this.width=650; "title=" Error-1.png "src=" http://s5.51cto.com/wyfs02/M02/8C/4E/wKioL1hqINTgzGLrAAAU_ Vl4lto334.png "alt=" Wkiol1hqintgzglraaau_vl4lto334.png "/>

In the event of the above error, it is generally your system installation, the software library is less, to see what needs to go again.


When finished, the command line enters the parcel folder and commands cp/opt/cloudera/parcel-repo/

---host operations on the master node:

Move the. bin file into the Linux desktop and command chmod +x./cloudera-manager-installer.bin

If something goes wrong, read it carefully and follow its instructions, and then repeat the above command to run it.

When everything goes well, you'll be prompted next

650) this.width=650; "title=" Next.png "src=" http://s2.51cto.com/wyfs02/M02/8C/51/ Wkiom1hqh7abzrilaacvkn4jp4k453.png "alt=" Wkiom1hqh7abzrilaacvkn4jp4k453.png "/>

Point it out and wait for about half a minute, open the browser, type the address: localhost:7180/(this/must have)

After that is the general installation process: (Search the host IP when the time, is a line of an IP)

650) this.width=650; "title=" 01.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/8C/51/ Wkiom1hqitpgfdbmaaf7n3kqtne861.png "alt=" Wkiom1hqitpgfdbmaaf7n3kqtne861.png "/>

650) this.width=650; "title=" 02.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/8C/4E/ Wkiol1hqitiq-kulaaggzx8t3as814.png "alt=" Wkiol1hqitiq-kulaaggzx8t3as814.png "/>

650) this.width=650; "title=" 03.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/8C/4E/ Wkiol1hqitvhwdupaae7j6yfh4y391.png "alt=" Wkiol1hqitvhwdupaae7j6yfh4y391.png "/>

The following is the installation of the required components according to your needs, so CDH has been installed.

-------------------------------------later-------------------------------------

This article is purely hand-played, I hope to help you.

This article is from the "Red Night Day Chen" blog, please be sure to keep this source http://chiye.blog.51cto.com/12371876/1888346

Installing Cloudera under Virtual machine Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.