java.lang.NoSuchMethodError: org.apache.spark.network.util.JavaUtils.timeStringAsSec(Ljava/lang/String;)J

Stack Overflow | sudeepdino008 | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.NoSuchMethodError while running Spark Java program

    Stack Overflow | 9 months ago | sudeepdino008
    java.lang.NoSuchMethodError: org.apache.spark.network.util.JavaUtils.timeStringAsSec(Ljava/lang/String;)J

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.spark.network.util.JavaUtils.timeStringAsSec(Ljava/lang/String;)J

      at org.apache.spark.util.Utils$.timeStringAsSeconds()
    2. Spark
      Utils$.timeStringAsSeconds
      1. org.apache.spark.util.Utils$.timeStringAsSeconds(Utils.scala:993)
      1 frame
    3. org.apache.spark
      RpcTimeout$.apply
      1. org.apache.spark.rpc.RpcTimeout$.apply(RpcTimeout.scala:128)
      1 frame
    4. Spark
      RpcUtils$.lookupRpcTimeout
      1. org.apache.spark.util.RpcUtils$.lookupRpcTimeout(RpcUtils.scala:61)
      1 frame
    5. org.apache.spark
      RpcEnv$.create
      1. org.apache.spark.rpc.RpcEnv.<init>(RpcEnv.scala:69)
      2. org.apache.spark.rpc.netty.NettyRpcEnv.<init>(NettyRpcEnv.scala:43)
      3. org.apache.spark.rpc.netty.NettyRpcEnvFactory.create(NettyRpcEnv.scala:447)
      4. org.apache.spark.rpc.RpcEnv$.create(RpcEnv.scala:53)
      4 frames
    6. Spark
      JavaSparkContext.<init>
      1. org.apache.spark.SparkEnv$.create(SparkEnv.scala:253)
      2. org.apache.spark.SparkEnv$.createDriverEnv(SparkEnv.scala:193)
      3. org.apache.spark.SparkContext.createSparkEnv(SparkContext.scala:288)
      4. org.apache.spark.SparkContext.<init>(SparkContext.scala:457)
      5. org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:59)
      5 frames
    7. Unknown
      SparkMain.main
      1. SparkMain.main(SparkMain.java:14)
      1 frame