In my cluster CDH5.4, I have a gateway node which is on the private and public network. The cluster is on a private network. I want to use sqoop to get data out of a database server that is on the public network. When I issue the command the map tasks fail
Error: java.lang.RuntimeException: java.lang.RuntimeException: java.sql.SQLRecoverableException: IO Error: Unknown host specified
I understand that the cluster nodes cannot access the db server on the public network.
Given that this public - private network architecture is quite common in the industry, what is correct way to enable the datanodes to access the server on public network?
Any help is very appreciated....
Gateway node
$>route -v
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.248.200.0 * 255.255.255.0 U 0 0 0 bond_internal
192.168.196.0 * 255.255.252.0 U 0 0 0 bond_external
link-local * 255.255.0.0 U 1007 0 0 bond_external
link-local * 255.255.0.0 U 1008 0 0 bond_internal
default 192.168.196.1 0.0.0.0 UG 0 0 0 bond_external
Datanode
$>route -v
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.248.200.0 * 255.255.255.0 U 0 0 0 bond0
link-local * 255.255.0.0 U 1008 0 0 bond0