forked from astrolabsoftware/1807.03078
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request astrolabsoftware#1 from astrolabsoftware/notebook
Add Notebook & explanations
- Loading branch information
Showing
2 changed files
with
777 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# 1807.03078 | ||
Supplementary material for arXiv:1807.03078 | ||
# Analysing billion-objects catalogue interactively: Apach Spark for physicists | ||
|
||
This repository contains supplementary material for arXiv:[1807.03078](https://arxiv.org/abs/1807.03078). | ||
|
||
## How to run the notebook | ||
|
||
You must have [Apache Spark](http://spark.apache.org/) and [Jupyter notebook](https://jupyter.org/) installed on your machine or your cluster. | ||
|
||
### On a local machine | ||
|
||
```bash | ||
PACK="com.github.astrolabsoftware:spark-fits_2.11:0.7.2" | ||
PYSPARK_DRIVER_PYTHON_OPTS="jupyter-notebook" pyspark \ | ||
--master local[*] \ | ||
--packages $PACK | ||
``` | ||
|
||
### On a cluster | ||
|
||
Standalone mode: | ||
|
||
```bash | ||
PACK="com.github.astrolabsoftware:spark-fits_2.11:0.7.2" | ||
PYSPARK_DRIVER_PYTHON_OPTS="jupyter-notebook --debug --no-browser --port=$PORT1" pyspark \ | ||
--master $SPARKURL \ | ||
--packages $PACK \ | ||
--driver-memory $MEMDRIVER --executor-memory $MEMEXEC --executor-cores $EXECCORES --total-executor-cores $TOTALCORES | ||
``` | ||
|
||
### DESC members: working at NERSC | ||
|
||
Source your DESC environement. Then go to the Jupyter Lab web [interface](https://jupyter-dev.nersc.gov/), and execute the notebook with the desc-pyspark kernel. |
Oops, something went wrong.