![]() |
VOOZH | about |
Apache Kafka is an open-source stream processing platform that is primarily used for building real-time data pipelines and event-driven applications. When paired with the CData JDBC Driver for NetSuite, Kafka can work with live NetSuite data. This article describes how to connect, access and stream NetSuite data into Apache Kafka Topics and to start Confluent Control Center to help users secure, manage, and monitor the NetSuite data received using Kafka infrastructure in the Confluent Platform.
With built-in optimized data processing, the CData JDBC Driver offers unmatched performance for interacting with live NetSuite data. When you issue complex SQL queries to NetSuite, the driver pushes supported SQL operations, like filters and aggregations, directly to NetSuite and utilizes the embedded SQL engine to process unsupported operations client-side (often SQL functions and JOIN operations). Its built-in dynamic metadata querying allows you to work with and analyze NetSuite data using native data types.
CData provides the easiest way to access and integrate live data from Oracle NetSuite. Customers use CData connectivity to:
Customers use CData solutions to access live NetSuite data from their preferred analytics tools, Power BI and Excel. They also use CData's solutions to integrate their NetSuite data into comprehensive databases and data warehouse using CData Sync directly or leveraging CData's compatibility with other applications like Azure Data Factory. CData also helps Oracle NetSuite customers easily write apps that can pull data from and push data to NetSuite, allowing organizations to integrate data from other sources with NetSuite.
For more information about our Oracle NetSuite solutions, read our blog: Drivers in Focus Part 2: Replicating and Consolidating ... NetSuite Accounting Data.
Before connecting the CData JDBC Driver for streaming NetSuite data in Apache Kafka Topics, install and configure the following in the client Linux-based system.
mkdir NetSuite
mv NetSuiteJDBCDriver.zip NetSuite/
unzip NetSuiteJDBCDriver.zip
ls cd lib/
cp -r /path/to/CData JDBC Driver for NetSuite/lib/* /usr/share/confluent-hub-components/confluentinc-kafka-connect-jdbc/lib/ cd /usr/share/confluent-hub-components/confluentinc-kafka-connect-jdbc/lib/
java -jar cdata.jdbc.netsuite.jar -l
confluent local services start
This starts all the Confluent Services like Zookeeper, Kafka, Schema Registry, Kafka REST, Kafka CONNECT, ksqlDB and Control Center. You are now ready to use the CData JDBC driver for NetSuite to stream messages using Kafka Connect Driver into Kafka Topics on ksqlDB.
๐ Start the Confluent local services curl --location 'server_address:8083/connectors'
--header 'Content-Type: application/json'
--data '{
"name": "jdbc_source_cdata_netsuite_01",
"config": {
"connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector",
"connection.url": "jdbc:netsuite:Account Id=XABC123456;Password=password;User=user;Role Id=3;Version=2013_1;",
"topic.prefix": "netsuite-01-",
"mode": "bulk"
}
}'
Let us understand the fields used in the HTTP POST body (shown above):
For assistance in constructing the JDBC URL, use the connection string designer built into the CData JDBC Driver for NetSuite. Either double-click the JAR file or execute the jar file from the command-line.
java -jar cdata.jdbc.netsuite.jar
Fill in the connection properties and copy the connection string to the clipboard.
The User and Password properties, under the Authentication section, must be set to valid NetSuite user credentials. In addition, the AccountId must be set to the ID of a company account that can be used by the specified User. The RoleId can be optionally specified to log in the user with limited permissions.
See the "Getting Started" chapter of the help documentation for more information on connecting to NetSuite.
๐ Using the built-in connection string designer to generate a JDBC URL (Salesforce is shown.)This request adds all the tables/contents from NetSuite as Kafka Topics.
Note: The IP Address (server) to POST the request (shown above) is the Linux Network IP Address.
ksql list topics;๐ List the Kafka Topics (BigCommerce is shown)
PRINT topic FROM BEGINNING;
To access the Confluent Control Center user interface, ensure to run the "confluent local services" as described in the above section and type http://<server address>:9021/clusters/ on your local browser.
๐ Connect with Confluent Control CenterDownload a free, 30-day trial of the CData JDBC Driver for NetSuite and start streaming NetSuite data into Apache Kafka. Reach out to our Support Team if you have any questions.
Download a free trial of the NetSuite Driver to get started:
Download NowLearn more:
๐ NetSuite IconRapidly create and deploy powerful Java applications that integrate with NetSuite account data including Leads, Contacts, Opportunities, Accounts, and more!