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

Support elasticsearch 7 #75

Merged
merged 8 commits into from
Aug 22, 2019
Merged

Conversation

pavolloffay
Copy link
Member

@pavolloffay pavolloffay commented Aug 13, 2019

Resolves #74
Blocked by jaegertracing/jaeger#1690

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@@ -192,6 +192,7 @@ void run(String[] spanIndices, String[] depIndices,String peerServiceTag) {
.map(new ElasticTupleToSpan())
.groupBy(Span::getTraceId);
List<Dependency> dependencyLinks = DependenciesSparkHelper.derive(traces,peerServiceTag);
// TODO the type names are deprecated (in ES7) and will be removed in a later release.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This produces warning messages, however I think it's better than to require a conf parameter to avoid adding a type. Alternatively we could get the version from ES but we would have to use a separate client with security settings etc...

STORAGE=elasticsearch ES_NODES=http://localhost:9200 java -jar jaeger-spark-dependencies/target/jaeger-spark-dependencies-0.0.1-SNAPSHOT.jar                                     5:23 
19/08/13 17:23:06 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
19/08/13 17:23:06 INFO ElasticsearchDependenciesJob: Running Dependencies job for 2019-08-13T00:00Z, reading from jaeger-span-2019-08-13 index, result storing to jaeger-dependencies-2019-08-13
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:08 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:09 WARN Resource: Detected type name in resource [jaeger-dependencies-2019-08-13/dependencies]. Type names are deprecated and will be removed in a later release.
19/08/13 17:23:09 INFO ElasticsearchDependenciesJob: Done, 8 dependency objects created

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a mechanism to get the ES version and appropriately add type for older versions. However, the warn message is still present when used with older ES versions.

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@pavolloffay pavolloffay merged commit 64b59ec into jaegertracing:master Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Elasticsearch 7
1 participant