-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74592/
-----------------------------------------------------------

Review request for atlas, Jayendra Parab, Radhika Kundam, and Sidharth Mishra.


Bugs: ATLAS-4796
    https://issues.apache.org/jira/browse/ATLAS-4796


Repository: atlas


Description
-------

**Improvement** : Adding support to opensearch will help users in place of 
Elasticsearch.

**Aproach** : Janusgraph doesn't have support for opensearch as the indexing 
backend. Hence supporting it, by adding janusgraph elasticsearch dependency and 
opensearch rest client dependency

**Opensearch docker run command** : 
docker run -d  -p 9200:9200 -p 9300:9300 -e "DISABLE_SECURITY_PLUGIN=true"  -e 
"discovery.type=single-node" -e 
"compatibility.override_main_response_version=true" 
opensearchproject/opensearch:1.3.0 

**Atlas Configurations** : when tested with Opensearch docker
atlas.graph.index.search.hostname=localhost
atlas.graph.index.search.elasticsearch.client-only=true
atlas.graph.index.search.elasticsearch.http.auth.basic.username=admin
atlas.graph.index.search.elasticsearch.http.auth.basic.password=admin
atlas.graph.index.search.elasticsearch.http.auth.type=BASIC 

**Note: ** 

- Quick search/freetext search will not be supported.
- Need to check dynamic reindexing


Diffs
-----

  graphdb/janus/pom.xml 80fe82bfd 
  
graphdb/janus/src/main/java/org/janusgraph/diskstorage/es/ElasticSearchSetup.java
 PRE-CREATION 
  
graphdb/janus/src/main/java/org/janusgraph/diskstorage/es/rest/RestClientSetup.java
 PRE-CREATION 
  
graphdb/janus/src/main/java/org/janusgraph/diskstorage/es/rest/RestOpenSearchClient.java
 PRE-CREATION 
  
graphdb/janus/src/main/java/org/janusgraph/diskstorage/es/rest/util/BasicAuthHttpClientConfigCallback.java
 PRE-CREATION 
  
graphdb/janus/src/main/java/org/janusgraph/diskstorage/es/rest/util/ConnectionKeepAliveConfigCallback.java
 PRE-CREATION 
  
graphdb/janus/src/main/java/org/janusgraph/diskstorage/es/rest/util/RestClientAuthenticator.java
 PRE-CREATION 
  
graphdb/janus/src/main/java/org/janusgraph/diskstorage/es/rest/util/SSLConfigurationCallback.java
 PRE-CREATION 
  intg/src/main/java/org/apache/atlas/ApplicationProperties.java f83dff699 
  pom.xml fc9def1b4 


Diff: https://reviews.apache.org/r/74592/diff/1/


Testing
-------

Manually tested with Opensearch docker 1.3.0

**How to Test Locally**
- As embedded-hbase-elasticsearch profile is not been created
- Add above mentioned configurations in atlas-application properties
- Manually build Atlas
- Make sure hbase is up and running
- Make sure opensearch is up and running
- Create vertex_index, edge_index collections
- Start Atlas.


Thanks,

Pinal Shah

Reply via email to