Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: running carte as a systemd service

  1. #1
    Join Date
    Apr 2015
    Posts
    1

    Default running carte as a systemd service

    Hi all!

    No real question here, but I've been playing with trying to get a carte server (as part of the pdi CE) running as a service on a RedHat system using systemd. After searching around to no avail and not knowing much about how to do systemd scripts, I figured I'd share what I did to get it running.

    First off, using RedHat 7.1, running carte as the pentaho user, with the carte installation at /data/pdi/data-integration. In my case, I wanted to specify running parameters in a config file, so I modified the pwd/carte-config-master-8080.xml file and modified it to my needs (to which there's plenty of information out there on how to set that file up). Here's what I ended up with:

    Code:
    [Unit]
    Description=Pentaho Data Integration
    
    [Service]
    Type=simple
    User=pentaho
    Group=pentaho
    Environment=PDICONFIG='./pwd/carte-config-master-8080.xml'
    WorkingDirectory=/data/pdi/data-integration/
    ExecStart=/data/pdi/data-integration/carte.sh $PDICONFIG
    
    [Install]
    WantedBy=multi-user.target
    From here, I saved it as /usr/lib/systemd/system/carte.service, chmodded it (as root):

    Code:
    chmod 644 /usr/lib/systemd/system/carte.service
    enabled the carte service (as root):

    Code:
    systemctl enable /usr/lib/systemd/system/carte.service
    reloaded the daemons for good measure (as root):

    Code:
    systemctl daemon-reload
    and now you can simply start up/shut down a carte server using the service commands (again, as root):

    Code:
    service carte start
    service carte stop
    After this is running, I'm having no issues using the carte server to do remote executions! I don't know if this is the right or wrong way to set this up, but it worked for me, so I figured I should share.

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Thanks for sharing
    So long, and thanks for all the fish.

  3. #3
    Join Date
    Mar 2014
    Posts
    181

    Default

    Thanks for sharing these steps. There are well documented.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.