GitHub user marvinhorst added a comment to the discussion: How to handle 
Workflows/Pipelines via REST API on Windows?

<img width="820" height="336" alt="hop-server" 
src="https://github.com/user-attachments/assets/8f536d4c-8b69-464c-83f1-c1a7016142d0";
 />

For my pipelines and workflows that i wanted to execute via hop-server I 
created a new project (remote) and lifecyleEnvironment (remote-PROD) using the 
hop-gui which saves these setting in hop-config.json. Then in that project I 
went to Asyncronous Web Service in metadata and created a new service as shown 
in my image. My hop-server-config.xml is basic  ...

`
<hop-server-config>
  <hop-server>
    <name>biapp-hop</name>
    <hostname>0.0.0.0</hostname>
    <port>8080</port>
    <username>biuser</username>
    <password>apassword</password>
  </hop-server>
</hop-server-config>
`

I'm running hop-server as a service on Debian linux. Here's the config for 
that. 

`
Description=Apache Hop Server
After=network.target

[Service]
User=root
Group=root

WorkingDirectory=/opt/apache/hop
PrivateTmp=false
ProtectSystem=off
ProtectHome=off

ExecStart=/opt/apache/hop/hop-server.sh -e remote-PROD -j remote 
/opt/hopdata/config/hop-server-config.xml

Restart=always
RestartSec=10

Environment="HOP_SERVER_PORT=8080" "HOP_PROJECTS_FOLDER=/opt/hopdata/projects" 
"HOP_AUDIT_FOLDER=/opt/hopdata/audit" "HOP_CONFIG_FOLDER=/opt/hopdata/config"

[Install]
WantedBy=multi-user.target
`
The HOP_CONFIG_FOLDER environment variable is crucial as that is used to find 
the hop-config.json file. HOP_SERVER_PORT is probably redundant. My paths may 
look different as I've moved my hop data from the installed paths for ease of 
updating hop. My hop-config.json points to /opt/hopdata ... 

`
, {
    "name" : "HOP_HOME_FOLDER",
    "value" : "/opt/hopdata",
    "description" : "Directory where all hop metadata is stored. Separate from 
the hop binaries"
  }
`

GitHub link: 
https://github.com/apache/hop/discussions/6264#discussioncomment-15445491

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to