Jump to content
Changes to the Jaspersoft community edition download ×
  • This documentation is an older version of Jaspersoft for AWS Getting Started Guide. View the latest documentation.

    Follow the steps below to connect to Amazon RDS or Redshift. For Amazon Elastic MapReduce (EMR) see the Amazon EMR connection page. For non-Amazon data sources see the JDBC/JNDI connections section below.

    Prerequisites

    JasperReports Server must be running and you must be logged in as superuser.

    Get help with these requirements here: Launching Jaspersoft BI for AWS.

    Connect to Amazon RDS or Redshift

    JasperReports Server can automatically discover and connect to Amazon Relational Database Server (RDS) and Amazon Redshift using the auto-connect feature.

    To connect to Amazon RDS or Redshift:

    1. In JasperReports Server, go to Create > Data Source
    03000004.png.29faf4d05d10a99733aa0d21b4704d5e.png

    Create > Data Source menu

    2. Select AWS Data Source from the Type dropdown menu.
    3. Enter your EC2 instance credentials. If EC2 instance credentials are not available, then see the Additional Connection Possibilities section below.
    4. Under AWS Settings, select EC2 instance credentials.
    03000005.png.3a22a586dbdde6d38da8b3416e1438be.png

    Add Data Source dialog

    5. Enter your database connection info:

    JasperReports Server is able to detect your RDS and Redshift data sources. This is possible because the IAM Role associated with the EC2 instance is allowed to execute the actions "rds:Describe*" and "redshift:Describe*". It pre-populates the Database Name, Driver, and URL.

    On the New Data Source page, You must enter the database username and password. For security reasons, Amazon does not store these credentials, and Jaspersoft cannot retrieve them.

    The default database is automatically populated, but you may manually enter another if your RDS or Redshift instance has multiple databases.

    03000006.png.82bda0d2575453b1d8668d8c5175396d.png

    New Data Source dialog

    6. Test your connection:

    You should always test your connection. This button does much more than just testing:

         It creates a DB Security Group.
         It adds the internal IP of the EC2 instance to the security group to authorize ingress to RDS.

    This is possible because the IAM Role provides the instance with credentials like "rds:CreateDBSecurityGroup" and "redshift:AuthorizeClusterSecurityGroupIngress".

         If you want to control details of the security group name or specify the IP address manually because you have a complex VPC Topology, then navigate to the menu Manage > Server Settings > AWS Settings.
    03000007.png.1b1284bee6b8ef6194cda111da2015e0.png

    Test Connection dialog

    7. Create a Domain:

    Jaspersoft's metadata layer is called "Data Domains". Choose Create > Domain from the main menu and follow the wizard to build a domain.

    03000008.png.3530861ae7686551cca9b5fa20cfe925.png

    Create > Domain menu

    8. Analyze your data:

    Choose Create > Ad Hoc View. Find your newly created domain and use the ad hoc environment to begin analyzing your data.

    03000009.png.7acf5e2d79be38e12980f63b94a77582.png

    Create > Ad Hoc View menu

    9. Next steps:

    Refer to the Online Learning Portal for lots of details on creating domains, performing ad hoc analysis, and creating reports.

    Additional Connection Possibilities

    AWS Credentials

    Under normal circumstances it's best to launch Jaspersoft BI on an EC2 instance with an associated IAM Role. This role provides EC2 credentials for your JRS instance.

    If this option is not available for some reason, you can use AWS credentials instead. If you already have AWS Credentials, you can enter the Access Key and Secret Key.

    If you don't have AWS Credentials, you can run the CloudFormation Template "jrs-create-user" to generate credentials.

    http://www.jaspersoft.com/jrs-create-user?region=us-east-1

    http://www.jaspersoft.com/jrs-create-user?region=us-west-2

    http://www.jaspersoft.com/jrs-create-user?region=us-west-1

    http://www.jaspersoft.com/jrs-create-user?region=eu-west-1

    http://www.jaspersoft.com/jrs-create-user?region=ap-northeast-1

    http://www.jaspersoft.com/jrs-create-user?region=sa-east-1

    0300000A.png.8983e815437c270129263328a2698449.png

    Entering AWS credentials

    JDBC / JNDI Connections

    NOTE: When using JDBC for data source connections, you're responsible for managing the security groups to allow access from the Jaspersoft server to the data source.

    0300000B.png.8e91ba94ee7a2bbf9ebcf096ff399749.png

    Using JDBC / JNDI connections

    Amazon RDS or Redshift

    When connecting to Amazon RDS or Redshift, it is best to use the AWS Data Source type to make configuration easier. If you prefer, you can use JDBC to connect to Amazon RDS or Redshift. To connect using JDBC, choose the JDBC Data Source type. Enter all connection information and test. Alternatively, you can choose JNDI Data Source and refer to a data source defined in Apache Tomcat.

    Benefits of defining your own JDBC connections:

    You have complete control

    Benefits of using AWS Data Sources:

    Jaspersoft provides the driver and URL
    Data source automatically recovers if the IP address changes
    Data source automatically recovers if DB Security Groups are modified

    Connect to Amazon EMR

    The JasperReports Server auto-connect feature is not supported for Amazon EMR. Connections to EMR need to be configured manually. Please see the Amazon EMR connection page for details: http://community.jaspersoft.com/jaspersoft-aws/connect-emr

    Follow the steps above to connect to Amazon RDS or Redshift. For Amazon EMR see the Amazon EMR connection page. For non-Amazon data sources see the JDBC/JNDI connections section above.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...