hadoop in win7(cygwin)

  1. Download 'setup.exe' from Cygwin website

  2. Download hadoop 0.20.2 and hbase 0.20.6 from apache website

  3. Add user hadoop
    $ net user hadoop password /add /yes
    $ net localgroup administrator hadoop /add
    $ mkpassd -l -u hadoop » /etc/passwd

  4. Add sshd service
    $ cygrunsrv.exe –remove sshd (no necessary)
    $ ssh-host-config -y
    $ cygrunsrv.exe –start sshd

  5. Generate ssh key
    $ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
    $ cat ~/.ssh/id_dsa.pub » ~/.ssh/authorized_keys
    $ chmod 600 ~/.ssh/authorized_keys
    $ scp ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys 10.13.136.250:/home/hadoop/.ssh

  6. Edit file as below

  7. core-site.xml

    • hdfs-site.xml
    • mapred-site.xml
    • hadoop-env.sh

Referece

Cygwin for Hadoop (Win 7)

Setting Up Hadoop 0.20.2 on Windows 7 With Cygwin

Hadoop for Windows using Cygwin

你可能感兴趣的:(hadoop in win7(cygwin))