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