简体   繁体   English

通过Cloudera Manager 4.5安装Hadoop之后,HDFS仅指向本地文件系统

[英]After installing Hadoop via Cloudera Manager 4.5 HDFS only points to the local filesystem

After install Cloudera Manager 4.5 I find that it's not configured to point to the correct default filesystem. 安装Cloudera Manager 4.5后,我发现它没有配置为指向正确的默认文件系统。 If I run haddop fs -ls / from one of the tasktracker/datanode boxes I just get the local filesystem. 如果我从haddop fs -ls / / datanode框之一运行haddop fs -ls / ,我就会得到本地文件系统。

But when I check core-site.xml from in cloudera, I see this setting, which seems like it might be correct: 但是当我从cloudera中检查core-site.xml时,我看到了这个设置,看起来它可能是正确的:

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

Any idea what I should be looking for here exactly? 知道我应该在这里找到什么吗?

davidparks21@hadoop-reducedslot2:~$ 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

Ah, it wasn't clear to me that you need to "deploy client configuration" from cloudera manager. 啊,我不清楚你需要从cloudera经理“部署客户端配置”。

Running this command helped me figure that out: 运行此命令帮助我解决了这个问题:

davidparks21@hadoop-reducedslot2:~$ hdfs getconf -confKey fs.defaultFS
file:///

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM