Giter Club home page Giter Club logo

docker-spark-geolake's People

Contributors

badbye avatar hengqujushi avatar ttomasz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

docker-spark-geolake's Issues

Invalid spark download link in Dockerfile

This is indeed very interesting project! thank you for making it public!

I just realised that the spark download link seems to be wrongly populated in Dockerfile. Please update it when you find time or highlight if i can make a PR. Thanks!

Incorrect.

# Download spark
RUN curl https://dlcdn.apache.org/spark/spark-3.3.1/spark-3.3.1-bin-hadoop3.tgz -o spark-3.3.1-bin-hadoop3.tgz \
 && tar xvzf spark-3.3.1-bin-hadoop3.tgz --directory /opt/spark --strip-components 1 \
 && rm -rf spark-3.3.1-bin-hadoop3.tgz

Correct.

# Download spark
RUN curl https://archive.apache.org/dist/spark/spark-3.3.1/spark-3.3.1-bin-hadoop3.tgz -o spark-3.3.1-bin-hadoop3.tgz \
 && tar xvzf spark-3.3.1-bin-hadoop3.tgz --directory /opt/spark --strip-components 1 \
 && rm -rf spark-3.3.1-bin-hadoop3.tgz

Also, Jupyter notebook doesnt show any token.

default memory settings too low for benchmark

I tried to run notebook with benchmark but was getting messages about java heap out of memory.

I found that one could set spark parameters from the notebook using:

%%init_spark
launcher.num_executors = 1
launcher.executor_cores = 8
launcher.driver_memory = '16g'
launcher.executor_memory = '16g'
launcher.conf.set("spark.driver.maxResultSize","4g")

I would suggest adding that and some comment to the notebook.

portotaxi.geojson Unexpected end-of-input: expected close marker for Object

In benchmark notebook on the cell with:

val fullFile = "/home/iceberg/data/portotaxi2.geojson"
val df = readGeojson(fullFile).repartition(50)
df.cache
df.createOrReplaceTempView("portotaxi")

I am getting the following error:

java.lang.RuntimeException: com.fasterxml.jackson.core.io.JsonEOFException: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (String)"{"; line: 1, column: 1])
 at [Source: (String)"{"; line: 1, column: 2]
  at org.wololo.geojson.GeoJSONFactory.create(GeoJSONFactory.java:31)
  at readGeojson(<console>:34)
  ... 40 elided
Caused by: com.fasterxml.jackson.core.io.JsonEOFException: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (String)"{"; line: 1, column: 1])
 at [Source: (String)"{"; line: 1, column: 2]
  at com.fasterxml.jackson.core.base.ParserMinimalBase._reportInvalidEOF(ParserMinimalBase.java:682)
  at com.fasterxml.jackson.core.base.ParserBase._handleEOF(ParserBase.java:494)
  at com.fasterxml.jackson.core.base.ParserBase._eofAsNextChar(ParserBase.java:511)
  at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._skipWSOrEnd(ReaderBasedJsonParser.java:2443)
  at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextFieldName(ReaderBasedJsonParser.java:935)
  at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer._deserializeContainerNoRecursion(JsonNodeDeserializer.java:437)
  at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:84)
  at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:20)
  at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
  at com.fasterxml.jackson.databind.ObjectMapper._readTreeAndClose(ObjectMapper.java:4716)
  at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:3076)
  at org.wololo.geojson.GeoJSONFactory.create(GeoJSONFactory.java:21)
  ... 41 more

I'll try downloading the file outside of docker and try to open it in qgis but tail on the file look more or less normal. Not sure if there is another way to validate if the file was correctly downloaded?

I got the file by running:
wget https://star.cs.ucr.edu/datasets/portotaxi/download.geojson.gz -O - | gzip -d > /home/iceberg/data/portotaxi.geojson
in jupyter terminal.
Btw maybe it would be possible to use some jupyter cell magic commands to run it from notebook?

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.