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