blob: b67f845f20a2a5d266266ac5d803fbebbf60a24f [file] [log] [blame]
<?xml version="1.0"?>
<configuration>
<!-- Static partitioning, specify the partition count, this decides how
many ranges would be initiated -->
<property>
<name>dt.application.operator.JdbcPoller.prop.partitionCount</name>
<value>2</value>
</property>
<property>
<name>dt.application.operator.JdbcPoller.prop.store.databaseDriver</name>
<!-- replace value with your jbdc driver -->
<value>org.hsqldb.jdbcDriver</value>
</property>
<property>
<name>dt.application.operator.JdbcPoller.prop.store.databaseUrl</name>
<!-- replace value with your jbdc url -->
<value>jdbc:hsqldb:mem:test</value>
</property>
<!--property>
<name>dt.application.operator.JdbcPoller.prop.store.userName</name>
<value>username</value>
</property>
<property>
<name>dt.application.operator.JdbcPoller.prop.store.password</name>
<value>password</value>
</property-->
<!-- Batch size for poller -->
<property>
<name>dt.application.operator.JdbcPoller.prop.batchSize</name>
<value>50</value>
</property>
<!-- look-up key for forming range queries, this would be the column name
on which the table is sorted -->
<property>
<name>dt.application.operator.JdbcPoller.prop.key</name>
<value>ACCOUNT_NO</value>
</property>
<property>
<name>dt.application.operator.JdbcPoller.prop.columnsExpression</name>
<value>ACCOUNT_NO,NAME,AMOUNT</value>
</property>
<property>
<name>dt.application.operator.JdbcPoller.port.outputPort.attr.TUPLE_CLASS</name>
<value>org.apache.apex.examples.JdbcIngest.PojoEvent</value>
</property>
<!-- Table name -->
<property>
<name>dt.application.operator.JdbcPoller.prop.tableName</name>
<value>test_event_table</value>
</property>
<property>
<name>dt.application.operator.JdbcPoller.prop.pollInterval</name>
<value>1000</value>
</property>
<!-- Output folder for HDFS output operator -->
<property>
<name>dt.application.operator.Writer.filePath</name>
<value>/tmp/test/output</value>
</property>
</configuration>