larryxiao / HPCC-Platform

IMPORTANT - Issue tracking has been migrated to JIRA - use your github ID and password reset mechanism to log in
track.hpccsystems.com
Other
0 stars 0 forks source link

Sub-project 1: build a command line tool to install/start/stop a single node HPCC system #1

Open larryxiao opened 9 years ago

larryxiao commented 9 years ago

Sub-project 1: build a command line tool to install/start/stop a single node HPCC system Assume: both HPCC build and HPCC configuration file has been created on the node.

in-house> install-cluster.sh [-h|--help] [-k|--newkey] [-n|--concurrent <number>] <Platform Package>"
new> install-manager.sh <deploy/redeploy/undeploy> <package file path> 
in-house> hpcc-run.sh [hpcc-init | dafilesrv] [-c component] <cmd>
in-house> hpcc-push.sh (public key authentication)
new> scppass.sh (password authentication)

https://github.com/larryxiao/HPCC-Platform/tree/HPCC-9736/HPCC-9736

larryxiao commented 9 years ago

This command line tool runs in two modes, server mode and client mode. In the client mode, the program collects user’s input in command line and forwards to the input to the program in the server mode. In the server mode, the program does the work as the client asks.

In the rest of the sub-projects, the server code will be converted into a deployment agent which runs on every box of an HPCC system. The client code will be converted into an ESP web service with GUI.

An ESP server (which is a web server) with that ESP web service runs as a deployment control center which controls the deployments/start/stop/monitoring for multiple HPCC systems. Which is out of the HPCC system. It is a tool for installing HPCC systems.

Commands

deploy, undeploy, redeploy(undeploy and deploy), start, stop, restart(stop and start)

Example:

   deploy_manager -c -host xxx.xxx.xxx.xxx –p port_number -command "deploy:pkg_name_with_full_path:optional_configuration_file_with_full_path "
   deploy_manager -c -host xxx.xxx.xxx.xxx –p port_number -command "start:optional_hpcc_component_name"
larryxiao commented 9 years ago

Reference

larryxiao commented 9 years ago
larryxiao commented 9 years ago
larryxiao commented 9 years ago
wangkx commented 9 years ago

To handle file transfer, you may add a C++ function to call the scppass.sh you sent me today.