You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/04/04 19:09:55 UTC

[GitHub] [accumulo-examples] DomGarguilo opened a new issue, #95: ClassNotFoundException on several examples

DomGarguilo opened a new issue, #95:
URL: https://github.com/apache/accumulo-examples/issues/95

   When running the dirlist, filedata and possibly other examples, the following error occurs in the monitor.
   
   ```
   java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.accumulo.examples.filedata.ChunkCombiner
   	at org.apache.accumulo.core.conf.IterConfigUtil.loadIterators(IterConfigUtil.java:226)
   	at org.apache.accumulo.core.conf.IterConfigUtil.convertItersAndLoad(IterConfigUtil.java:188)
   	at org.apache.accumulo.server.compaction.FileCompactor.compactLocalityGroup(FileCompactor.java:362)
   	at org.apache.accumulo.server.compaction.FileCompactor.call(FileCompactor.java:230)
   	at org.apache.accumulo.tserver.tablet.MinorCompactor.call(MinorCompactor.java:95)
   	at org.apache.accumulo.tserver.tablet.Tablet.minorCompact(Tablet.java:813)
   	at org.apache.accumulo.tserver.tablet.MinorCompactionTask.run(MinorCompactionTask.java:110)
   	at org.apache.accumulo.core.trace.TraceWrappedRunnable.run(TraceWrappedRunnable.java:52)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   	at org.apache.accumulo.core.trace.TraceWrappedRunnable.run(TraceWrappedRunnable.java:52)
   	at java.base/java.lang.Thread.run(Thread.java:829)
   Caused by: java.lang.ClassNotFoundException: org.apache.accumulo.examples.filedata.ChunkCombiner
   	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
   	at org.apache.accumulo.start.classloader.AccumuloClassLoader$1.loadClass(AccumuloClassLoader.java:213)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
   	at org.apache.accumulo.core.classloader.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:85)
   	at org.apache.accumulo.core.conf.IterConfigUtil.loadClass(IterConfigUtil.java:236)
   	at org.apache.accumulo.core.conf.IterConfigUtil.loadIterators(IterConfigUtil.java:211)
   	... 11 more
   ```
   There is the following note in the filedata example:
   ```
   Note that in order to scan the 
   examples.dataTable the class, org.apache.accumulo.examples.filedata.ChunkCombiner, must be in 
   your classpath, or the accumulo-examples-shaded.jar should be moved to the accumulo lib directory.
   ```
   This error occurs even with the shaded jar moved to the lib directory.
   
   To reproduce: follow the steps on either the dirlist or filedata examples and check the monitor for errors.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo-examples] DomGarguilo closed issue #95: ClassNotFoundException on several examples

Posted by GitBox <gi...@apache.org>.
DomGarguilo closed issue #95: ClassNotFoundException on several examples
URL: https://github.com/apache/accumulo-examples/issues/95


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo-examples] DomGarguilo commented on issue #95: ClassNotFoundException on several examples

Posted by GitBox <gi...@apache.org>.
DomGarguilo commented on issue #95:
URL: https://github.com/apache/accumulo-examples/issues/95#issuecomment-1087996746

   > Just curious, was the shaded jar moved to the `lib` directory _before_ Accumulo was started?
   
   That might be causing the issue I'm seeing. I was initially moving the jars after accumulo was started which is probably what was causing the error. For some odd reason I cannot get a tserver to start correctly once the shaded jar has been copied into /lib using fluo-uno. Regardless, that is outside of the scope of this ticket so I'll close it for now.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo-examples] dlmarion commented on issue #95: ClassNotFoundException on several examples

Posted by GitBox <gi...@apache.org>.
dlmarion commented on issue #95:
URL: https://github.com/apache/accumulo-examples/issues/95#issuecomment-1087915865

   Just curious, was the shaded jar moved to the `lib` directory *before* Accumulo was started?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org