Is my water heater installed properly?
All three pipes are hot near the water heater because they are warmed by the heat from the water heater, through conduction and convection. This does not indicate an incorrect water heater install.