I'm sorry. I know how frustrating this can be. My son is 2 as well. I've found that consistency is the key. Allow them to have tantrums.. Ignore it. Smile when it's over and say "well is that out of your system". Easier said than don. It's normal for children to test the boundaries, to see how far they can get. Remember you are the parent. Consistency is the key.
If it involves hitting or throwing, ect. We have a time out chair. Most people don't agree with this technique and say children don't understand the concept. My son does.

1 minute per the age of the child... So they say.
I think the key is consistency. As well as making sure everyone else he lives with abides by the "rules" you set as parents.
I think it will be very hard at first however in time you may see results. I hope.
Stay strong and love him in spite of it all. He is just trying to figure the world out. Children are smart!!
Take care.. From what I've read this won't last long. Lol..

hmm but we are learning as we go.
God bless,
Cotton