Tip for the future: Don't post the entire hand history for analysis. ESPECIALLY not the results.
It's pretty obvious that you want this analyzed because of your set on the turn, and it may influence others' advice.
Given the way you played it to that point, you should have folded. Hopper's checkraise smells like exactly what it turned out to be (checkraises in LHE are very often a pair/FD combo).
What hands cap you preflop? AA/KK/QQ/maybe JJ (but you have it, so not likely), as well as AK/AQs (maybe)
For the checkraiser, we'll give him all pair/flush draw combos and 33 for a set
Plugging in those hands, you can see just how easy of a fold it is in that situation, as you only have about ~9% equity and it's costing you 1BB to make the call.
A way you could've played it that would have had you seeing the turn is betting right out. You were involved in capping it preflop, and against two players, KK might be reluctant to see it through to showdown. If he raises you on the flop, Hopper probably flats and it only costs you an extra bb to get to the turn, where you will have more fold equity against KK and can reevaluate your position with Hopper.