-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(graph): support using elasticsearch as graph backend. #2726
Merged
shirshanka
merged 28 commits into
datahub-project:master
from
gabe-lyons:ElasticGraphSquashed
Jun 22, 2021
Merged
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
7b9cbd4
elasticsearch as graph backend
gabe-lyons 17335de
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons 679baa2
fixes
gabe-lyons 0a83f50
adding deprecated mapper back in
gabe-lyons 23fb6ee
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons 496727f
search request handler revert
gabe-lyons 342d646
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons 7670230
using delete by query
gabe-lyons c43f5f5
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons 8a40ccb
cleanup
gabe-lyons 1ff40d9
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons 01edd76
adding new values.yaml
gabe-lyons db9f0ea
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons 9df81ce
updating
gabe-lyons 5d7b008
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons dd713ed
finalizing update
gabe-lyons 255c06d
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons a9117e0
fix import
gabe-lyons 640d902
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons 8e305ee
fixing typo
gabe-lyons 21bacdd
removing lines
gabe-lyons a037e19
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons dd55e9c
fixing depends on
gabe-lyons 63b39da
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons 0c85b5a
handling null response
gabe-lyons 33ea5a8
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons d551c26
== null
gabe-lyons 91960f0
Merge remote-tracking branch 'private/ElasticGraphSquashed' into Elas…
gabe-lyons File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
datahub-kubernetes/datahub/quickstart-values-without-neo4j.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Values to start up datahub after starting up the datahub-prerequisites chart with "prerequisites" release name | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alternate possible name:
|
||
# Copy this chart and change configuration as needed. | ||
datahub-gms: | ||
enabled: true | ||
image: | ||
repository: linkedin/datahub-gms | ||
tag: "v0.8.1" | ||
|
||
datahub-frontend: | ||
enabled: true | ||
image: | ||
repository: linkedin/datahub-frontend-react | ||
tag: "v0.8.1" | ||
# Set up ingress to expose react front-end | ||
ingress: | ||
enabled: false | ||
|
||
elasticsearchSetupJob: | ||
enabled: true | ||
image: | ||
repository: linkedin/datahub-elasticsearch-setup | ||
tag: "v0.8.1" | ||
|
||
kafkaSetupJob: | ||
enabled: true | ||
image: | ||
repository: linkedin/datahub-kafka-setup | ||
tag: "v0.8.1" | ||
|
||
mysqlSetupJob: | ||
enabled: true | ||
image: | ||
repository: acryldata/datahub-mysql-setup | ||
tag: "v0.8.1" | ||
|
||
datahubUpgrade: | ||
enabled: true | ||
image: | ||
repository: acryldata/datahub-upgrade | ||
tag: "v0.8.1" | ||
|
||
datahub-ingestion-cron: | ||
enabled: false | ||
|
||
global: | ||
graph_service_impl: elasticsearch | ||
|
||
elasticsearch: | ||
host: "elasticsearch-master" | ||
port: "9200" | ||
indexPrefix: demo | ||
|
||
kafka: | ||
bootstrap: | ||
server: "prerequisites-kafka:9092" | ||
zookeeper: | ||
server: "prerequisites-zookeeper:2181" | ||
schemaregistry: | ||
url: "http://prerequisites-cp-schema-registry:8081" | ||
|
||
sql: | ||
datasource: | ||
host: "prerequisites-mysql:3306" | ||
hostForMysqlClient: "prerequisites-mysql" | ||
port: "3306" | ||
url: "jdbc:mysql://prerequisites-mysql:3306/datahub?verifyServerCertificate=false&useSSL=true&useUnicode=yes&characterEncoding=UTF-8" | ||
driver: "com.mysql.jdbc.Driver" | ||
username: "root" | ||
password: | ||
secretRef: mysql-secrets | ||
secretKey: mysql-root-password | ||
|
||
datahub: | ||
gms: | ||
port: "8080" | ||
mae_consumer: | ||
port: "9091" | ||
appVersion: "1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
DATASET_ENABLE_SCSI=false | ||
EBEAN_DATASOURCE_USERNAME=datahub | ||
EBEAN_DATASOURCE_PASSWORD=datahub | ||
EBEAN_DATASOURCE_HOST=mysql:3306 | ||
EBEAN_DATASOURCE_URL=jdbc:mysql://mysql:3306/datahub?verifyServerCertificate=false&useSSL=true&useUnicode=yes&characterEncoding=UTF-8 | ||
EBEAN_DATASOURCE_DRIVER=com.mysql.jdbc.Driver | ||
KAFKA_BOOTSTRAP_SERVER=broker:29092 | ||
KAFKA_SCHEMAREGISTRY_URL=http://schema-registry:8081 | ||
ELASTICSEARCH_HOST=elasticsearch | ||
ELASTICSEARCH_PORT=9200 | ||
GRAPH_SERVICE_IMPL=elasticsearch | ||
|
||
MAE_CONSUMER_ENABLED=true | ||
MCE_CONSUMER_ENABLED=true | ||
|
||
# Uncomment to disable persistence of client-side analytics events | ||
# DATAHUB_ANALYTICS_ENABLED=false | ||
|
||
# Uncomment to configure kafka topic names | ||
# Make sure these names are consistent across the whole deployment | ||
# METADATA_AUDIT_EVENT_NAME=MetadataAuditEvent_v4 | ||
# METADATA_CHANGE_EVENT_NAME=MetadataChangeEvent_v4 | ||
# FAILED_METADATA_CHANGE_EVENT_NAME=FailedMetadataChangeEvent_v4 | ||
|
||
# Uncomment and set these to support SSL connection to Elasticsearch | ||
# ELASTICSEARCH_USE_SSL=true | ||
# ELASTICSEARCH_SSL_PROTOCOL=TLSv1.2 | ||
# ELASTICSEARCH_SSL_SECURE_RANDOM_IMPL= | ||
# ELASTICSEARCH_SSL_TRUSTSTORE_FILE= | ||
# ELASTICSEARCH_SSL_TRUSTSTORE_TYPE= | ||
# ELASTICSEARCH_SSL_TRUSTSTORE_PASSWORD= | ||
# ELASTICSEARCH_SSL_KEYSTORE_FILE= | ||
# ELASTICSEARCH_SSL_KEYSTORE_TYPE= | ||
# ELASTICSEARCH_SSL_KEYSTORE_PASSWORD= | ||
|
||
# To use simple username/password authentication to Elasticsearch over HTTPS | ||
# set ELASTICSEARCH_USE_SSL=true and uncomment: | ||
# ELASTICSEARCH_USERNAME= | ||
# ELASTICSEARCH_PASSWORD= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
version: '3.8' | ||
services: | ||
mysql: | ||
container_name: mysql | ||
hostname: mysql | ||
image: mysql:5.7 | ||
env_file: mysql/env/docker.env | ||
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci | ||
ports: | ||
- "3306:3306" | ||
volumes: | ||
- ./mysql/init.sql:/docker-entrypoint-initdb.d/init.sql | ||
- mysqldata:/var/lib/mysql | ||
|
||
mysql-setup: | ||
build: | ||
context: ../ | ||
dockerfile: docker/mysql-setup/Dockerfile | ||
image: acryldata/datahub-mysql-setup:head | ||
env_file: mysql-setup/env/docker.env | ||
hostname: mysql-setup | ||
container_name: mysql-setup | ||
depends_on: | ||
- mysql | ||
|
||
datahub-gms: | ||
env_file: datahub-gms/env/docker-without-neo4j.env | ||
depends_on: | ||
- mysql | ||
|
||
volumes: | ||
mysqldata: |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be added back outside the if statement