-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Teradata/quickstarts
- Loading branch information
Showing
1 changed file
with
9 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
:experimental: | ||
:page-author: Adam Tworkiewicz | ||
:page-email: [email protected] | ||
:page-revdate: January 6th, 2022 | ||
:page-revdate: August 30, 2023 | ||
:description: Query Teradata Vantage from a Mule service. | ||
:keywords: data warehouses, compute storage separation, teradata, vantage, cloud data platform, object storage, business intelligence, enterprise analytics, Mule, JDBC, microservices | ||
|
||
|
@@ -17,8 +17,6 @@ It demonstrates how to query a Teradata database and expose results over REST AP | |
* Access to a Teradata Vantage instance. | ||
+ | ||
include::ROOT:partial$vantage_clearscape_analytics.adoc[] | ||
* Java JDK. See installation instructions for OpenJDK: https://openjdk.java.net/install/. | ||
* Apache Maven. See installation instructions: https://maven.apache.org/install.html. | ||
|
||
== Example service | ||
|
||
|
@@ -52,10 +50,16 @@ Since the HTTP connector is configured as request-response, the result is return | |
+ | ||
[source,bash] | ||
---- | ||
git clone git@github.com:Teradata/mule-jdbc-example.git | ||
git clone https://github.com/Teradata/mule-jdbc-example | ||
---- | ||
|
||
. Edit `src/main/mule/querying-a-teradata-database.xml`, find the Teradata connection string `jdbc:teradata://localhost/user=dbc,password=dbc` and replace Teradata connection parameters to match your environment. | ||
. Edit `src/main/mule/querying-a-teradata-database.xml`, find the Teradata connection string `jdbc:teradata://<HOST>/user=<username>,password=<password>` and replace Teradata connection parameters to match your environment. | ||
|
||
[NOTE] | ||
==== | ||
Should your Vantage instance be accessible via ClearScape Analytics Experience, you must replace <HOST> with the host URL of your ClearScape Analytics Experience environment. Additionally, the 'user' and 'password' should be updated to reflect your ClearScape Analytics Environment's username and password. | ||
==== | ||
|
||
. Create a sample database in your Vantage instance. | ||
Populate it with sample data. | ||
+ | ||
|
@@ -94,27 +98,6 @@ Populate it with sample data. | |
); | ||
---- | ||
|
||
. Download the Teradata JDBC driver and unzip it: | ||
+ | ||
[source,bash] | ||
---- | ||
wget https://downloads.teradata.com/download/cdn/connectivity/jdbc/17.10.00.24/TeraJDBC__indep_indep.17.10.00.24.zip | ||
unzip TeraJDBC__indep_indep.17.10.00.24.zip | ||
---- | ||
|
||
. Import the JDBC driver to your local Maven repository: | ||
+ | ||
[source,bash, id="mule_first_config", role="content-editable emits-gtm-events"]] | ||
---- | ||
mvn install:install-file \ | ||
-Dfile=terajdbc4.jar \ | ||
-DgroupId=com.teradata \ | ||
-DartifactId=terajdbc4 \ | ||
-Dversion=17.10.00.24 \ | ||
-Dpackaging=jar \ | ||
-DgeneratePom=true | ||
---- | ||
|
||
. Open the project in Anypoint Studio. | ||
** Once in Anypoint Studio, click on `Import projects..`: | ||
+ | ||
|