Both are fine. I only chose, "Hi" because you can use it at anytime. "What's up?" is fairly informal and should only be used with friends. It might sound a bit strange if you used that with someone you barely know, but some people say it all the time to everyone.