Jump to: navigation, search

Appendix: Feature Server Maintenance Python Scripts for Embedded Cassandra

This section explains how to deploy and run the Python script.

How to deploy the script?

To deploy the script, follow these steps:

  1. On the master Feature Server instance, copy the <jython-version>.jar file from <FS installation path>\work\jetty-x.x.x.x-pppp-fs.war-_fs-any-\webapp\WEB-INF\lib to <FS installation path>\python\.
    The value of <jython-version>.jar varies depending on the Feature Server version:
    • 8.1.202.09 and earlier - jython-2.7b1.jar
    • 8.1.202.10 and later - jython-standalone-2.7.1b2.jar
    • 8.1.202.17 and later - jython-standalone-2.7.1b3.jar
    • 8.1.202.45 and later - jython-standalone-2.7.2.jar
  2. Open console and navigate to <FS installation path>\python\util, which contains the scripts.
  3. Copy both the above-mentioned python scripts to the path <FS installation path>\python\.
  4. Enter the command to set JYTHONPATH:
    Windows
    set JYTHONPATH=<FS installation path>\python
    Linux
    export JYTHONPATH=<FS installation path>/python

How to run the script?

Use the following command line format to run the script:

java -jar <jython-version>.jar <scriptname>.py <script input parameters>

The value of <jython-version>.jar varies depending on the Feature Server version.

Feature Server version Jython file
8.1.202.09 and earlier jython-2.7b1.jar
8.1.202.10 and later jython-standalone-2.7.1b2.jar
8.1.202.17 and later jython-standalone-2.7.1b3.jar
8.1.202.45 and later jython-standalone-2.7.2.jar
Important
Remove the Jython JAR file from the <FS installation path>\python\ directory after the execution of the script.
This page was last edited on August 29, 2024, at 05:01.
Comments or questions about this documentation? Contact us for support!