Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Not able to build Opensearch on Mac getting error : package org.opensearch.dissect does not exist #13109

Open
navneet1v opened this issue Apr 6, 2024 · 5 comments
Labels
bug Something isn't working Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. documentation Improvements or additions to documentation

Comments

@navneet1v
Copy link
Contributor

Describe the bug

I am trying to build Openearch main branch on my local mac. but I keep getting this error:

> Task :modules:ingest-common:compileJava
Picked up JAVA_TOOL_OPTIONS: -Dlog4j2.formatMsgNoLookups=true
/Users/navneev/workplace/OpenSearch/modules/ingest-common/src/main/java/org/opensearch/ingest/common/DissectProcessor.java:35: error: package org.opensearch.dissect does not exist
import org.opensearch.dissect.DissectParser;
                             ^
/Users/navneev/workplace/OpenSearch/modules/ingest-common/src/main/java/org/opensearch/ingest/common/DissectProcessor.java:51: error: cannot find symbol
    final DissectParser dissectParser;
          ^
  symbol:   class DissectParser
  location: class DissectProcessor
/Users/navneev/workplace/OpenSearch/modules/ingest-common/src/main/java/org/opensearch/ingest/common/DissectProcessor.java:59: error: cannot find symbol
        this.dissectParser = new DissectParser(pattern, appendSeparator);
                                 ^
  symbol:   class DissectParser
  location: class DissectProcessor
3 errors

> Task :modules:ingest-common:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':modules:ingest-common:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --info option to get more log output.

BUILD FAILED in 2m 13s

Related component

Build

To Reproduce

  1. Clone the main branch of Opensearch in your mac.
  2. run ./gralew run

Expected behavior

There should be no error

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: Mac OS, Intel Processor
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@navneet1v navneet1v added bug Something isn't working untriaged labels Apr 6, 2024
@github-actions github-actions bot added the Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. label Apr 6, 2024
@navneet1v
Copy link
Contributor Author

I tried removing the local maven repo and also the gradle caches. but nothing helped.

@dblock
Copy link
Member

dblock commented Apr 8, 2024

The package does exist, I promise ;)

https://github.com/opensearch-project/OpenSearch/tree/9b0f578903f2cd56878b1c69ab6f4f05167238f8/libs/dissect/src/main/java/org/opensearch/dissect

Which version of Java? Try another?

@navneet1v
Copy link
Contributor Author

I think I am trying java 11.

@peternied
Copy link
Member

[Triage - attendees 1 2 3 4 5 6]
@navneet1v Thanks for filing this issue to track what is going on in your development environment please work through this and update the issue as you go.

@peternied peternied added the documentation Improvements or additions to documentation label Apr 10, 2024
@andrross
Copy link
Member

@navneet1v We do run the precommit task against MacOS with Java 17 as a part of every PR, which is able to successfully invoke :modules:ingest-common:compileJava. Random example: https://github.com/opensearch-project/OpenSearch/actions/runs/8595741842/job/23550982348?pr=13111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. documentation Improvements or additions to documentation
Projects
Status: Planned work items
Development

No branches or pull requests

4 participants