spatialx-project / docker-spark-geolake Goto Github PK
View Code? Open in Web Editor NEWDocker environment to quickly get up a geolake service
Docker environment to quickly get up a geolake service
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.
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.