Giter Site home page Giter Site logo

Comments (3)

saurfang avatar saurfang commented on August 23, 2024

I could be wrong but from the limited stacktrace you were able to provide I am not sure if it is with this library. Have you been able to run any SparkSQL example in SparkR already? (i.e. a SparkR command that actually triggers SparkSQL execution)

from spark-sas7bdat.

witwall avatar witwall commented on August 23, 2024

it works now, but I got another issue,

Sys.setenv(SPARK_HOME="E:/jobs/spark/spark")
.libPaths(c(file.path(Sys.getenv("SPARK_HOME"), "R", "lib"), .libPaths()))
library(SparkR)
packages=c("saurfang:spark-sas7bdat:1.1.4-s_2.10","com.databricks:spark-csv_2.10:1.4.0")
sc <- sparkR.init(master="local[*]",sparkPackages=packages)
sqlContext <- sparkRSQL.init(sc)
df <- loadDF(sqlContext,"Y:/of_trans.sas7bdat", "com.github.saurfang.sas.spark")
registerTempTable(df,"trans")
cnt=sql(sqlContext,"select count(1) from trans")
collect(cnt)

if sas file is some bigger, for example 152M, it is pending when I run collect(cnt)(some times, the first time is ok, but the second time, it is pending)

no matter on a 8G, 16G or 128G memeory PC or server.
spark 1.6.2, and spark-sas7bdat is the last version.

I also tried spark-shell, the same result.

from spark-sas7bdat.

witwall avatar witwall commented on August 23, 2024

I notice maybe it is not the problem of your spark-sas7bdat, but spark, because I tried load a big table from postgresql, got the same issue.

from spark-sas7bdat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.