Announcement Announcement Module
No announcement yet.
Is Spring Batch supports TeraData? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is Spring Batch supports TeraData?

    i wanted to execute batch jobs in teradata using Spring Batch framework. But when the default 'jobRepositoy' trying to connect to the db i am getting the below exception.

    Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'jobRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: DatabaseType not found for product name: [Teradata]
    at AutowireCapableBeanFactory.initializeBean(Abstract
    at AutowireCapableBeanFactory.doCreateBean(AbstractAu
    at AutowireCapableBeanFactory.createBean(AbstractAuto
    at BeanFactory$1.getObject( 93)
    at ingletonBeanRegistry.getSingleton(DefaultSingleton
    at BeanFactory.doGetBean( )
    at BeanFactory.getBean(
    at istableBeanFactory.preInstantiateSingletons(Defaul
    at ationContext.finishBeanFactoryInitialization(Abstr
    at ationContext.refresh(AbstractApplicationContext.ja va:425)
    at plicationContext.<init>(ClassPathXmlApplicationCon
    at plicationContext.<init>(ClassPathXmlApplicationCon
    Caused by: java.lang.IllegalArgumentException: DatabaseType not found for product name: [Teradata]
    at mProductName(
    at mMetaData(
    at JobRepositoryFactoryBean.afterPropertiesSet(JobRep
    at AutowireCapableBeanFactory.invokeInitMethods(Abstr
    at AutowireCapableBeanFactory.initializeBean(Abstract
    ... 12 more under package is a Enum class. Enum entries i found in the source code are

    DERBY("Apache Derby"),
    HSQL("HSQL Database Engine"),
    SQLSERVER("Microsoft SQL Server"),
    SYBASE("Sybase"), H2("H2");

    I didn't find any entry for Teradata. So i am just curious to know whether Spring Batch frame work supports TeraData or not? If i want to use TeraData, how to tweak the frame work code?
    Last edited by sripy123; Jan 11th, 2012, 02:47 PM.

  • #2
    If i want to use TeraData, how to tweak the frame work code?
    basically you need to create a own spring batch core version with custom Java and SQL, Spring Batch needs proper CREATE_TABLE/READ/UPDATE statements to work with the database.

    if you do this, be so nice and provide the patches to the github source :-)