Most likely it's the anode rod. If the heater is over 5 years old that it most likely the problem. See this a lot when a house is on well water or the water in the heater hasn't been used in awhile....