There's no proper science behind these, but glucosamine and hyaluronic acid have plausible hypotheses on how they would help behind them.
Most probably you don't need anything. Just don't become too heavy. Being overweight increases the risk of arthritis, currently it's believed to be through sheer extra mechanical stress on the joints. Heavy physixal activity is also somewhat of a risk.