https://github.com/bells17/zeppelin-exporter
The export tool for all zeppelin notebooks.
https://github.com/bells17/zeppelin-exporter
go zeppelin zeppelin-notebook
Last synced: 11 months ago
JSON representation
The export tool for all zeppelin notebooks.
- Host: GitHub
- URL: https://github.com/bells17/zeppelin-exporter
- Owner: bells17
- License: mit
- Created: 2017-10-19T05:32:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-23T08:54:40.000Z (over 8 years ago)
- Last Synced: 2024-06-20T10:05:19.824Z (about 2 years ago)
- Topics: go, zeppelin, zeppelin-notebook
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zeppelin-exporter

[](https://circleci.com/gh/bells17/zeppelin-exporter)

The export tool for all zeppelin notebooks.
## Installation
Get binary from [here](https://github.com/bells17/zeppelin-exporter/releases/latest) or build yourself.
```
go get github.com/bells17/zeppelin-exporter
cd $GOPATH/src/github.com/bells17/zeppelin-exporter
make && make install
```
## Usage
```
zeppelin-exporter --host 127.0.0.1 -p 8080 > notebooks.json
cat notebooks.json | jq .[0] > notebook1.json
content=`cat notebook1.json`
curl -v -H "Accept: application/json" -H "Content-type: application/json" -d $content http://127.0.0.1:8080/api/notebook/import
```
## Help
```
zeppelin-exporter --help
Usage:
zeppelin-exporter [OPTIONS]
Application Options:
--host= Zeppelin host (default: 127.0.0.1)
-p, --port= port (default: 8080)
--protocol= protocol (default: http)
Help Options:
-h, --help Show this help message
```
## Reference
- https://zeppelin.apache.org/docs/0.6.1/rest-api/rest-notebook.html#export-a-notebook
- https://zeppelin.apache.org/docs/0.6.1/rest-api/rest-notebook.html#import-a-notebook
## Development
### Requirements
- [ghr](https://github.com/tcnksm/ghr)
- And need set your Github Token(export GITHUB_TOKEN="...")
- [zopfli](https://github.com/google/zopfli)
### Use Docker
```
docker-compose run builder bash
```
### Initialize
```
make init
make bundle
```
### Run Testing
```
make test
```
### Build
```
make build
```
### Release
```
make tag
make release
```