Changes between Version 4 and Version 5 of GENIExperimenter/Tutorials/jacks/HadoopInASlice/ExecuteExperiment


Ignore:
Timestamp:
09/17/15 07:57:56 (9 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/jacks/HadoopInASlice/ExecuteExperiment

    v4 v5  
    7474}}}
    7575 a. Observe the contents of the NEuca user data file.  This file includes a script that will install and execute the script that you configured for the VM. ===
    76 {{{
     76 {{{
    7777# neuca-user-data
    7878[global]
     
    111111        eval "/bin/sh -c \"/home/hadoop/hadoop_config_dynamic.sh 2\""
    112112}}}
    113 
    114 
    115 === C. Observe the contents of the of the script that was installed and executed on the VM. ===
    116 {{{
     113 a. Observe the contents of the of the script that was installed and executed on the VM. ===
     114 {{{
    117115# sudo cat /home/hadoop/hadoop_config_dynamic.sh
    118116
     
    125123....
    126124}}}
    127 
    128 
    129 === D. Test for connectivity between the VMs. ===
    130 
    131 {{{
    132 # ping hadoop-worker-0
    133 PING hadoop-worker-0 (172.16.1.10) 56(84) bytes of data.
    134 64 bytes from hadoop-worker-0 (172.16.1.10): icmp_req=1 ttl=64 time=0.747 ms
    135 64 bytes from hadoop-worker-0 (172.16.1.10): icmp_req=2 ttl=64 time=0.459 ms
    136 64 bytes from hadoop-worker-0 (172.16.1.10): icmp_req=3 ttl=64 time=0.411 ms
    137 ^C
    138 --- hadoop-worker-0 ping statistics ---
    139 3 packets transmitted, 3 received, 0% packet loss, time 1998ms
    140 rtt min/avg/max/mdev = 0.411/0.539/0.747/0.148 ms
    141 # ping hadoop-worker-1
    142 PING hadoop-worker-1 (172.16.1.11) 56(84) bytes of data.
    143 64 bytes from hadoop-worker-1 (172.16.1.11): icmp_req=1 ttl=64 time=0.852 ms
    144 64 bytes from hadoop-worker-1 (172.16.1.11): icmp_req=2 ttl=64 time=0.468 ms
    145 64 bytes from hadoop-worker-1 (172.16.1.11): icmp_req=3 ttl=64 time=0.502 ms
    146 ^C
    147 --- hadoop-worker-1 ping statistics ---
    148 3 packets transmitted, 3 received, 0% packet loss, time 1999ms
    149 rtt min/avg/max/mdev = 0.468/0.607/0.852/0.174 ms
     125 a. Test for connectivity between the VMs. ===
     126 {{{
     127# ping worker-0
     128PING worker-0 (172.16.1.10) 56(84) bytes of data.
     12964 bytes from worker-0 (172.16.1.10): icmp_seq=1 ttl=64 time=1.09 ms
     13064 bytes from worker-0 (172.16.1.10): icmp_seq=2 ttl=64 time=0.772 ms
     13164 bytes from worker-0 (172.16.1.10): icmp_seq=3 ttl=64 time=0.888 ms
     132
     133# ping worker-1
     134PING worker-1 (172.16.1.11) 56(84) bytes of data.
     135...
     136etc
     137}}}
     138
     139=== 1.3 Configure the hadoop filesystem ===
     140  a. Switch to the ‘hadoop’ user.     
     141  {{{
     142       sudo su hadoop -
     143   }}}
     144 b. Format the hadoop filesystem:
     145 {{{
     146hdfs namenode -format
     147}}}
     148 c.  Start the hadoop services:
     149 {{{
     150       start-dfs.sh
     151}}}
     152 {{{
     153       start-yarn.sh
    150154}}}
    151155