小编ser*_*ava的帖子

无法使用beeline连接到hive,用户root无法模仿匿名

我正在尝试使用beeline连接到hive !connect jdbc:hive2://localhost:10000,我被要求输入用户名和密码


Connecting to jdbc:hive2://localhost:10000' Enter username for jdbc:hive2://localhost:10000: Enter password for jdbc:hive2://localhost:10000:


因为我不知道我应该输入什么用户名或密码我将它留空导致错误:Error: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate anonymous (state=,code=0) 我的设置是ubuntu中的单个节点hadoop集群.我可以确认服务已启动并运行,包括hadoop和hiveserver2

问题是,这些用户名和密码是什么,我被问到,在哪里可以找到它们或设置它们?

提前致谢

hadoop hive beeline

5
推荐指数
2
解决办法
4485
查看次数

标签 统计

beeline ×1

hadoop ×1

hive ×1