Hadoop Basic file operations

Source: Internet
Author: User
Tags hadoop mapreduce

Using Hadoop MapReduce has been a bit of a while, and recently started writing some of your own base libraries. Hadoop file operations are essential operations, and the use of file manipulation commands is often cumbersome, so a simple class is written. Because their base libraries are written according to their own project requirements, they are not complete. Currently, only the most basic upload, delete, and download operations are tested and will continue to be perfected in later development. Now shared out for beginners as a reference, hope the great God generous enlighten.

Hadoop file Operations class and its test class Baidu cloud Disk Link: Http://pan.baidu.com/s/1c0g7CkC

The methods of the Hadoopfile class return a Boolean value that identifies whether the operation was successful. In addition, the information for the last operation is preserved in the public string variable opmessage, which can be printed to see the details of the operation.

This article was referenced in the development process: http://www.jb51.net/article/48104.htm

Hadoop Basic file operations

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.