cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
Files included:
  • ectools.zip
  • ectools_sisense_ver<6.4.zip - (only for versions 6.4 and below)
  • python-2.7.11.amd64.msi
  • config_example.txt
  • EC_export.dll
This post explains how to install and configure the post plugin for exporting tables into CSVs . This plugin enables the user to define which tables will be exported into CSVs during the build finalization process. With this plugin you will be able to:
  1. Reduce build time. For example, a user can store historical data in a CSV file and just union it with the new data on every new build (handy when pulling data from web services).
  2. Define and maintain a unified repository cube. In cases when several cubes need to use the same data table, the user can define one cube which create the data table, all other cubes will use the CSV extracted from it.
  3. Push the data into other reporting systems. Some customers also use the Elasticube manager as an ETL tool and transfer the data forward.
Important! The Build process will not end until the post plugin has finished. Exporting millions of rows to CSV files may take a considerable amount of time and thus will result with a longer ElastiCube build process.

Steps

Step 1: Download And Install Python X64 On Your Machine. 

Note! In order to run the plugin, an installation of Python x64 is required.
  1. Install The attached Python version.
  2. In the Windows Search Box, located next to the Start button, type in Edit the system environment variable and click on it. 
  3. Under Advanced, click on the Environment Variables button.
  4. Under the System Variables pane, click on Path variable and then click Edit.
  5. In the Edit environment variable window, click on New and add C:\Python27 at the bottom of the list. 

STEP 2: INSTALL THE EXPORT TO CSV POST PLUGIN

  1. Create a new directory in C:\Program Files\Sisense\Prism\Server and name it Plugins.
  2. Download the EC_export_dll dll file and place it in C:\Program Files\Sisense\Prism\Server\Plugins and C:\Program Files\Sisense\Prism\Plugins
  3. Right Click the DLL file, and choose Properties.
  4. In the  General pane, if a button with a Unblock caption exists, click on it (now Windows allows executing the DLL)
  5. Extract the contents of the ectools.zip into C:\Program Files\Sisense\Prism
  6. Open Services and restart the ElastiCubeService Service.

STEP 3: EXECUTING THE PLUGIN IN THE ELASTICUBE MANAGER

  1. Once in ElastiCube Manager, open ElastiCube ==> Pre & Post Execution Plugins.
  2. Add to the post plugin section a new plugin called EC_export.
  3. Click on Add to configure how the plugin should behave:
    <Attributes path="c:\data"
    csv="true"
    tables="brand,categorypath"
    pythonPath="C:\Python27\python.exe"
    timestamp="true">
    </Attributes>
 
 
  • These are the attributes we can add:
  1. path - the directory where the TDE/CSV files will be created at. (e.g - path="C:\TDE")
  2. row_limit (optional) - limit the number of rows imported from each table in the Elasticube. (e.g - row_limit="1000" , only 1000 rows will be imported from each table).
  3. csv (optional) - determines if TDE files will be created, or CSV files instead. TDE files are automatically created if this attribute is not found. (e.g - csv="true", CSV files will be created).
  4. tables (optional) - determines which tables will be imported from the ElastiCube. Tables are separated by comma. If this attribute isn't found, all the tables will be imported. (e.g - tables="brand,categorypath" , "brand" and "categorypath" tables will be the only ones imported.)
  5. pythonPath (optional) - direct path to Python.exe (if PATH variable is not working on your environment)
  6. timestamp (optional) -  adds timestamp to CSV filename

STEP 4: RUN BUILD.

In the build's finalizing step the plugin execution will appear in the ElastiCube manager log window. In the ElastiCube Manager console:
Version history
Last update:
‎02-09-2024 01:27 PM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: