Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9615

Hadoop Jar command not working when used with Spring ORM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.0.0-alpha
    • None
    • fs
    • CentOS,

    • hadoop, spring

    Description

      Unable to invoke 'hadoop jar' command for class, which contains Spring persistance unit.

      The problem is that, the jar file uses Spring ORM for loading the persistance configurations, and based on these configurations,
      i need to move the files to HDFS.

      While invoking the jar with hadoop jar command (having spring orm injected) the exception is as:

      Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in class path resource [applicationContext.xml

      Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]:
      Invocation of init method failed; nested exception is java.lang.IllegalStateException: Conflicting persistence unit definitions for name 'Persistance': file:/home/user/Desktop/ABC/apnJar.jar, file:/tmp/hadoop-user/hadoop-unjar2841422106164401019/

      Caused by: java.lang.IllegalStateException: Conflicting persistence unit definitions for name 'Persistance':

      Attachments

        Activity

          People

            Unassigned Unassigned
            deepa.vasanthkumar Deepa Vasanthkumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: