Hadoop Install Problem Resolving list

To avoid many of below problems, you'd better make your current user as a root user. to improve permission, please see link.  ( Weird that can't input Chinese after improve permission to root. I'm trying...)
1. follow the guide from official site, make sure ssh localhost no password required.

2. Don't run with root user, or you'll get root @localhost password requiring issue.

Note: this one happens if run with sudo ..., not sure if it does on root user.

 

3. For my machine, current user doesn't have ownership on hadoop\logs, it's resolved by creating new one.
    for issue example: chown: changing ownership of `<hadoop\logs>': Operation not permitted

4. Solve "agent admitted failure to sign using the key", using command ssh-add

5. Resovle "org.apache.hadoop.security.AccessControlExeption: permission denied",
    I was able to get this working with the following setting:mapred-site.xml

    <configuration>
        <property>
            <name>mapreduce.jobtracker.staging.root.dir</name>
            <value>/user</value>
        </property>
    </configuration>

6. to configure hadoop data files path, please add below properties in hdfs-site.xml.
    <configuration>
        <property>
          <name>hadoop.tmp.dir</name>
          <value>/home/administrator/hadoop/tmp</value>
          <description>A base for other temporary directories.</description>
        </property>
        <property>
          <name>dfs.name.dir</name>
          <value>/home/administrator/hadoop/filesystem/name</value>
          <description>Determines where on the local filesystem the DFS name node should store the name table. If this is a comma-delimited list of directories then the name table is replicated in all of the directories, for redundancy. </description>
        </property>
        <property>
          <name>dfs.data.dir</name>
          <value>/home/administrator/hadoop/filesystem/data</value>
          <description>Determines where on the local filesystem an DFS data node should store its blocks. If this is a comma-delimited list of directories, then data will be stored in all named directories, typically on different devices. Directories that do not exist are ignored.</description>
        </property>
    </configuration>

7. Enable Pseudo distributed system, which looks more sense to simulate reality.

Current state:
Able to run HDFS on Pseudo.
Able to run MR on Pseudo.

转载于:https://my.oschina.net/zhujinbao/blog/52311

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值