Connecting to Hive using Beeline

2019-02-07 01:50发布

I am trying to connect to hive installed in my machine through Beeline client. when I give the 'beeline' command & connect to Hive, the client is asking for user name & password

!connect jdbc:hive2://localhost:10000/default

I have no idea what is the user name and password I am supposed to give. Do I have to add the credential(user name & password) in some configuration file?

7条回答
手持菜刀,她持情操
2楼-- · 2019-02-07 02:42

It is user id and password that is used to login to the unix box of the cluster. Some times it is the edge nodes credentials that you use to login using putty. The best way to avoid this is by using the below command

beeline -u jdbc:hive2://localhost:10000/default

If you are already logged in to some node through putty you won't be prompted with any user id or password.

查看更多
登录 后发表回答