ref
1940s: alteration of how are you?
Shortened from how are you?, with influence from hi.
Onomatopoeic.