how to wire a light with only 2 wires available?
You only need two wires. The earth, or ground, wire is a safety measure should something go wrong with the wiring inside, exposing a live wire. Older homes don't even have such a thing throughout the home and often include a three prong electrical outlet through "updating" without wiring up the ground connection.