I recommend Lion Brand Magic Stripes or Patons Kroy for a beginner. I learned on Magic Stripes, and while it’s not very nice yarn, it’s cheap, has lots of yardage, and did I mention cheap? So if you botch it up, decide you hate socks, etc, then your investment isn’t huge. And if you decide you love socks, then you’ll appreciate really nice sock yarn that much more.
As for needles, I think bamboo ones are the way to go, especially for a beginner. They’re less slippery than metal, and are less likely to slip out of the stitches. But whatever the material, I think you should go for the “short” version, around 5 to 6" long. Clover makes some short dpns that are available at Joanns.com and are pretty affordable, especially if you have a coupon. The website also has Patons Kroy sock yarn too, which is nicer than Magic Stripes, but you need 2 for a pair of socks. I really like the Clover short dpns to tell you the truth.
Other dpns that I like are Crystal Palace (nice and sharp), Lantern Moon ($$$), and KA. Knit Picks are the nicest metal ones I’ve tried, if you decide to go with the metal ones. Do not go with the 4" Addi ones - they’re way too short for socks! Trust me - I tried them. Maybe they’re used for gloves.