搭建Hadoop运行环境
Experiments: Example 1: use FsShell to list the files in the root of Hadoop Distributed File System: Example 2: use FsShell to transfer the file from Linux File System to Hadoop Distributed File System: Note:hadoop fs –mkdir inputDir ->(在Hadoop分布式文件系统中创建一个叫inputDir的目录) ls –al ~/tmp ->(查看Linux本地文件系统中~/tmp目录下是否有一个文件叫canton_codetemplates.xml) hadoop fs –put ~/tmp/*.xml inputDir –>(让Hadoop FsShell将上述文件从Linux本地文件系统转移到Hadoop分布式文件系统的inputDir目录) hadoop fs –ls inputDir ->(让Hadoop FsShell检查是否成功转移,即在inputDir目录中是否已经有目标文件) Admin Console: 1.Hadoop Distributed File System (NameNode/DataNode etc..) http://192.168.129.35:50070/dfshealth.jsp 2.Map/Reduce ,jobtracker etc 本文转自 charles_wang888 51CTO博客,原文链接:http://blog.51cto.com/supercharles888/840287,如需转载请自行联系原作者