Hosha'ana Rabba

Judgement or Joy?

How can Hoshana Rabba be a day of such happiness if it is actually a day of judgement?