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 |
| 128 | PING worker-0 (172.16.1.10) 56(84) bytes of data. |
| 129 | 64 bytes from worker-0 (172.16.1.10): icmp_seq=1 ttl=64 time=1.09 ms |
| 130 | 64 bytes from worker-0 (172.16.1.10): icmp_seq=2 ttl=64 time=0.772 ms |
| 131 | 64 bytes from worker-0 (172.16.1.10): icmp_seq=3 ttl=64 time=0.888 ms |
| 132 | |
| 133 | # ping worker-1 |
| 134 | PING worker-1 (172.16.1.11) 56(84) bytes of data. |
| 135 | ... |
| 136 | etc |
| 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 | {{{ |
| 146 | hdfs namenode -format |
| 147 | }}} |
| 148 | c. Start the hadoop services: |
| 149 | {{{ |
| 150 | start-dfs.sh |
| 151 | }}} |
| 152 | {{{ |
| 153 | start-yarn.sh |