Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chezou/cloudera-parcel
customized cloudera-parcel
https://github.com/chezou/cloudera-parcel
Last synced: 3 months ago
JSON representation
customized cloudera-parcel
- Host: GitHub
- URL: https://github.com/chezou/cloudera-parcel
- Owner: chezou
- License: other
- Archived: true
- Created: 2017-08-06T12:49:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T12:09:17.000Z (almost 6 years ago)
- Last Synced: 2024-05-01T23:58:40.953Z (6 months ago)
- Language: Python
- Size: 8.83 MB
- Stars: 13
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-sparklyr - cloudera-parcel: customized cloudera-parcel
README
# R-PARCEL
This repository is aim to create R parcel.
## Prerequisity
You need to install Docker. I confirmed with Docker community edition on Ubuntu.
## Simple way to build Parcels
After installation of Docker, run:
```
$ ./build.sh
```You will find parcels in `./target` directory.
## Manual build
### Preparation
Prepare R environment using miniconda.
```
$ mkdir -p ./target/CONDAR-3.4.1/lib
$ cp -r ./source/meta ./target/CONDAR-3.4.1/
# (Option) Modify meta/parcel.json if needed
# $ sed -i s/__OS_VERSION__/el6/g ./target/CONDAR-3.4.1/meta/parcel.json
$ docker build -t chezou/condar:centos7 -f centos7.Dockerfile .
# Open another terminal and find your container.
$ docker run -it -t chezou/condar:centos7 /bin/bash
$ docker ps
$ docker cp -L :/opt/conda/envs/R_env ./target/CONDAR-3.4.1/lib/conda-R
# Terminate docker process
```### Modify meta data
In current version, you should modify version info in json.
### Tar your Parcel
```
$ cd target
$ tar cvzf CONDAR-3.4.1-el7.parcel CONDAR-3.4.1 --owner=root --group=root
```### validate, create metadata.json
I borrowed validator.jar and make_manifest.py from [cm_ext repo](https://github.com/cloudera/cm_ext).
#### How to validate json and parcel
See also: [How to use validator.jar](https://github.com/cloudera/cm_ext/wiki/Building-a-parcel#validation)```
$ java -jar lib/validator.jar
```At least, you should pass parcel test:
```
$ java -jar lib/validator.jar -f target/CONDAR-3.4.1-el7.parcel
```#### How to create manifest.json
Run following command, then you'll get `./target/manifest.json`.
```
$ python ./lib/make_manifest.py ./target
```### Put the Parcels into your http server
Upload every `./target/*.parcel` and `./target/manifest.json` to the same directory on http server.
You can put Parcels on S3. It doesn't need to have index.html for directory listing.
## FAQ
### How to control R version?
This parcel use Miniconda to install R. You can controll R version with setting [r-essentials](https://anaconda.org/r/r-essentials)' version.