https://github.com/phact/datastax-workshop
https://github.com/phact/datastax-workshop
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/phact/datastax-workshop
- Owner: phact
- Created: 2016-05-19T02:33:03.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-17T13:37:08.000Z (about 10 years ago)
- Last Synced: 2025-01-03T10:24:09.596Z (over 1 year ago)
- Language: Python
- Size: 12.8 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# datastax-workshop
The workshop is a dockerized notebook that includes the data load and setup + the exercises hosted on port 7001.
##Docker
install docker https://docs.docker.com/engine/installation/linux
add your user to the docker group
sudo gpasswd -a ${USER} docker
and refresh:
newgrp docker
Set up config.txt with your broadcast rpc address (client address for DSE)
cat /etc/dse/cassandra/cassandra.yaml | grep broadcast_rpc_address:|awk -F' ' '{print $2}' > config.txt
For OSX
```
docker-machine start default
eval $(docker-machine env default)
#a bit of cleanup
docker rm -f $(docker ps -aq)
docker rmi -f $(docker images -aq)
```
For linux
```
service docker start
```
```
docker build -t cql-notebook-image .
docker run --net=host -d -p 0.0.0.0:7001:7001 --name cql-notebook cql-notebook-image
```
One liner to remove answers from Notebooks:
```
cat Lab\ 1\ Workbook.ipynb | jq '{"cells":[ .cells[] | select(.cell_type=="raw" // .cell_type=="code" | not) ]} + del (."cells")' > Lab\ 1\ Workbook\ Student.ipynb
```
Or just run `./generate_student_workbooks.sh`