通过uri访问hdfs 用法:scheme://authority/path 选项: (1)scheme–>协议名,file或hdfs (2)authority–>namenode主机名 (3)path–>路径viewfs://marsX 范例:hdfs://localhost:54310/user/hadoop/test.txt或viewfs://marsX/user/hadoop/test.txt 获取namenode主机名命令:hdfs getconf -confKey fs.default.name