Generally speaking, running a relay node is considered to be fairly safe and hassle-free.
Running an exit node is more of a hassle, you'll usually be receiving a lot of DMCA notices and a lot of ISPs won't permit running exit nodes from their network.
There has been at least one case outside of the US where an exit node operator was prosecuted and found guilty of aiding in distributing child porn [1].