Coder Social home page Coder Social logo

hpcc-charms's Introduction

HPCC-Charms

Top level HPCC-Charms repository for build and deployment. All the related projects are just prototypes. They are open for re-design and re-implementation. There two groups of charms: 1) Single HPCC Platform which has all supported plugins and module. The initial implementation includes layer-hpccsystems-platform and layer-hpccsystems-plugins 2) HPCC Cluster The initial implementation includes layer-hpccsystems-cluster-node and layer-hpccsystems-cluster-manager. Since both groups involved multiple charms we hope a group of charm bundles will be provided to easy deployment of various HPCC Charm setups. Each deployable charm also should have test using amulet APIs.

Build

Pre-requisites

  • Ubuntu 18.04 amd64 Xenial
  • Python 3.0
  • juju-2.5" sudo snap install juju
  • lxd : sudo snap install lxd
  • charm-tools: sudo snap install charm

Build charms

Deploy

Local Linux container

pre-requisite: lxd

#lxd init --auto (probably already done) #lxd init --auto --storage-backend zfs (probably already done) lxc network set lxdbr0 ipv6.address none

#Check network: lxc network get lxdbr0 ipv4.address #Sample output: 10.172.37.1/24

bootstrap

need this after system reboot

 lxc network get lxdbr0 ipv4.address
 juju bootstrap localhost lxd-test

deploy platform charm

juju models | grep default
[ $? -ne 0 ] && juju add-model default
juju deploy <build dir>/builds/hpcc-platform hpcc --series bionic
juju status

deploy a simple cluster

cd  <build dir>/trusty/hpcc-cluster-dali
mv config.yaml config.yaml.orig
cp config_node.yaml config.yaml

juju models | grep default
[ $? -ne 0 ] && juju add-model default
juju deploy ./hpcc-cluster-dali dali --series bionic
juju deploy ./hpcc-cluster-node node -n 2 --series bionic
juju status
#juju debug-log

When 3 units (1 dali 2 nodes) are started add relation

juju add-relation dali node

When 3 units in "joined" states run followint to stop/create envxml/fetch/start HPCC:

juju config dali update-envxml=$(date +"%T.%6N")

This uses date but any different value in "update-envxml" will work If everything run OK all unit should be in "HPCC.started"

The esp will be on unit: node/0

You can get ip to test EclWatch: http://:8010

Debug

juju debug-log

For non install error you can login the unit to change code

juju ssh <unit>
#go to dir to fix code
cd /var/lib/juju/agents/unit-<unit>/charm/

In another local windows:

juju resovled <unit>

This will allow the hook re-run

destroy charms

juju destroy-model default

##Troubleshooting

Can't kill controller

juju kill-controller ERROR getting controller environ: unable to get bootstrap information from client store or API Solution: juju unregister -y

hpcc-charms's People

Contributors

xwang2713 avatar hpccbuilds2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.