Debug with a pseudo-distributed Hadoop connection in a virtual machine via eclipse in win

Source: Internet
Author: User

VMware Virtual machine configuration Ubuntu bridging mode (bridged) enables virtual machines and hosts to ping each other ,

Debug with a pseudo-distributed Hadoop connection in a virtual machine via eclipse in win

1, set the bridged Internet mode

VMware menu Bar Vm->settings->network adapter or Ctrl+d

2. View bridged status

VMware menu bar edit->virtual Network Editor

to set the above bridged mode, turn off the virtual machine first, do not turn off the settings will prompt only the virtual machine in the power off state to set, select VMnet0, click on the lower left corner of restore Default, Wait a while after the virtual machine is configured with the virtual network card, select Bridged,bridged to receive the actual NIC name of the host that you choose Now, and then click Apply, OK.

3, configure the IP, DNS bridged

View host IP: Reference host IP and DNS, setting virtual machine IP and DNS

Ipconfig/all

Set Virtual machine IP: My host IP is 49.123.72.196, the virtual machine IP is set to 192.123.72.195

Note: I use the following method to set the static IP, IP gateways and masks are the above information, but the manner of setting is different, set up the following way:

1) Configure the NIC parameters to the interfaces file:

?

1

[Email protected]:~$ sudo gedit/etc/network/interfaces

2) Restart the network card:

?

1

[email protected]:~$ sudo /etc/init.d/networking Restart


3. Configure the hosts for Ubuntu:

?

1

[Email protected]:~$ sudo gedit/etc/hosts

Note the configuration is followed by the host name of the virtual machine, not the user name

4. Shut down the host and virtual machine firewall.

Shutting down the host firewall

Shutting down the virtual machine firewall

Restart Ubuntu

Verify that the virtual machine Ubuntu and host win8 are ping-through

Successful ping pass, OK.

Online said through bridged also can internet, but I this can't on the net, later research research.

4. Configure the hosts for Win7:

(win8.1 Find Notepad program, right-click to open with the administrator, and then use the open Notepad to find the Hosts file open and modify, otherwise the permissions problem can not be modified)

5. Configure the Map/reduce connection in Eclipse Win7:1) Basic mode:

2) Advanced mode (optional):

For hdfs-site.xml files:

For core-site.xml files:

3) error:

Error connecting to Map/reduce address
Cannot connect to the Map/reduce Location:ubuntu call to hm-ubuntu/192.168.1.251:9001 failed on connection Exception:jav A.net.connectexception:connection Refused:no Further information

6. Modify the configuration of Hadoop in Ubuntu:1)%hadoop%/conf/core-site.xml:

2)%hadoop%/conf/mapred-site.xml:

3) Reformat HDFs:

?

1

2

3

[email protected]:~$ Hadoop namenode-format   

[email  protected]:~$ start-all.sh

4) configuration of Eclipse in Ubuntu:

Error:


Solution:
To Modify the/etc/hosts file :


Restart Ubuntu

7. Run Eclipse of Win7:1) status in Ubuntu:

2) status in Win7:

Error:
Privilege Control Exception: Access Denied: User =win7 user, rights =*, available list = "System": Ubuntu User: Super user group: rwx------

Error:org.apache.hadoop.security.AccessControlException:Permission Denied:user=administrator, Access=read_ EXECUTE, inode= "system": hm:supergroup:rwx------

8. Modify the Win7 User:1) Modify administrator to HM:

Control Panel, user account, manage other accounts, double click "Administrator", Change account name:

2) Modify user groups:

Right-click "Computers", manage, local Users and groups, users:

Modify Group Name:

3) Restart Eclipse:

4) Modify Win7 user mode two: Create HM User:

(1) Control Panel, user account, manage other accounts, create a new account:

(2) Set password (optional):

(3) Switch User:

Debug with a pseudo-distributed Hadoop connection in a virtual machine via eclipse in win

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.