09 Incorta Administration
09 Incorta Administration
09 Incorta Administration
Administration
Agenda
• Prerequisites
• Architecture & Installation
• Data Load
• Application Monitoring
• Memory Management
• Backup / Restore
• Incorta User Interface
Prerequisites
• Python version V2.6 or later : python -V
• Linux 64-bit. Mac OS 10.9 and 10.10. Windows 64-bit.
• At least 16 GB RAM
• Data on disk stored in compressed format
• RDBMS for metadata Derby, MySQL, Oracle
• Java SE Development Kit 8 or higher
Ports Requirement
Important Commands and Files
Edit Incorta_Installation/start.sh
export JAVA_OPTS="-Xms16384m -Xmx16384m -Dfile.encoding=UTF-8"
Start/Stop Incorta
./start.sh ./stop.sh
Modify Ports
Edit file Incorta_Installation/server/server.xml
Modify: <Connector port="8080" to change the port
Log File
Incorta_Installation/server/logs/catalina.out
Incorta_Installation/server/logs/incorta/<tenantname>/<incorta.YYYY-MM-DD.log >
Tenant Directory
Incorta_Installation/tenants/<tenant name>
TMT Directory
Incorta_Installation/tmt
Data Loads
Data Load
Full vs Incremental
• Full Load is done initially to extract full data from source system
• Incremental to extract subsequence updates/inserts
• Scheduling Incremental Load
• Incremental Refresh frequency vs Performance
Data Load
Data Load
Application Monitoring
Application Monitoring
Nagios
• Open Source Tool
• Comes with standard functionality to monitory Server and databases
• We can write shell scripts to monitor Tomcat Server and Memory Usage
• Can send alerts via email and SMS
Memory Management
Memory Management
Memory Usage using test.jsp
http://ebsdev.incorta.com:8081/incorta/test.jsp
Memory Management
Monitoring Server Status / Memory from UI
http://ebsdev.incorta.com:8081/manager/html
Memory Management
Best Practices
• Select required Columns instead of doing Select *
• Use appropriate data types. For example Integer vs Long
• Test.jsp for diagnosing memory usage
• Hybrid Mode if data exceeds 75% of allocated memory
• Load tables from staging when load fails due to out of memory issue
Spark
Job Logs
Backup / Restore
Backup / Restore
• Tenant Management
• CLI Commands
Tenant Management
Tenant Management
List Tenants
./tmt.sh -l
Disable Tenant
./tmt.sh -d demo01
Remove Tenant
./tmt.sh -r demo01
Tenant Management
Tenant Export: Exports tenant metadata into a zip file.
• Creates a properties file for the tenant that can be used for quick edits and import.
• Optionally export the data files as well
Command:
./tmt.sh [-e,--export] <tenant_name> <export_file > [-cf]
Parameters:
tenant_name: Name of the tenant to export
export_file : path to tenant export file [ defaults to tenant_name.zip ]
Optional Parameters:
[ -cf export data files ]
Examples:
Export tenant
./tmt.sh export tenant_name package_name.zip
Command
./tmt.sh [-i ,--import] <Tenant_Zip_File>
Parameters
Tenant_Zip_File: File to be imported
Optional Parameters
[ -on <new_name> override name ] import tenant with a new name
[ -op <new_path> override path] import tenant with new location for tenant data
Examples:
Import tenant:
./tmt.sh --import Tenant_Zip_File
Import tenant with new name:
./tmt.sh --import <Tenant_zip_file>. -on <New Tenant Name>
Import tenant with new name and new path:
./tmt.sh --import <Tenant_zip_file>. -on <New Tenant Name> -op <New Path>
Exercises
List Tenants
./tmt.sh -l
Export Tenant
./tmt.sh --export demo demo<n>.zip -cf
Import Tenant
./tmt.sh --import demo<n>.zip -on demo<n> -op <Incorta_Home>/tenants
Remove Tenant
./tmt.sh -r demo<n>
Command Line Interface
(Export/Import various objects)
CLI Commands
• Login / Logout
• Load Schemas
CLI Interface
Export Schemas
Export Dashboard
Import Dashboard
Load Schema
/home/incorta/Inc25/bin/incorta.py load_schema $session <Schema Name>
Exercises
CLI Exercises
Export Schemas
Import Schemas
Export Dashboard
Import Dashboard
/home/incorta/Inc25/bin/incorta.py import_dashboards $session "export_dashboards.zip" true
CLI Exercises
Export Session Variables
Managing Users
Administration from Incorta UI
Managing Groups
Administration from Incorta UI
Roles
Administration from Incorta UI
Sharing Objects
Administration from Incorta UI
Export Schema
Administration from Incorta UI
Import Schema
Administration from Incorta UI
Export Dashboard
Administration from Incorta UI
Import Dashboard
Configuration from Incorta UI
http://ebsdev.incorta.com:8081/incorta/admin/
Debugging
Debugging Issues Using Log Files
Server Log
The main server log file catalina.out is located under <Incorta_Installation_Directory>/server/logs/ directory.
Sample Errors
Tenant Logs
Sample Errors
ERROR: [08:37:01] [admin | GET/service/folder/getChildren] INC_002001103:You are not authorized to VIEW the
FOLDER of ID [527]. [com.incorta.server.catalog.CatalogManagerimpl.getFolderChildren]