HI,
I have a workstation and a laptop. I have installed 2.1.1 release on
both computers. Now I want to test single node and cluster setup. I am
attaching the conf/core-site.xml and conf/hdfs-site.xml. The network
topology is as follows
Workstation connected to router via ethernet.
Laptop connected to router via wireless.
SSH ( without pass phrase ) working between the two.
LAN broadcast ip : 192.168.0.0
Workstation will act as the master in cluster setup with ip: 192.168.0.101
Laptop ip: 192.168.0.103
Operating systems : Ubuntu 13.04 distribution of Linux operating system.
I have commented the hdfs-site.xml properties for switching between
single node and cluster setup.
Problems :
1. In single node configuration ( Datanode and secondary Namenode
successfully working) Namenode failed to start on the workstation.
2. In cluster node configuration, the secondary name node is on laptop.
The master script ( start-dfs.sh ) tries to start the secondary name
node on the laptop with IP address 192.168.0.0 instead of 192.168.0.103
hence failed to connect to port 22. ( using 192.168.0.0:22 instead of
192.168.0.103:22).
Am I configuring the hdfs-site.xml correct ?
Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<!-- Put site-specific property overrides in this file. -->
<configuration>
<!--
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.secondary.http-address</name>
<value>192.168.0.0:50090</value>
</property>
<property>
<name>dfs.datanode.address</name>
<value>192.168.0.0:50010</value>
</property>
<property>
<name>dfs.datanode.http.address</name>
<value>192.168.0.0:50075</value>
</property>
<property>
<name>dfs.datanode.ipc.address</name>
<value>192.168.0.0:50020</value>
</property>
<property>
<name>dfs.namenode.http-address</name>
<value>192.168.0.0:50070</value>
</property>
-->
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.secondary.http-address</name>
<value>0.0.0.0:50090</value>
</property>
<property>
<name>dfs.datanode.address</name>
<value>0.0.0.0:50010</value>
</property>
<property>
<name>dfs.datanode.http.address</name>
<value>0.0.0.0:50075</value>
</property>
<property>
<name>dfs.datanode.ipc.address</name>
<value>0.0.0.0:50020</value>
</property>
<property>
<name>dfs.namenode.http-address</name>
<value>0.0.0.0:50070</value>
</property>
</configuration>