java.lang.reflect.UndeclaredThrowableException: Unknown exception in doAs

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via apache.org by Unknown author, 2 years ago
via apache.org by Unknown author, 2 years ago
via Apache's JIRA Issue Tracker by Thomas Graves, 1 year ago
Unknown exception in doAs
via apache.org by Unknown author, 2 years ago
via Stack Overflow by dirceusemighini
, 1 year ago
java.io.IOException: Can't replace _HOST pattern since client address is null
at org.apache.hadoop.security.SecurityUtil.getServerPrincipal(SecurityUtil.java:255)
at org.apache.hadoop.ipc.Client$ConnectionId.getRemotePrincipal(Client.java:1326)
at org.apache.hadoop.ipc.Client$ConnectionId.getConnectionId(Client.java:1298)
at org.apache.hadoop.ipc.WritableRpcEngine$Invoker.(WritableRpcEngine.java:183)
at org.apache.hadoop.ipc.WritableRpcEngine.getProxy(WritableRpcEngine.java:236)
at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:441)
at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:387)
at org.apache.hadoop.hdfs.DFSUtil.createRPCNamenode(DFSUtil.java:642)
at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:346)
at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:319)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2160)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:85)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2194)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2176)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:306)
at org.apache.spark.util.Utils$.getHadoopFileSystem(Utils.scala:1022)
at org.apache.spark.util.FileLogger.(FileLogger.scala:51)
at org.apache.spark.scheduler.EventLoggingListener.(EventLoggingListener.scala:49)
at org.apache.spark.SparkContext.(SparkContext.scala:172)
at org.apache.spark.SparkContext.(SparkContext.scala:96)
at org.apache.spark.examples.SparkPi$.main(SparkPi.scala:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.spark.deploy.SparkHadoopUtil$$anon$1.run(SparkHadoopUtil.scala:43)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1262)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.