Hi, I have a java HDFS client which connects to a production cluster and gets data. On our staging environment we see that since it cannot connect to the namenode (expected) it keeps retrying for 45 times. I am looking for a way to set the retry count to much much lower.
This is what we see in server logs: 2010-08-17 15:15:06,973 INFO [Client] Retrying connect to server: xxxx.yyyy.zzzz.com/192.168.1.11:9000. Already tried 0 time(s). 2010-08-17 15:15:27,979 INFO [Client] Retrying connect to server: xxxx.yyyy.zzzz.com/192.168.1.11:9000. Already tried 1 time(s). 2010-08-17 15:15:48,984 INFO [Client] Retrying connect to server: xxxx.yyyy.zzzz.com/192.168.1.11:9000. Already tried 2 time(s). 2010-08-17 15:16:09,989 INFO [Client] Retrying connect to server: xxxx.yyyy.zzzz.com/192.168.1.11:9000. Already tried 3 time(s). .. .. .. 2010-08-17 15:16:09,989 INFO [Client] Retrying connect to server: xxxx.yyyy.zzzz.com/192.168.1.11:9000. Already tried 44 time(s). I have tried the client config job.set("ipc.client.connect.max.retries", "5"); which doesn't seem to work. Where is this 45 reties coming from? Thanks in advance. -Ayon