安装hue报错

  1. 云栖社区>
  2. 博客>
  3. 正文

安装hue报错

填坑大人 2018-06-06 18:59:44 浏览1391
展开阅读全文
  1. User: hadoop is not allowed to impersonate hue,如:
Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hadoop is not allowed to impersonate hue
Bad status for request TOpenSessionReq(username='hadoop', password=None, client_protocol=6, configuration={}): TOpenSessionResp(status=TStatus(errorCode=0, errorMessage='Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hadoop is not allowed to impersonate hue', sqlState=None, infoMessages=['*org.apache.hive.service.cli.HiveSQLException:Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hadoop is not allowed to impersonate hue:14:13', 'org.apache.hive.service.cli.session.SessionManager:createSession:SessionManager.java:336', 'org.apache.hive.service.cli.session.SessionManager:openSession:SessionManager.java:279', 'org.apache.hive.service.cli.CLIService:openSessionWithImpersonation:CLIService.java:189', 'org.apache.hive.service.cli.thrift.ThriftCLIService:getSessionHandle:ThriftCLIService.java:423', 'org.apache.hive.service.cli.thrift.ThriftCLIService:OpenSession:ThriftCLIService.java:312', 'org.apache.hive.service.rpc.thrift.TCLIService$Processor$OpenSession:getResult:TCLIService.java:1377', 'org.apache.hive.service.rpc.thrift.TCLIService$Processor$OpenSession:getResult:TCLIService.java:1362', 'org.apache.thrift.ProcessFunction:process:ProcessFunction.java:39', 'org.apache.thrift.TBaseProcessor:process:TBaseProcessor.java:39', 'org.apache.hive.service.auth.TSetIpAddressProcessor:process:TSetIpAddressProcessor.java:56', 'org.apache.thrift.server.TThreadPoolServer$WorkerProcess:run:TThreadPoolServer.java:286', 'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1149', 'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:624', 'java.lang.Thread:run:Thread.java:748', '*java.lang.RuntimeException:java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hadoop is not allowed to impersonate hue:22:8', 'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:89', 'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:36', 'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:63', 'java.security.AccessController:doPrivileged:AccessController.java:-2', 'javax.security.auth.Subject:doAs:Subject.java:422', 'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1886', 'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:59', 'com.sun.proxy.$Proxy35:open::-1', 'org.apache.hive.service.cli.session.SessionManager:createSession:SessionManager.java:327', '*java.lang.RuntimeException:org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hadoop is not allowed to impersonate hue:29:7', 'org.apache.hadoop.hive.ql.session.SessionState:start:SessionState.java:591', 'org.apache.hadoop.hive.ql.session.SessionState:start:SessionState.java:526', 'org.apache.hive.service.cli.session.HiveSessionImpl:open:HiveSessionImpl.java:168', 'sun.reflect.NativeMethodAccessorImpl:invoke0:NativeMethodAccessorImpl.java:-2', 'sun.reflect.NativeMethodAccessorImpl:invoke:NativeMethodAccessorImpl.java:62', 'sun.reflect.DelegatingMethodAccessorImpl:invoke:DelegatingMethodAccessorImpl.java:43', 'java.lang.reflect.Method:invoke:Method.java:498', 'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:78', '*org.apache.hadoop.ipc.RemoteException:User: hadoop is not allowed to impersonate hue:53:24', 'org.apache.hadoop.ipc.Client:getRpcResponse:Client.java:1493', 'org.apache.hadoop.ipc.Client:call:Client.java:1439', 'org.apache.hadoop.ipc.Client:call:Client.java:1349', 'org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker:invoke:ProtobufRpcEngine.java:227', 'org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker:invoke:ProtobufRpcEngine.java:116', 'com.sun.proxy.$Proxy31:getFileInfo::-1', 'org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB:getFileInfo:ClientNamenodeProtocolTranslatorPB.java:796', 'sun.reflect.GeneratedMethodAccessor2:invoke::-1', 'sun.reflect.DelegatingMethodAccessorImpl:invoke:DelegatingMethodAccessorImpl.java:43', 'java.lang.reflect.Method:invoke:Method.java:498', 'org.apache.hadoop.io.retry.RetryInvocationHandler:invokeMethod:RetryInvocationHandler.java:422', 'org.apache.hadoop.io.retry.RetryInvocationHandler$Call:invokeMethod:RetryInvocationHandler.java:165', 'org.apache.hadoop.io.retry.RetryInvocationHandler$Call:invoke:RetryInvocationHandler.java:157', 'org.apache.hadoop.io.retry.RetryInvocationHandler$Call:invokeOnce:RetryInvocationHandler.java:95', 'org.apache.hadoop.io.retry.RetryInvocationHandler:invoke:RetryInvocationHandler.java:359', 'com.sun.proxy.$Proxy32:getFileInfo::-1', 'org.apache.hadoop.hdfs.DFSClient:getFileInfo:DFSClient.java:1717', 'org.apache.hadoop.hdfs.DistributedFileSystem$29:doCall:DistributedFileSystem.java:1526', 'org.apache.hadoop.hdfs.DistributedFileSystem$29:doCall:DistributedFileSystem.java:1523', 'org.apache.hadoop.fs.FileSystemLinkResolver:resolve:FileSystemLinkResolver.java:81', 'org.apache.hadoop.hdfs.DistributedFileSystem:getFileStatus:DistributedFileSystem.java:1523', 'org.apache.hadoop.fs.FileSystem:exists:FileSystem.java:1627', 'org.apache.hadoop.hive.ql.session.SessionState:createRootHDFSDir:SessionState.java:689', 'org.apache.hadoop.hive.ql.session.SessionState:createSessionDirs:SessionState.java:635', 'org.apache.hadoop.hive.ql.session.SessionState:start:SessionState.java:563'], statusCode=3), sessionHandle=None, configuration=None, serverProtocolVersion=8)

解决办法:
配置core-site.xmlhttpfs-site.xml时,通过命令找出应该配置哪个用户。

$HIVE_HOME/bin/beeline -u 'jdbc:hive2://localhost:10000/db_hive_test' -n hadoop  -p hadoop

如果正常,则应该配置为hadoop.proxyuser.hadoop.hosts,如

<property>
 <name>hadoop.proxyuser.hadoop.hosts</name>
  <value>*</value>
</property>
<property>
  <name>hadoop.proxyuser.hadoop.groups</name>
  <value>*</value>
</property>

网友评论

登录后评论
0/500
评论
填坑大人
+ 关注