We recommend switching to the latest versions of Edge, Firefox, Chrome or Safari. Using Internet Explorer will result in a loss of website functionality.

Comments

9 comments

  • Avatar
    Adrian Williams

    An online search on the ElasticSearch capabilities provided the following options:

     

    ElasticSearch provides a REST API which could be leveraged using the HTTP node.

    https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html

     

    There is also a JDBC Driver for SQL access:

    https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-jdbc.html

    https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-sql.html

     

    ElasticSearch can also be accessed via the low-level API Python wrapper module:

    https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html

     

     

    0
    Comment actions Permalink
  • Avatar
    Stéphane O

    Thanks Adrian for your swift answer

    0
    Comment actions Permalink
  • Avatar
    Stéphane O

    Adrian, the elasticsearch module is not installed by default, should I ask our server administrator to install it? If yes in which directory ?

    0
    Comment actions Permalink
  • Avatar
    Adrian Williams

    If you want to use the elasticsearch Python module then yes, like any other 3rd party Python package, it needs to be installed. We recommend you do install the package in a sub-directory of your Analyze installation's 'site' directory. This is because this location is maintained during the upgrade of the Analyze application software. The directory you install the package into can be named anything you like for instance <site>/python/site-packages  - however you will need to ensure that this directory is added to the search paths being used by the node to find installed packages. You can include this directory by adding a a couple of statements to the start of your Python script.

    import sys, os
    sys.path.append(os.path.abspath("/path/to/directoryContainingInstalledPackages"))

    Note that when using the Transform node and Generate Data node (which are Jython-based), the recommended directory is <site>/lib/jython2. From Analyze release v.3.6.4 this directory is already included on the library search path so the Jython-based nodes will automatically find packages installed in this directory.

     

    0
    Comment actions Permalink
  • Avatar
    Stéphane O

    Thanks Andrian,

    is elasticsearch module compatible with Infogix's Python 2.7?

    0
    Comment actions Permalink
  • Avatar
    Adrian Williams

    Infogix do not test 3rd party packages for compatibility. However, the package distribution information indicates it is a Pure Python package and written for use with Python 2 and Python 3 distributions:

    0
    Comment actions Permalink
  • Avatar
    Stéphane O

    Thank you

    0
    Comment actions Permalink
  • Avatar
    Stéphane O

    Adrian, which site do you recommend to download the correct version of the elastic python module to be sure that everything will be ok with our server (RED HAT 9.0.31 (Linux))?

    0
    Comment actions Permalink
  • Avatar
    Adrian Williams

    The repository should be automatically resolved by the pip module when you use the command:

    python -m pip install elasticsearch

     

    However, the Analyze application is currently supported on RHEL 7.x and 8.x   - did you mean 7.9 in your question above?

    0
    Comment actions Permalink

Please sign in to leave a comment.