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

Cannot run create or load DF on Windows- Spark 2.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.0.0
    • None
    • SparkR
    • windows 10
      R 3.3.1
      RStudio 1.0.20

    Description

      Under spark2.0.0- on Windows- when try to load or create data with the similar codes below, I also get error message and cannot execute the functions.

      sc <- sparkR.session(master="local",sparkConfig = list(spark.driver.memory = "2g"))
      df <- as.DataFrame(faithful)

      Here is the error message:
      #Error in invokeJava(isStatic = TRUE, className, methodName, ...) :
      #java.lang.reflect.InvocationTargetException
      #at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      #at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      #at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      #at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      #at org.apache.spark.sql.hive.client.IsolatedClientLoader.createClient(IsolatedClientLoader.scala:258)
      #at org.apache.spark.sql.hive.HiveUtils$.newClientForMetadata(HiveUtils.scala:359)
      #at org.apache.spark.sql.hive.HiveUtils$.newClientForMetadata(HiveUtils.scala:263)
      #at org.apache.spark.sql.hive.HiveSharedState.metadataHive$lzycompute(HiveSharedState.scala:39)
      #at org.apache.spark.sql.hive.HiveSharedState.metadataHive(HiveSharedState.scala:38)
      #at org.apache.spark.sql.hive.HiveSharedState.externalCatalog$lzycompute(HiveSharedState.scala:46)
      #at org.apache.spark.sql.hive.HiveSharedSt

      However, under spark1.6.1 or spark1.6.2, run the same functional functions, there will be no problem.

      sc1 <- sparkR.init(master = "local", sparkEnvir = list(spark.driver.memory="2g"))
      sqlContext <- sparkRSQL.init(sc1)
      df <- as.DataFrame(sqlContext,faithful

      Attachments

        Activity

          People

            Unassigned Unassigned
            Jenchih renzhi he
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: