HDFS setup

1. instead of using root, add a separate user and group to install hadoop

when I was using root to install hadoop, I ran into problem not being able to start HDFS. The erro messag was something like:

a. unrecognized argument: -jvm

b. error message is cannot create vitrual machine

After I created another user "hadoop" and then installed the hadoop, this problem disapeared.

2. make sure your hostname of your master is not aliased as 127.0.0.1

Mostly, the /etc/hosts file of your master node will aliased the "hostname" as 127.0.0.1, please remove it. Just keep the localhost part.

After that, the /etc/hosts file should look like this:

127.0.0.1       localhost.localdomain   localhost
::1             localhost6.localdomain6 localhost6
10.130.237.8  gonro07-VM18102.ca.com  gonro07-VM18102

 

 

3. Use the same "conf" dir across the cluster

we can use rsync command to accomplish this task:

rsync shell to synchronize configuraton across cluster
 for a in `sort -u /home/hadoop/hadoop/conf/{slaves,masters}` ; do rsync -e ssh -v -a --include 'conf/*'  "/home/hadoop/hadoop/" ${a}:"/home/hadoop/hadoop"; done

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值