Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4373

Commons config method not found

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.0
    • Component/s: None
    • Labels:
      None

      Description

      I am seeting the following when trying to run 1.8.0-SNAPSHOT. This is caused by Accumulo compiling against commons config 1.10 and using common config 1.6 from Hadoop at runtime. I think 1.10 has a more specific method that 1.6 does not have. In 1.6 can pass Properties as a Map, in 1.10 there is a method that takes Properties.

      2016-07-12 15:07:22,124 [start.Main] ERROR: Uncaught exception
      java.util.ServiceConfigurationError: org.apache.accumulo.start.spi.KeywordExecutable: Provider org.apache.accumulo.server.init.Initialize could not be instantiated
      	at java.util.ServiceLoader.fail(ServiceLoader.java:232)
      	at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
      	at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
      	at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
      	at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
      	at org.apache.accumulo.start.Main.checkDuplicates(Main.java:223)
      	at org.apache.accumulo.start.Main.getExecutables(Main.java:215)
      	at org.apache.accumulo.start.Main.main(Main.java:78)
      Caused by: java.lang.NoSuchMethodError: org.apache.commons.configuration.MapConfiguration.<init>(Ljava/util/Properties;)V
      	at org.apache.accumulo.core.conf.Property.getDefaultValue(Property.java:645)
      	at org.apache.accumulo.core.conf.DefaultConfiguration.<clinit>(DefaultConfiguration.java:35)
      	at org.apache.accumulo.core.conf.SiteConfiguration.getInstance(SiteConfiguration.java:73)
      	at org.apache.accumulo.server.zookeeper.ZooReaderWriter.getInstance(ZooReaderWriter.java:36)
      	at org.apache.accumulo.server.init.Initialize.<clinit>(Initialize.java:131)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      	at java.lang.Class.newInstance(Class.java:442)
      	at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
      	... 5 more
      
      

        Attachments

          Activity

            People

            • Assignee:
              ctubbsii Christopher Tubbs
              Reporter:
              kturner Keith Turner
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m