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

ClassNotFoundException: DefaultKeySizeConstraint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 1.5.0
    • None
    • None
    • None
    • Ubuntu 12.04, Hadoop 1.2.1, Zookeeper 3.4.3

    Description

      I created an accumulo cluster using https://github.com/medined/Accumulo_1_5_0_By_Vagrant on VirtualBox. Then created a client program using https://github.com/medined/user_and_friends. This simple program threw an exception:

      Exception in thread "main" org.apache.accumulo.core.client.MutationsRejectedException: # constraint violations : 1 security codes: [] # server errors 0 # exceptions 0
      at org.apache.accumulo.core.client.impl.TabletServerBatchWriter.checkForFailures(TabletServerBatchWriter.java:536)
      at org.apache.accumulo.core.client.impl.TabletServerBatchWriter.close(TabletServerBatchWriter.java:353)
      at org.apache.accumulo.core.client.impl.BatchWriterImpl.close(BatchWriterImpl.java:52)
      at com.affy.UserAndFriendsDriver.main(UserAndFriendsDriver.java:67)

      On the server side, I see this exception in the Accumulo monitor:

      Failed to load constraints 2 java.lang.ClassNotFoundException: org.apache.accumulo.core.constraints.DefaultKeySizeConstraint
      java.lang.ClassNotFoundException: org.apache.accumulo.core.constraints.DefaultKeySizeConstraint
      at org.apache.commons.vfs2.impl.VFSClassLoader.findClass(VFSClassLoader.java:175)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
      at org.apache.accumulo.server.constraints.ConstraintChecker.<init>(ConstraintChecker.java:63)
      at org.apache.accumulo.server.tabletserver.Tablet.checkConstraints(Tablet.java:2522)
      at org.apache.accumulo.server.tabletserver.TabletServer$6.run(TabletServer.java:3116)
      at org.apache.accumulo.server.util.time.SimpleTimer$LoggingTimerTask.run(SimpleTimer.java:42)
      at java.util.TimerThread.mainLoop(Timer.java:534)
      at java.util.TimerThread.run(Timer.java:484)

      When I delete the log message, it reappears even though I do not re-run the client program.

      I don't see any reference to DefaultKeySizeConstraint in the Accumulo 1.5.0 source code that I have.

      Any ideas why this exception is thrown?

      Attachments

        Activity

          People

            Unassigned Unassigned
            medined David Medinets
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: