There are several ways to translate this, depending on what you specifically want to convey.
If "how are you" means "hello", ni hao 你好 is probably the most direct.
If "how are you" is the follow up to hello as in,
"Hello!
Hi!
How are you?
Fine thanks..."
then the "how are you" might be translated "How have you been recently?" ni zui jin hao ma? 你最近好马?
If "how are you" is a question of concern, like asking a person after returning from the hospital "how are you", you might use Zenma yang? Hai hao ma? 怎码洋?还好吗?
I hope this helps. :)