Eclipse accesses HDFS File System Resources

Source: Internet
Author: User

1 make sure that eclipse has installed the hadoop-eclipse-plugin-1.0.2.jar plug-in

2. Select MAP/reduce in eclipse

Right-click map/reduce locations and choose new hadoop locations.

Note:

The MAP/reduce port is the mapred-site.xml in the hadoop configuration file

<Name> mapred. Job. Tracker </Name>

The port of the DFS master is in the core-site.xml in the hadoop configuration file

<Name> fs. Default. Name </Name> value

After submission: The following results are displayed on the left:

OK. Then, you can view the HDFS file information through eclipse.

But, just so, the loss can not upload files through eclipse, this is because the hadoop configuration hdfs-site.xml has a field not modified:

Modify the hadoop configuration file CONF/hdfs-core.xml on the server, locate the DFS. Permissions configuration item, and change the value to false

<Property>
<Name> DFS. Permissions </Name>
<Value> false </value>
<Description>

Restart hadoop

The last step is to execute the hadoop program on Eclipse and your permissions are insufficient. This is caused by a package in hadoop: the solution is as follows:

# Bin/hadoop dfsadmin-safemode leave

Http://www.blogjava.net/yongboy/archive/2012/04/26/376486.html

That is, modify the checkreturnvalue in/hadoop-1.0.2/src/CORE/org/Apache/hadoop/fs/fileutil. Java, and comment it out (some rough, in the window, you do not need to check ).

 

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.