Hop
The hop command line tool is simplification of the many scripts that the project ships with like 'hop-run`, hop-search, hop-gui, and so on. The main goal is to have a single wrapper script to make maintenance easier for the developers, but also to allow plugins to contribute new commands.
Usage
== Usage
To see the usage of the hop tool, you can simply use the help command to see which commands are available. The command list depends on the plugins in your installation; the sample below shows the common options and a typical set of commands.
$ ./hop help
Usage: hop [-hV] [--dev-debug] [--dev-debug-wait] [-im]
[-e=<environmentOption>] [-j=<projectOption>]
[--environment-conf-files=<environmentConfigFiles>[,
<environmentConfigFiles>...]]... [--environments=<environments>[,
<environments>...]]... [-pl=<projectLocations>[,
<projectLocations>...]]... [-s=<systemProperties>[,
<systemProperties>...]]... [COMMAND]
-e, --environment=<environmentOption>
The name of the lifecycle environment to use
-h, --help Show this help message and exit.
-im, --in-memory Keep configuration in memory without persisting to
hop-config.json
-j, --project=<projectOption>
The name of the project to use
-pl, --project-locations=<projectLocations>[,<projectLocations>...]
Comma-separated list of project locations
(name=location or archive files)
-s, --system-properties=<systemProperties>[,<systemProperties>...]
A comma separated list of KEY=VALUE pairs
-V, --version Print version information and exit.
Commands:
help Display help information about the specified command.
conf Configure Hop
encrypt Encrypt secrets
gui The Hop GUI
import Import metadata
run Run a pipeline or workflow
search Search in Hop metadata
server Run a Hop server
setup Configure Hop environment variables Options
| Short | Extended | Description |
|---|---|---|
|
| The name of the lifecycle environment to enable before the subcommand runs. |
|
| Displays this help message and quits. |
|
| Keep Hop configuration in memory. Changes are not written to |
|
| The name of the project to enable before the subcommand runs. |
|
| Comma-separated project locations to register for this process only ( |
| Comma-separated environment definitions ( | |
| Extra environment configuration files to apply to the enabled project or environment. | |
|
| A comma separated list of KEY=VALUE pairs, set before Hop starts. |
|
| Show the current Hop version. |
Root options such as --project-locations are processed before the subcommand (run, gui, search, …), so the project is already registered when the command runs:
hop --project-locations my-project=/data/my-project run -f pipeline.hpl -r local
hop --project-locations my-project=/data/my-project gui -j my-project -f pipeline.hpl Setup
hop setup writes launcher environment variables (HOP_CONFIG_FOLDER, HOP_AUDIT_FOLDER, and related). It is not the same as hop conf, which edits hop-config.json.