启动sbin/start-dfs.sh后,输入jps,master可以显示namenode,输入jps,slave中datenode不能显示时,把namanode和datenode下的logs,dfs,tmp文件都删除,然后重新格式化再启动(sbin/start-dfs.sh)。