Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR util.Utils: Uncaught exception in thread shutdown-hook-0 #54

Open
yhs1450239423 opened this issue Jun 30, 2022 · 0 comments
Open

Comments

@yhs1450239423
Copy link

yhs1450239423 commented Jun 30, 2022

INFO PRoST: LOADER TERMINATED SUCCESSFULLY
22/06/30 16:37:06 INFO spark.SparkContext: Invoking stop() from shutdown hook
22/06/30 16:37:06 ERROR util.Utils: Uncaught exception in thread shutdown-hook-0
java.lang.NullPointerException
at org.apache.spark.util.logging.DriverLogger$$anonfun$stop$1.apply$mcV$sp(DriverLogger.scala:80)
at org.apache.spark.util.Utils$.tryLogNonFatalError(Utils.scala:1343)
at org.apache.spark.util.logging.DriverLogger.stop(DriverLogger.scala:80)
at org.apache.spark.SparkContext$$anonfun$stop$2$$anonfun$apply$mcV$sp$3.apply(SparkContext.scala:1945)
at org.apache.spark.SparkContext$$anonfun$stop$2$$anonfun$apply$mcV$sp$3.apply(SparkContext.scala:1945)
at scala.Option.foreach(Option.scala:257)
at org.apache.spark.SparkContext$$anonfun$stop$2.apply$mcV$sp(SparkContext.scala:1945)
at org.apache.spark.util.Utils$.tryLogNonFatalError(Utils.scala:1343)
at org.apache.spark.SparkContext.stop(SparkContext.scala:1944)
at org.apache.spark.SparkContext$$anonfun$3.apply$mcV$sp(SparkContext.scala:586)
at org.apache.spark.util.SparkShutdownHook.run(ShutdownHookManager.scala:216)
at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(ShutdownHookManager.scala:188)
at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1$$anonfun$apply$mcV$sp$1.apply(ShutdownHookManager.scala:188)
at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1$$anonfun$apply$mcV$sp$1.apply(ShutdownHookManager.scala:188)
at org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1948)
at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1.apply$mcV$sp(ShutdownHookManager.scala:188)
at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1.apply(ShutdownHookManager.scala:188)
at org.apache.spark.util.SparkShutdownHookManager$$anonfun$runAll$1.apply(ShutdownHookManager.scala:188)
at scala.util.Try$.apply(Try.scala:192)
at org.apache.spark.util.SparkShutdownHookManager.runAll(ShutdownHookManager.scala:188)
at org.apache.spark.util.SparkShutdownHookManager$$anon$2.run(ShutdownHookManager.scala:178)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
22/06/30 16:37:06 INFO server.AbstractConnector: Stopped Spark@20765ed5{HTTP/1.1,[http/1.1]}{0.0.0.0:4040}


when I run the prost-load, The program has finished running the main function, he outputs "LOADER TERMINATED SUCCESSFULLY", but the program still reports a error:“ERROR util.Utils: Uncaught exception in thread shutdown-hook-0”, how I can deal with the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant