MaxStepQ opened a new issue #724: Question. jdbc oracle
URL: https://github.com/apache/incubator-hudi/issues/724
 
 
   Hello!
   My global goal is to efficiently load increments (new records) and fields 
that have changed from Oracle DB to Hadoop. In all examples you are using kafka.
   is it possible to use this construction and will the query in oracle be 
efficient ?
   spark.read.format("jdbc").option("<connection string with credentials>").load
   
.write.format("com.uber.hoodie").option(DataSourceWriteOptions.RECORDKEY_FIELD_OPT_KEY,
 "id").option(DataSourceWriteOptions.PARTITIONPATH_FIELD_OPT_KEY, 
"partition").option(DataSourceWriteOptions.PRECOMBINE_FIELD_OPT_KEY, 
"date").option(HoodieWriteConfig.TABLE_NAME, 
"tableName").mode(SaveMode.Append).save("hdfs:///<path to save>/")
   
   Thank you in advance !
   
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to