Model Context Protocol (MCP) finally gives AI models a way to access the business data needed to make them really useful at work. CData MCP Servers have the depth and performance to make sure AI has access to all of the answers.
Try them now for free →Integrate Live Elasticsearch Data into Amazon SageMaker Canvas with RDS
Use CData Connect Cloud to connect to Elasticsearch from Amazon RDS connector in Amazon SageMaker Canvas and build custom models using live Elasticsearch data.
Amazon SageMaker Canvas is a no-code machine learning platform that lets you generate predictions, prepare data, and build models without writing code. When paired with CData Connect Cloud, you get instant, cloud-to-cloud access to Elasticsearch data for building custom machine-learning models, predicting customer churn, generating texts, building chatbots, and more. This article shows how to connect to Connect Cloud from Amazon SageMaker Canvas using the RDS connector and integrate live Elasticsearch data into your ML model deployments.
CData Connect Cloud provides a pure SQL, cloud-to-cloud interface for Elasticsearch, allowing you to easily integrate with live Elasticsearch data in Amazon SageMaker Canvas — without replicating the data. CData Connect Cloud looks exactly like a SQL Server database to Amazon SageMaker Canvas and uses optimized data processing out of the box to push all supported SQL operations (filters, JOINs, etc) directly to Elasticsearch, leveraging server-side processing to quickly return Elasticsearch data.
About Elasticsearch Data Integration
Accessing and integrating live data from Elasticsearch has never been easier with CData. Customers rely on CData connectivity to:
- Access both the SQL endpoints and REST endpoints, optimizing connectivity and offering more options when it comes to reading and writing Elasticsearch data.
- Connect to virtually every Elasticsearch instance starting with v2.2 and Open Source Elasticsearch subscriptions.
- Always receive a relevance score for the query results without explicitly requiring the SCORE() function, simplifying access from 3rd party tools and easily seeing how the query results rank in text relevance.
- Search through multiple indices, relying on Elasticsearch to manage and process the query and results instead of the client machine.
Users frequently integrate Elasticsearch data with analytics tools such as Crystal Reports, Power BI, and Excel, and leverage our tools to enable a single, federated access layer to all of their data sources, including Elasticsearch.
For more information on CData's Elasticsearch solutions, check out our Knowledge Base article: CData Elasticsearch Driver Features & Differentiators.
Getting Started
Configure Elasticsearch Connectivity for Amazon SageMaker Canvas
Connectivity to Elasticsearch from Amazon SageMaker Canvas is made possible through CData Connect Cloud. To work with Elasticsearch data from Amazon SageMaker Canvas, we start by creating and configuring a Elasticsearch connection.
- Log into Connect Cloud, click Connections, and click Add Connection.
- Select "Elasticsearch" from the Add Connection panel.
-
Enter the necessary authentication properties to connect to Elasticsearch.
Set the Server and Port connection properties to connect. To authenticate, set the User and Password properties, PKI (public key infrastructure) properties, or both. To use PKI, set the SSLClientCert, SSLClientCertType, SSLClientCertSubject, and SSLClientCertPassword properties.
The data provider uses X-Pack Security for TLS/SSL and authentication. To connect over TLS/SSL, prefix the Server value with 'https://'. Note: TLS/SSL and client authentication must be enabled on X-Pack to use PKI.
Once the data provider is connected, X-Pack will then perform user authentication and grant role permissions based on the realms you have configured.
- Click Create & Test.
- Navigate to the Permissions tab in the Add Elasticsearch Connection page and update the User-based permissions.
Add a Personal Access Token
If you are connecting from a service, application, platform, or framework that does not support OAuth authentication, you can create a Personal Access Token (PAT) to use for authentication. Best practices would dictate that you create a separate PAT for each service, to maintain granularity of access.
- Click on your username at the top right of the Connect Cloud app and click User Profile.
- On the User Profile page, scroll down to the Personal Access Tokens section and click Create PAT.
- Give your PAT a name and click Create.
- The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.
With the connection configured, you are ready to connect to Elasticsearch data from Amazon SageMaker Canvas.
Connecting to CData Connect Cloud from Amazon SageMaker Canvas
With the connection in CData Connect Cloud configured, you are ready to integrate live Elasticsearch data into Amazon SageMaker Canvas using its RDS connector.
- Select a domain and user profile in Amazon SageMaker Canvas and click on "Open Canvas".
- Once the Canvas application opens, navigate to the left panel, and select "My models".
- Click on "Create new model" in the My models screen.
- Specify a Model name in Create new model window and select a Problem type. Click on "Create".
- Once the model version gets created, click on "Create dataset" in the Select dataset tab.
- In the Create a tabular dataset window, add a "Dataset name" and click on "Create".
- Click on the "Data Source" drop-down and search for or navigate to the RDS connector and click on " Add Connection".
- In the Add a new RDS connection window, set the following properties:
- Connection Name: a relevant connection name
- Set Engine type to sqlserver-web
- Set Port to 14333
- Set Address as tds.cdata.com
- Set Username to a Connect Cloud user (e.g. user@mydomain.com)
- Set Password to the PAT for the above user
- Set Database name the Elasticsearch connection (e.g., Elasticsearch1)
- Click on "Create connection".
Integrating Elasticsearch Data into Amazon SageMaker Canvas
With the connection to Connect Cloud configured in the RDS, you are ready to integrate live Elasticsearch data into your Amazon SageMaker Canvas dataset.
- In the tabular dataset created in RDS with Elasticsearch data, search for the Elasticsearch connection configured on Connect Cloud in the search bar or from the list of connections.
- Select the table of your choice from Elasticsearch, drag and drop it into the canvas on the right.
- You can create workflows by joining any number of tables from the Elasticsearch connection (as shown below). Click on "Create dataset".
- Once the dataset is created, click on "Select dataset" to build your model.
- Perform analysis, generate prediction, and deploy the model.
At this point, you have access to live Elasticsearch data in Amazon SageMaker that you can utilize to build custom ML models to generate predictive business insights and grow your organization.
SQL Access to Elasticsearch Data from Cloud Applications
Now you have a direct connection to live Elasticsearch data from Amazon SageMaker Canvas. You can create more connections, datasets, and predictive models to drive business — all without replicating Elasticsearch data.
To get real-time data access to 100+ SaaS, Big Data, and NoSQL sources directly from your cloud applications, see the CData Connect Cloud.