
Set the Table Name property to the name of the table that you want to INSERT into. Set the Schema Name property to the name of the schema that your table is part of. Set the Catalog Name property to the name of the catalog that your table is part of. Jdbc:onenote:OAuthClientId=MyApplicationId OAuthClientSecret=MySecretKey CallbackURL= Database Driver Class Name Please note that the driver should be configured Set the Database Connection Pooling Service to the DBCPConnection Pool that Set the Statement Type property to INSERT. Configure the CSV Reader Controller Service to match the format of your CSV file. Set the Record Reader property to a CSV Reader Controller Service. Configure the PutDatabaseRecord processorĬonfigure the PutDatabaseRecord processor similar to the following in order to perform Batch INSERT Operations:. Leave the FetchFile processor's property configurations to their default values: I.e., if the CSV file's full path is C:\Users\Public\Documents\InsertNiFi.csv, the properties should be configured like in the following image: Set the File Filter property to a regular expression to pick up only the files whose names match the expression. In order to perform batch INSERT, UPDATE or DELETE, the NiFi Processors should be configured similar to the following:Ĭonfigure the ListFile processor: Set the Input Directory property to the local folder path from where to pull the CSV files. Apache NiFi versions earlier than 1.9.0 do not support the Maximum Batch Size property in the PutDatabaseRecord processor. The column names of the CSV file must match the column names of the data source table records to be inserted/updated/deleted.Ģ. This is what our finished product looks like: Disclaimersġ. LogAttribute - Emits attributes of the FlowFile at the specified log level. These records are translated to SQL statements and executed as a single transaction. PutDatabaseRecord - Uses a specified RecordReader to input records from a flow file coming from the FetchFile processor. FetchFile - Reads the content of the FlowFile received from the ListFile processor. ListFile - Retrieves a listing of files from the local filesystem and creates a FlowFile for each retrieved file. The sample flow presented below is based on the following NiFi Processors: Batch Operations (INSERT/UPDATE/DELETE) in Apache NiFi See the Help documentation for more information. To authenticate using OAuth, you will need to create an app to obtain the OAuthClientId, OAuthClientSecret, and CallbackURL connection properties. OneNote uses the OAuth authentication standard. Either double-click the JAR file or execute the jar file from the command-line.įill in the connection properties and copy the connection string to the clipboard. We need a JDBC URL to connect to OneNote data from Apachi NiFi.įor assistance in constructing the JDBC URL, use the connection string designer built into the OneNote JDBC Driver. With and analyze OneNote data using native data types. Its built-in dynamic metadata querying allows you to work SQL engine to process unsupported operations client-side (often SQL functionsĪnd JOIN operations). Like filters and aggregations, directly to OneNote and utilizes the embedded When you issueĬomplex SQL queries to OneNote, the driver pushes supported SQL operations, Unmatched performance for interacting with live OneNote data. With built-in optimized data processing, the CData JDBC Driver offers
Using the CData JDBC Driver for OneNote data in Apache NiFi (version 1.9.0 or later). How to read data from a CSV file and perform batch operations (INSERT/UPDATE/DELETE) JDBC Driver for OneNote, NiFi can work with live OneNote data. Transformation, and system mediation logic.
Apache NiFi supports powerful and scalable directed graphs of data routing,