Copy the Centos Virtual Machine to solve mac conflicts and transform Slaves into a Master.

Source: Internet
Author: User

Copy the Centos Virtual Machine to solve mac conflicts. The grub of the Master virtual machine, such as Slaves, is damaged because it cannot be repaired by using a Dvd and can only be deleted once. However, the Server Load balancer node configuration was good before, and it was copied and used directly, and then changed to Master. Method: Find the virtual machine image file, copy it, and rename it to the Master (if you open the image with vm, you will be asked whether it was copied or moved, and we will choose to copy it ). After the host name is enabled, modify the Host Name of the mac address: vi/etc/hosts (the main place, and then check whether there is any residue in vi/etc/sysconfig/network) to modify the mac address: find the configuration file (*. vmx), find the corresponding MAC address settings, such as ESX1: ethernet0.generatedAddress = "00: 0c: 29: 8f: 4b: f4" ethernet1.generatedAddress = "00: 0c: 29: 8f: 4b: fe "Modify the network mac by modifying the ifconfig-eth0, put *. the ethernet0 option in vmx is changed to the value corresponding to MACADDR. Modify MACADDR. To convert a Server Load balancer instance to a Master instance, You need to modify some of the Server Load balancer files in hadoop-conf and the myid files in zookeeper. This is not detailed here. After the configuration is complete, the restart takes effect.

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.