Hadoop webuser:没有这样的用户 [英] Hadoop webuser: No such user

查看:627
本文介绍了Hadoop webuser:没有这样的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行hadoop多节点集群时,我在主日志中收到了错误消息,可以建议做些什么..?我需要创建一个新用户还是可以在这里给我现有的机器用户名


2013-07-25 19:41: 11,765 WARN
org.apache.hadoop.security.UserGroupInformation:没有组可用
用户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> 
<属性>
< name> dfs.replication< / name>
<值> 2< /值>
< description>默认块复制。
创建文件时可以指定实际的复制次数。
如果在创建时未指定复制,则使用默认值。
< / description>
< / property>

< / configuration>

core-site.xml

 <结构> 
<属性>
<名称> fs.default.name< /名称>
< value> hdfs:// master:54310< / value>
< description>默认文件系统的名称。一个URI,其
模式和权限决定了FileSystem的实现。
uri的方案决定配置属性(fs.SEMEME.impl)命名
FileSystem实现类。 uri的权限用于
确定文件系统的主机,端口等。< / description>
< / property>

< / configuration>

mapred-site.xml

 <结构> 
<属性>
<名称> mapred.job.tracker< / name>
< value> master:54311< / value>
< description> MapReduce作业追踪器的主机和端口运行
at。如果是本地,那么作业将作为单个映射
在进程中运行并减少任务。
< / description>
< / property>

< / configuration>

我跟着 http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node -cluster /

Hadoop 1.2.0
jetty-6.1.26



添加我的hdfs站点后。 xml外观

 <配置> 
<属性>
< name> dfs.replication< / name>
<值> 2< /值>
< description>默认块复制。
创建文件时可以指定实际的复制次数。
如果在创建时未指定复制,则使用默认值。
< / description>
< / property>
<属性>
<名称> dfs.web.ugi< / name>
<值> hduser,hadoop< /值>
< / property>
< / configuration>


解决方案

编辑 dfs.web.ugi 属性添加到 hdfs-site.xml 中,然后将用户添加到此处。它默认为 webuser,webgroup


While running a hadoop multi-node cluster , i got below error message on my master logs , can some advise what to do..? do i need to create a new user or can i gave my existing Machine user name over here

2013-07-25 19:41:11,765 WARN org.apache.hadoop.security.UserGroupInformation: No groups available for user webuser 2013-07-25 19:41:11,778 WARN org.apache.hadoop.security.ShellBasedUnixGroupsMapping: got exception trying to get groups for user webuser org.apache.hadoop.util.Shell$ExitCodeException: id: webuser: No such user

hdfs-site.xml file

<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>

core-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>

i followed http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/ .

Hadoop 1.2.0 jetty-6.1.26

After adding my hdfs-site.xml looks

<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>

解决方案

Edit the dfs.web.ugi property in hdfs-site.xml and add your user there. It is by default webuser,webgroup.

这篇关于Hadoop webuser:没有这样的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆