Skip to content

Commit

Permalink
Support opensearch-sql:run and update developer_guide doc (opensearch…
Browse files Browse the repository at this point in the history
…-project#1099)

Support opensearch-sql:run
Update developer_guide doc. add prometheus and filesystem description.
Add .java-version to .gitignore

Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
penghuo authored Nov 25, 2022
1 parent cfb2650 commit 50669eb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ gen
/artifacts/
/.pid.lock
/.prom.pid.lock

.java-version
4 changes: 4 additions & 0 deletions DEVELOPER_GUIDE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ The plugin codebase is in standard layout of Gradle project::
├── core
├── doctest
├── opensearch
├── filesystem
├── prometheus
├── integ-test
├── legacy
├── plugin
Expand All @@ -159,6 +161,8 @@ Here are sub-folders (Gradle modules) for plugin source code:
- ``ppl``: PPL language processor.
- ``core``: core query engine.
- ``opensearch``: OpenSearch storage engine.
- ``prometheus``: Prometheus storage engine.
- ``filesystem``: File System storage engine (in development).
- ``protocol``: request/response protocol formatter.
- ``common``: common util code.
- ``integ-test``: integration and comparison test.
Expand Down
17 changes: 17 additions & 0 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ plugins {
}

apply plugin: 'opensearch.pluginzip'
apply plugin: 'opensearch.rest-test'

ext {
projectSubstitutions = [:]
Expand Down Expand Up @@ -226,3 +227,19 @@ afterEvaluate {
}
}
}

testClusters.integTest {
plugin(project.tasks.bundlePlugin.archiveFile)

// debug with command, ./gradlew opensearch-sql:run -DdebugJVM. --debug-jvm does not work with keystore.
if (System.getProperty("debugJVM") != null) {
jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005'
}

// add customized keystore
keystore 'plugins.query.federation.datasources.config', new File("$projectDir/src/test/resources/", 'datasources.json')
}

run {
useCluster testClusters.integTest
}

0 comments on commit 50669eb

Please sign in to comment.