Uploaded image for project: 'Spring for Apache Hadoop'
  1. Spring for Apache Hadoop
  2. SHDP-38

HBaseConfigurationFactoryBean returns Wrong Type

    Details

      Description

      HbaseConfigurationFactoryBean appears to be returning an instance of org.apache.hadoop.conf.Configuration instead of org.apache.hadoop.hbase.HBaseConfiguration. Looking at the source, it appears that this is because both member variables are of the hadoop.conf type.

      This can be reproduced quite easily by using both <hdp:configuration /> and <hdp:hbase-configuration /> and specifying a bean with an @Autowired org.apache.hadoop.conf.Configuration property: context startup will fail due to the ambiguous autowire candidacy.

        Attachments

          Activity

            People

            • Assignee:
              costin Costin Leau
              Reporter:
              daniel-mendeley Daniel Jones
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified