You can specify the database as part of the JDBC URI you pass to beeline. For example:
beeline -u "jdbc:hive2://<hostname>:10000/<dbname>"
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.