You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-20Lines changed: 26 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,12 @@
2
2
3
3
# The Harness Control Client
4
4
5
-
### **Version 0.5.2-SNAPSHOT, for Harness 0.5.2-SNAPSHOT**
6
-
7
5
The Harness Command Line Interface uses a connection to a running Harness Server to perform administrative tasks.
8
6
7
+
**Major Changes:**
8
+
9
+
-`hctl` is the preferred alternative to `harness-cli`. Both continue to function. This doc uses `harness-cli` but will switch to `hctl` in the next version.
10
+
9
11
# Requirements
10
12
11
13
- Python 3: Install so that it is executed with `python3` NOT `python`. Check with `which python3` or `python3 -version`
@@ -48,9 +50,6 @@ Set your PATH env variable to point to the `harness-cli/harness-cli` directory o
48
50
### Container Installation
49
51
50
52
After [installing Docker](https://docs.docker.com/engine/install/) either Engine or Desktop, proceed to install the `harness-cli` container.
51
-
52
-
1.
53
-
54
53
55
54
### Localhost
56
55
@@ -68,7 +67,7 @@ Various settings are passed into `harness-cli` via the host's env and will allow
68
67
69
68
Notice that `HARNESS_CLI_HOME` should not be set since it is calculated internally.
70
69
71
-
**Deprecation Warning:** This env based configuration will eventually be replaced with a different scheme using YAML files. Before all upgrades consult this README.
70
+
**Deprecation Warning:** This env based configuration may be changed at any time so before all upgrades consult this README.
72
71
73
72
## Help
74
73
@@ -83,28 +82,22 @@ To use this setup with integration tests make the changes to the cli above then
83
82
-`"master": "spark:<//some-spark-master>:7077"` This should point to the correct Spark master, or use `"local"` to use the Spark build-in to Harness
84
83
-`"es.nodes": "<some-es-node-1>,<some-es-node2>"` These should be the IPs or DNS names of the ES nodes in the installation, comma separated with no spaces, quotes or < > characters.
85
84
86
-
Run the test with new params for the remote installation of harness like this:
85
+
Run the test with new params for the remote installation of harness (harness-env must also point the cli to the correct location) like this:
- The parameters default to `localhost` and `9090`
90
89
91
-
Note: Tests do not currently work with https.
92
-
93
-
The test will pause to allow hand start of training and finishing training to start queries. At the end it will compare actual results to expected ones and exit with 0 if the tests pass or 1 if they do not.
94
-
95
-
**Deprecation Warning:** The tests are a work in progress so expect changes as they are refactored. Consult this README before any upgrade.
96
-
97
-
# Versions
90
+
At the end it will compare actual results to expected ones and exit with 0 if the tests pass or 1 if they do not.
98
91
99
-
The Harness-CLI follows the same version numbers as the Harness Server. If you build from source there will be a git tag in the master branch for every release after 0.4.0-RC1. For containers the image tags also follow Harness naming.
92
+
**Deprecation Warning:** The tests are a work in progress so expect changes.
100
93
101
94
# Containers
102
95
103
-
This project is published as `actionml/harness-cli:<tag>` where supported tags are:
96
+
This project is published as a docker image with tags of the form: `actionml/harness-cli:<tag>` where supported tags are:
104
97
105
-
-`latest`: most recent stable release, the most recent version of code tagged and pushed to the master branch of the git repo.
106
-
-`develop`: the most recent version of the work-in-progress. The most recent commit to the git `develop` branch. See the commit number tag to find the exact commit.
107
-
-`0.4.0-RC1`, `0.4.0`: release tags by version, which will match the tag in the master branch of the git repo.
98
+
-`latest`: most recent stable release, the most recent version of code tagged and pushed to the master branch of the git repo as an official release.
99
+
-`develop`: the most recent version of the work-in-progress. The most recent commit to the git `develop` branch. See the commit tag to find the last 6 characters of exact git commit number.
100
+
-`0.5.1-RC1`, `0.6.0`, ...: release tags by version, which will match the tag in the git repo.
108
101
109
102
## Running the `harness-cli` Container
110
103
@@ -143,7 +136,20 @@ root@f87d1403aca9:/#
143
136
144
137
The "status" gives an "OK" if connections can be made, the rest of the info is client config. The "status engines" hits the DB to find any installed engines so if you have new Harness installation you will get an empty JSON array of Engine Instance info.
145
138
146
-
## Changes from v0.4.0
139
+
# Versions
140
+
141
+
The Harness-CLI follows the same version numbers as the Harness Server. If you build from source there will be a git tag in the master branch for every release after 0.4.0-RC1. For containers the image tags also follow Harness naming.
142
+
143
+
## harness-cli version 0.6.0
144
+
145
+
This is in sync with Harness 0.6.0 but should be backward compatible with all 0.5.x harness versions.
146
+
147
+
New features:
148
+
149
+
-`harness-cli` now has an alias of `hctl` which is the preferred invocation.
150
+
- Some slight edits to command responses for clarity. These include the renaming of "_id" to "name" in the JSON response for `hctl status engines`.
151
+
152
+
## 0.5.0 changes from v0.4.0
147
153
148
154
-**This CLI replaces** the one integrated with Harness in Harness 0.4.0.
149
155
- This CLI **cannot be used to start or stop** Harness, the integrated `harness start` and `harness stop` in the Harness project should work.
0 commit comments