Overriding singleton bean
I found that i can not register bean which already exists in xml:
Error: java.lang.IllegalStateException: Could not register object [Configuration: core-default.xml, core-site.xml, mapred-default.xml, mapred-site.xml, yarn-default.xml, yarn-site.xml, hdfs-default.xml, hdfs-site.xml, job.xml] under bean name 'hadoopConfiguration': there is already object [org.springframework.data.hadoop.configuration.Conf igurationFactoryBean@7e4e194f]
How to solve this? is there some way to unregister bean at runtime and then register a new one under same name?