在运行hadoop多节点群集时,我在主日志上收到以下错误消息,有人可以建议做什么..?我是否需要创建新用户,或者我可以在此处提供现有的计算机用户名
2013-07-25 19:41:11,765警告 org.apache.hadoop.security.UserGroupInformation:没有可用的组 for user webuser 2013-07-25 19:41:11,778 WARN org.apache.hadoop.security.ShellBasedUnixGroupsMapping:异常 试图为用户webuser获取组 org.apache.hadoop.util.Shell $ ExitCodeException:id:webuser:没有这样的 用户
hdfs-site.xml文件
<configuration>
<property>
<name>dfs.replication</name>
<value>2</value>
<description>Default block replication.
The actual number of replications can be specified when the file is created.
The default is used if replication is not specified in create time.
</description>
</property>
</configuration>
芯-site.xml中
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://master:54310</value>
<description>The name of the default file system. A URI whose
scheme and authority determine the FileSystem implementation. The
uri's scheme determines the config property (fs.SCHEME.impl) naming
the FileSystem implementation class. The uri's authority is used to
determine the host, port, etc. for a filesystem.</description>
</property>
</configuration>
mapred-site.xml中
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>master:54311</value>
<description>The host and port that the MapReduce job tracker runs
at. If "local", then jobs are run in-process as a single map
and reduce task.
</description>
</property>
</configuration>
我跟着http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/。
Hadoop 1.2.0 码头-6.1.26
添加我的hdfs-site.xml外观
<configuration>
<property>
<name>dfs.replication</name>
<value>2</value>
<description>Default block replication.
The actual number of replications can be specified when the file is created.
The default is used if replication is not specified in create time.
</description>
</property>
<property>
<name>dfs.web.ugi</name>
<value>hduser,hadoop</value>
</property>
</configuration>
答案 0 :(得分:4)
修改 hdfs-site.xml 中的 dfs.web.ugi 属性,然后在此处添加您的用户。默认情况下, webuser,webgroup 。