Add Virtual Machine node balancing data operations to the CDH cluster (Tutorial), cdh Virtual Machine

Source: Internet
Author: User

Add Virtual Machine node balancing data operations to the CDH cluster (Tutorial), cdh Virtual Machine

Note: The premise is that a new Virtual Machine node has been installed and the corresponding cdh has been installed. You can modify the host name, ip address, mac, and other operations on your own. This article only adds the cluster balance data operation to the Virtual Machine nodes with cdh installed.

1. View virtual machines

Virsh list-all

2. Modify Virtual Machine configurations (CPU, memory, and disk)

Switch to the Virtual Machine directory

Cd/ecars/vm/cdhslave07

Vim libvirt. xml

3. Remove and define virtual machines

Virtual Machine name, remove Virtual Machine

Virsh undfine cdhslave07

Redefinition of Virtual Machine definitions followed by xml

Virsh dfine libvirt. xml

4. Remove eth0 before starting the instance (skip this step and check again if an error is reported later)

Cd/

/Root/net. sh &

Check whether eth0 exists

Ip addr

Remove etho

Ifconfig eth0

Check whether eth0 exists

Ip addr

5. boot

Virsh start cdhslave07

(Shutdown virsh shutdown cdhslave07)

6. Check ssh

You only need to connect cdhmaster. If not, you need to configure ssh

Ssh cdhmaster

7. Add hosts to clusters in the cloudra management field

8. cloudra management interface cluster-hdfs-operation-rebalance

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.