spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <>
Subject [jira] [Resolved] (SPARK-12529) Spark streaming: java.lang.NoSuchFieldException: SHUTDOWN_HOOK_PRIORITY
Date Mon, 11 Jan 2016 10:14:39 GMT


Sean Owen resolved SPARK-12529.
    Resolution: Cannot Reproduce

> Spark streaming: java.lang.NoSuchFieldException: SHUTDOWN_HOOK_PRIORITY
> -----------------------------------------------------------------------
>                 Key: SPARK-12529
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.5.2
>         Environment: MacOSX Standalone
>            Reporter: Brad Cox
> Posted originally on stackoverflow. Reposted here on request by Josh Rosen.
> I'm trying to start spark streaming in standalone mode (MacOSX) and getting the following
error nomatter what:
> Exception in thread "main" java.lang.ExceptionInInitializerError at
at at
at at org.apache.spark.SparkEnv$.create(SparkEnv.scala:347)
at org.apache.spark.SparkEnv$.createDriverEnv(SparkEnv.scala:194) at org.apache.spark.SparkContext.createSparkEnv(SparkContext.scala:277)
at org.apache.spark.SparkContext.(SparkContext.scala:450) at org.apache.spark.streaming.StreamingContext$.createNewSparkContext(StreamingContext.scala:566)
at org.apache.spark.streaming.StreamingContext$.createNewSparkContext(StreamingContext.scala:578)
at org.apache.spark.streaming.StreamingContext.(StreamingContext.scala:90) at
at io.ascolta.pcap.PcapOfflineReceiver.main( Caused by: java.lang.NoSuchFieldException:
SHUTDOWN_HOOK_PRIORITY at java.lang.Class.getField( at org.apache.spark.util.SparkShutdownHookManager.install(ShutdownHookManager.scala:220)
at org.apache.spark.util.ShutdownHookManager$.shutdownHooks$lzycompute(ShutdownHookManager.scala:50)
at org.apache.spark.util.ShutdownHookManager$.shutdownHooks(ShutdownHookManager.scala:48)
at org.apache.spark.util.ShutdownHookManager$.addShutdownHook(ShutdownHookManager.scala:189)
at org.apache.spark.util.ShutdownHookManager$.(ShutdownHookManager.scala:58) at org.apache.spark.util.ShutdownHookManager$.(ShutdownHookManager.scala)
... 13 more
> This symptom is discussed in relation to EC2 at
as a Hadoop2 dependency. But I'm running locally (for now), and am using the spark-1.5.2-bin-hadoop2.6.tgz
binary from which I'd hoped would eliminate this possibility.
> I've pruned my code down to essentially nothing; like this:
> SparkConf conf = new SparkConf()
>       .setAppName(appName)
>       .setMaster(master);
>   JavaStreamingContext ssc = new JavaStreamingContext(conf, new Duration(1000));
> I've permuted maven dependencies to ensure all spark stuff is consistent at version 1.5.2.
Yet the ssc initialization above fails nomatter what. So I thought it was time to ask for
> Build environment is eclipse and maven with the shade plugin. Launch/run is from eclipse
debugger, not spark-submit, for now.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message