# aliyun-odps-ogg-plugin **Repository Path**: mirrors_aliyun/aliyun-odps-ogg-plugin ## Basic Information - **Project Name**: aliyun-odps-ogg-plugin - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-09-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### Moved to aliyun/aliyun-maxcompute-data-collectors: https://github.com/aliyun/aliyun-maxcompute-data-collectors # Datahub Handler for Oracle GoldenGate [![Build Status](https://travis-ci.org/aliyun/aliyun-odps-ogg-plugin.svg?branch=master)](https://travis-ci.org/aliyun/aliyun-odps-ogg-plugin) --- [中文版](https://datahub.console.aliyun.com/intro/guide/plugins/ogg.html) The datahub handler processes the operations of OGG trails, and upload the change logs into datahub. It has the following features: - Support 3 types of operation logs: *INSERT*, *UPDATE*, *DELETE* - User customize key fields, focus fields, and corresponding datahub field types - Configurable retry times and retry interval - Provide mechanism to handle dirty data ## Getting Started --- ### Requirements 1. JDK 1.6 or later (JDK 1.7 recommended) 2. Apache Maven 3.x 3. OGG Java Adapter ### Clone and Build the Package Clone the project from github: ``` $ git clone git@github.com:aliyun/aliyun-odps-ogg-plugin.git ``` Build the package with the script file: ``` $ cd aliyun-odps-ogg-plugin/ $ mvn clean package -DskipTests ``` Wait until building success. The datahub handler will be in **aliyun-odps-ogg-plugin/target/datahub-ogg-plugin.tar.gz** ### Use Datahub Handler 1. Configure datahub handler for OGG extract (conf/javaue.properties). Set the handler name and type: ``` gg.handlerlist=ggdatahub gg.handler.ggdatahub.type=com.aliyun.odps.ogg.handler.datahub.DatahubHandler ``` Set jvm boot options and goldengate classpath: ``` gg.handler.ggdatahub.configureFileName={YOUR_HOME}/datahub-ogg-plugin/conf/configure.xml goldengate.userexit.nochkpt=false goldengate.userexit.timestamp=utc gg.classpath={YOUR_HOME}/datahub-ogg-plugin/lib/* gg.log.level=debug jvm.bootoptions=-Xmx512m -Dlog4j.configuration=file:{YOUR_HOME}/datahub-ogg-plugin/conf/log4j.properties -Djava.class.path=ggjava/ggjava.jar ``` 2. Configure other handler parameters (conf/configure.xml). ``` 100 ogg_test yyyy-MM-dd HH:mm:ss YOUR_DATAHUB_ENDPOINT YOUR_DATAHUB_PROJECT YOUR_DATAHUB_ACCESS_ID YOUR_DATAHUB_ACCESS_KEY 1000 false datahub_ogg_plugin.dirty 500 -1 3000 t_person t_person 1 ``` 3. Start OGG extract, then the handler will start uploading data to datahub. The following are the escape sequences supported: Alias | Description ---|--- %t|Unix time in milliseconds %a|locale’s short weekday name (Mon, Tue, ...) %A|locale’s full weekday name (Monday, Tuesday, ...) %b|locale’s short month name (Jan, Feb, ...) %B|locale’s long month name (January, February, ...) %c|locale’s date and time (Thu Mar 3 23:05:25 2005) %d|day of month (01) %D|date; same as %m/%d/%y %H|hour (00..23) %I|hour (01..12) %j|day of year (001..366) %k|hour ( 0..23) %m|month (01..12) %M|minute (00..59) %p|locale’s equivalent of am or pm %s|seconds since 1970-01-01 00:00:00 UTC %S|second (00..59) %y|last two digits of year (00..99) %Y|year (2010) %z|+hhmm numeric timezone (for example, -0400) ## Authors && Contributors --- - [Ouyang Zhe](https://github.com/oyz) - [Tian Li](https://github.com/tianliplus) - [Yang Hongbo](https://github.com/hongbosoftware) ## License --- licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)