Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-38807

Error when starting spark shell on Windows system

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3.0, 3.2.2
    • Spark Core
    • None

    Description

      Using the release version of spark-3.2.1  and the default configuration, starting spark shell on Windows system fails. (spark 3.1.2 doesn't show this issue)

      Here is the stack trace of the exception:

      22/04/06 21:47:45 ERROR SparkContext: Error initializing SparkContext.
      java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              ...
              at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
              at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:955)
              at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180)
              at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203)
              at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
              at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1043)
              at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1052)
              at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 30: spark://192.168.X.X:56964/F:\classes
              at java.net.URI$Parser.fail(URI.java:2845)
              at java.net.URI$Parser.checkChars(URI.java:3018)
              at java.net.URI$Parser.parseHierarchical(URI.java:3102)
              at java.net.URI$Parser.parse(URI.java:3050)
              at java.net.URI.<init>(URI.java:588)
              at org.apache.spark.repl.ExecutorClassLoader.<init>(ExecutorClassLoader.scala:57)
              ... 70 more
      22/04/06 21:47:45 ERROR Utils: Uncaught exception in thread main
      java.lang.NullPointerException
                  ... 

      Attachments

        Issue Links

          Activity

            People

              huibai Ming Li
              huibai Ming Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: