Changes between Version 8 and Version 9 of waue/Hadoop_DRBL


Ignore:
Timestamp:
Feb 23, 2009, 6:12:54 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/Hadoop_DRBL

    v8 v9  
    9797|         DRBL SERVER          |
    9898|                              |
    99 |    +-- [eth0] X.X.X.X        +- to WAN
     99|    +-- [eth2] 140.110.xxx.130|   +- to WAN
    100100|                              |
    101101|    +-- [eth1] 192.168.1.254 +- to clients group 1 [ 16 clients, their IP
     
    110110
    111111 == ssh ==
    112  * Hadoop will use ssh connections for internal connection, thus we have to do SSH key exchange.
    113 {{{
    114 $ ssh-keygen
    115 $ cp .ssh/id_rsa.pub .ssh/authorized_keys
     112
     113 * 編寫 /etc/ssh/ssh_config
     114{{{
     115StrictHostKeyChecking no
     116}}}
     117
     118
     119 * 執行
     120{{{
     121$ ssh-keygen -t rsa -b 1024 -N "" -f ~/.ssh/id_rsa
     122$ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
     123}}}
     124
     125 * 寫個自動化 auto.shell 並執行
     126{{{
     127#!/bin/bash
     128
     129for ((i=1;i<=16;i++));
     130do
     131 scp scp -r ~/.ssh/ "192.168.1.$i":~/
     132 scp /etc/ssh/ssh_config "192.168.1.$i":/etc/ssh/ssh_config
     133 ssh "192.168.1.$i" /etc/init.d/ssh restart
     134done
     135}}}
     136
     137 * 正確無誤則可免密碼登入
     138
     139 === dsh ===
     140{{{
    116141$ sudo apt-get install dsh
    117142$ mkdir -p .dsh