It looks like the examples were updated to work with 2.1.0-SNAPSHOT's
new Constraint SPI, which doesn't exist for 2.0.1. Try checking out
the 2.0 branch in the accumulo-examples, if you're trying to run them
with 2.0.

On Thu, Jul 15, 2021 at 12:03 PM Christine Buss
<[email protected]> wrote:
>
>
> And I should mention,
> I get the AssertionError when I remove the folder 'constraints' in
> /accumulo-examples/src/main/java/org/apache/accumulo/examples
>
> When I keep folder there, then I get this message:
> ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/MaxMutationSize.java:[31,49]
>  package org.apache.accumulo.core.data.constraints does not exist
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/MaxMutationSize.java:[40,41]
>  cannot find symbol
>   symbol: class Constraint
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/MaxMutationSize.java:[54,28]
>  cannot find symbol
>   symbol:   class Environment
>   location: class org.apache.accumulo.examples.constraints.MaxMutationSize
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/AlphaNumKeyConstraint.java:[35,49]
>  package org.apache.accumulo.core.data.constraints does not exist
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/AlphaNumKeyConstraint.java:[44,47]
>  cannot find symbol
>   symbol: class Constraint
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/AlphaNumKeyConstraint.java:[74,28]
>  cannot find symbol
>   symbol:   class Environment
>   location: class 
> org.apache.accumulo.examples.constraints.AlphaNumKeyConstraint
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/NumericValueConstraint.java:[32,49]
>  package org.apache.accumulo.core.data.constraints does not exist
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/NumericValueConstraint.java:[41,48]
>  cannot find symbol
>   symbol: class Constraint
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/NumericValueConstraint.java:[60,28]
>  cannot find symbol
>   symbol:   class Environment
>   location: class 
> org.apache.accumulo.examples.constraints.NumericValueConstraint
> [INFO] 9 errors
> [INFO] -------------------------------------------------------------
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  20.033 s
> [INFO] Finished at: 2021-07-15T18:01:27+02:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
> (default-compile) on project accumulo-examples: Compilation failure: 
> Compilation failure:
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/MaxMutationSize.java:[31,49]
>  package org.apache.accumulo.core.data.constraints does not exist
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/MaxMutationSize.java:[40,41]
>  cannot find symbol
> [ERROR]   symbol: class Constraint
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/MaxMutationSize.java:[54,28]
>  cannot find symbol
> [ERROR]   symbol:   class Environment
> [ERROR]   location: class 
> org.apache.accumulo.examples.constraints.MaxMutationSize
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/AlphaNumKeyConstraint.java:[35,49]
>  package org.apache.accumulo.core.data.constraints does not exist
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/AlphaNumKeyConstraint.java:[44,47]
>  cannot find symbol
> [ERROR]   symbol: class Constraint
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/AlphaNumKeyConstraint.java:[74,28]
>  cannot find symbol
> [ERROR]   symbol:   class Environment
> [ERROR]   location: class 
> org.apache.accumulo.examples.constraints.AlphaNumKeyConstraint
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/NumericValueConstraint.java:[32,49]
>  package org.apache.accumulo.core.data.constraints does not exist
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/NumericValueConstraint.java:[41,48]
>  cannot find symbol
> [ERROR]   symbol: class Constraint
> [ERROR] 
> /home/christine/accumulo-examples/src/main/java/org/apache/accumulo/examples/constraints/NumericValueConstraint.java:[60,28]
>  cannot find symbol
> [ERROR]   symbol:   class Environment
> [ERROR]   location: class 
> org.apache.accumulo.examples.constraints.NumericValueConstraint
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
>
> Does that have anything to do with the Assertion Error?
>
>
>
>
> Gesendet: Donnerstag, 15. Juli 2021 um 17:48 Uhr
> Von: "Christine Buss" <[email protected]>
> An: [email protected]
> Betreff: java.lang.AssertionError - accumulo examples
> I cloned the accumulo examples, and followed the instructions in the READMe 
> file:
> https://github.com/apache/accumulo-examples/blob/main/README.md
> but when I run  ./bin/build I get an AssertionError;
>
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  22.366 s
> [INFO] Finished at: 2021-07-15T17:27:50+02:00
> [INFO] 
> ------------------------------------------------------------------------
> ---------------------------------------------------
> constituent[0]: file:/usr/share/maven/conf/logging/
> constituent[1]: file:/usr/share/maven/lib/maven-repository-metadata-3.x.jar
> constituent[2]: file:/usr/share/maven/lib/plexus-interpolation.jar
> constituent[3]: file:/usr/share/maven/lib/maven-model-3.x.jar
> constituent[4]: file:/usr/share/maven/lib/commons-cli.jar
> constituent[5]: file:/usr/share/maven/lib/maven-resolver-impl.jar
> constituent[6]: file:/usr/share/maven/lib/wagon-provider-api.jar
> constituent[7]: file:/usr/share/maven/lib/maven-resolver-provider-3.x.jar
> constituent[8]: file:/usr/share/maven/lib/maven-resolver-util.jar
> constituent[9]: file:/usr/share/maven/lib/maven-settings-builder-3.x.jar
> constituent[10]: file:/usr/share/maven/lib/jsr250-api.jar
> constituent[11]: file:/usr/share/maven/lib/maven-builder-support-3.x.jar
> constituent[12]: file:/usr/share/maven/lib/maven-embedder-3.x.jar
> constituent[13]: file:/usr/share/maven/lib/sisu-plexus.jar
> constituent[14]: file:/usr/share/maven/lib/commons-lang3.jar
> constituent[15]: file:/usr/share/maven/lib/javax.inject.jar
> constituent[16]: file:/usr/share/maven/lib/maven-settings-3.x.jar
> constituent[17]: file:/usr/share/maven/lib/maven-resolver-connector-basic.jar
> constituent[18]: file:/usr/share/maven/lib/maven-resolver-api.jar
> constituent[19]: file:/usr/share/maven/lib/maven-resolver-transport-wagon.jar
> constituent[20]: file:/usr/share/maven/lib/aopalliance.jar
> constituent[21]: file:/usr/share/maven/lib/cdi-api.jar
> constituent[22]: file:/usr/share/maven/lib/wagon-file.jar
> constituent[23]: file:/usr/share/maven/lib/maven-model-builder-3.x.jar
> constituent[24]: file:/usr/share/maven/lib/commons-io.jar
> constituent[25]: file:/usr/share/maven/lib/wagon-http-shaded.jar
> constituent[26]: file:/usr/share/maven/lib/plexus-cipher.jar
> constituent[27]: file:/usr/share/maven/lib/maven-resolver-spi.jar
> constituent[28]: file:/usr/share/maven/lib/plexus-utils.jar
> constituent[29]: file:/usr/share/maven/lib/guava.jar
> constituent[30]: file:/usr/share/maven/lib/maven-core-3.x.jar
> constituent[31]: file:/usr/share/maven/lib/plexus-component-annotations.jar
> constituent[32]: file:/usr/share/maven/lib/guice.jar
> constituent[33]: file:/usr/share/maven/lib/sisu-inject.jar
> constituent[34]: file:/usr/share/maven/lib/maven-compat-3.x.jar
> constituent[35]: file:/usr/share/maven/lib/slf4j-api.jar
> constituent[36]: file:/usr/share/maven/lib/jansi.jar
> constituent[37]: file:/usr/share/maven/lib/jcl-over-slf4j.jar
> constituent[38]: file:/usr/share/maven/lib/plexus-sec-dispatcher.jar
> constituent[39]: file:/usr/share/maven/lib/maven-plugin-api-3.x.jar
> constituent[40]: file:/usr/share/maven/lib/maven-slf4j-provider-3.x.jar
> constituent[41]: file:/usr/share/maven/lib/maven-artifact-3.x.jar
> constituent[42]: file:/usr/share/maven/lib/maven-shared-utils.jar
> ---------------------------------------------------
> Exception in thread "main" java.lang.AssertionError
>     at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155)
>     at jdk.compiler/com.sun.tools.javac.util.Assert.check(Assert.java:46)
>     at jdk.compiler/com.sun.tools.javac.comp.Modules.enter(Modules.java:247)
>     at 
> jdk.compiler/com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:837)
>     at 
> jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$ImplicitCompleter.complete(JavacProcessingEnvironment.java:1530)
>     at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:642)
>     at 
> jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1326)
>     at 
> jdk.compiler/com.sun.tools.javac.code.Type$ClassType.complete(Type.java:1140)
>     at 
> jdk.compiler/com.sun.tools.javac.code.Type$ClassType.getTypeArguments(Type.java:1066)
>     at 
> jdk.compiler/com.sun.tools.javac.code.Printer.visitClassType(Printer.java:237)
>     at 
> jdk.compiler/com.sun.tools.javac.code.Printer.visitClassType(Printer.java:52)
>     at 
> jdk.compiler/com.sun.tools.javac.code.Type$ClassType.accept(Type.java:993)
>     at jdk.compiler/com.sun.tools.javac.code.Printer.visit(Printer.java:136)
>     at 
> jdk.compiler/com.sun.tools.javac.util.AbstractDiagnosticFormatter.formatArgument(AbstractDiagnosticFormatter.java:199)
>     at 
> jdk.compiler/com.sun.tools.javac.util.AbstractDiagnosticFormatter.formatArguments(AbstractDiagnosticFormatter.java:167)
>     at 
> jdk.compiler/com.sun.tools.javac.util.BasicDiagnosticFormatter.formatMessage(BasicDiagnosticFormatter.java:111)
>     at 
> jdk.compiler/com.sun.tools.javac.util.BasicDiagnosticFormatter.formatMessage(BasicDiagnosticFormatter.java:67)
>     at 
> jdk.compiler/com.sun.tools.javac.util.AbstractDiagnosticFormatter.formatArgument(AbstractDiagnosticFormatter.java:185)
>     at 
> jdk.compiler/com.sun.tools.javac.util.AbstractDiagnosticFormatter.formatArguments(AbstractDiagnosticFormatter.java:167)
>     at 
> jdk.compiler/com.sun.tools.javac.util.BasicDiagnosticFormatter.formatMessage(BasicDiagnosticFormatter.java:111)
>     at 
> jdk.compiler/com.sun.tools.javac.util.BasicDiagnosticFormatter.formatMessage(BasicDiagnosticFormatter.java:67)
>     at 
> jdk.compiler/com.sun.tools.javac.util.JCDiagnostic.getMessage(JCDiagnostic.java:788)
>     at 
> jdk.compiler/com.sun.tools.javac.api.ClientCodeWrapper$DiagnosticSourceUnwrapper.getMessage(ClientCodeWrapper.java:799)
>     at 
> org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:131)
>     at 
> org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:174)
>     at 
> org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1134)
>     at 
> org.apache.maven.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:180)
>     at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
>     at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
>     at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
>     at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
>     at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>     at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
>     at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
>     at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
>     at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
>
> I am not able to get rid of it,
> I am using Java 11.
>
> christine@centauri:~/accumulo-examples$ mvn --version |grep -i java
> Java version: 11.0.11, vendor: Ubuntu, runtime: 
> /usr/lib/jvm/java-11-openjdk-amd64
> christine@centauri:~/accumulo-examples$ java -version
> openjdk version "11.0.11" 2021-04-20
> OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
> OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, 
> sharing)
>
>
>
> I am able to run accumulo 2.0.1 finally. Not sure what the problem was, but 
> after I ran bin/hdfs namenode -format
> and accumulo init once again it works.
>
> Thanks in advance for any help. I promise this is my last silly question. I 
> searched google and stackoverflow but i was not able to solve this,
>
>

Reply via email to