Please don't rub his face in it! Hiding is a good indication that he is afraid of you hurting him (as in, rubbing his face in it) Try throwing some water on the floor and having the same reaction, I bet he will still run away. I think he truly had an "accident" and you are punishing him for it and that's not fair to him. If you feel the need to "punish" give him a time out instead and immediately after the time out allow him the opportunity to potty in the proper place and get a cookie for it.
You don't say how old he is, but the only time I expect my adult dogs to go 4 hours is at night when they are asleep. You definitely should have let him out before hand. I bet he probably gave you some sort of indication he needed to go out and you didn't catch it. If you were unavailable to let him out, you should have crated him (after letting him out, of course.) Sorry! I have to blame the human for this one!

Even if my two don't ask - if they are awake I send them out every 2-3 hours.
He might have been stressed but I doubt jealous - mine sometimes get jealous of each other, or over a toy, but barking or jumping on a lap is usually the response, never peeing on the floor. I'm certain he just had to pee!