You can use below command to install hive and use beeline
brew install hive
Or you can get all the required jars used by beeline command. to find the same you can launch beeline in you HDP cluster and run lsof -p <beelineclientpid> to find jars loaded and copy to local Mac.
A better solution would be to use JDBC Client tool such as DBeaver or DBVisualizer for Mac