2013-04-15 43 views
0

安装Cloudera Manager 4.5后,我发现它没有配置为指向正确的默认文件系统。如果我从tasktracker/datanode框中的一个运行haddop fs -ls /,我只需要获取本地文件系统。通过Cloudera Manager 4.5安装Hadoop后HDFS只指向本地文件系统

但是,当我从Cloudera的检查核心-site.xml中,我看到这样的设置,这似乎像它可能是正确的:

<property> 
    <name>fs.defaultFS</name> 
    <value>hdfs://hadoop-namenode1:8020</value> 
</property> 

任何想法,我应该寻找在这里到底是什么?

[email protected]:~$ hadoop fs -ls/
Found 22 items 
drwxr-xr-x - root root  4096 2013-04-12 13:05 /bin 
drwxr-xr-x - root root  4096 2012-04-19 09:32 /boot 
drwxr-xr-x - root root  4096 2013-04-12 11:53 /dev 
drwxr-xr-x - root root  4096 2013-04-15 04:26 /dfs 
drwxr-xr-x - root root  4096 2013-04-15 05:52 /etc 
drwxr-xr-x - root root  4096 2013-03-30 02:44 /home 
drwxr-xr-x - root root  4096 2013-03-29 11:30 /lib 
drwxr-xr-x - root root  4096 2013-03-29 11:30 /lib64 
drwxr-xr-x - root root  4096 2013-04-15 04:44 /mapred 
drwxr-xr-x - root root  4096 2013-03-29 11:19 /media 
drwxr-xr-x - root root  4096 2012-04-19 09:32 /mnt 
drwxr-xr-x - root root  4096 2013-04-12 13:09 /opt 
dr-xr-xr-x - root root   0 2013-04-12 11:53 /proc 
drwx------ - root root  4096 2013-04-10 09:49 /root 
drwxr-xr-x - root root  480 2013-04-15 05:52 /run 
drwxr-xr-x - root root  4096 2013-03-29 11:31 /sbin 
drwxr-xr-x - root root  4096 2012-03-05 17:54 /selinux 
drwxr-xr-x - root root  4096 2013-03-29 11:19 /srv 
dr-xr-xr-x - root root   0 2013-04-12 11:53 /sys 
drwxrwxrwt - root root  4096 2013-04-15 05:52 /tmp 
drwxr-xr-x - root root  4096 2013-03-29 11:19 /usr 
drwxr-xr-x - root root  4096 2013-03-29 11:19 /var 

回答

2

啊,我不清楚你需要从cloudera manager中“部署客户端配置”。

运行此命令帮我找出答案:

[email protected]:~$ hdfs getconf -confKey fs.defaultFS 
file:/// 

enter image description here

相关问题