aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/kafka
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com>2018-03-07 23:22:47 -0800
committerGravatar Gunhan Gulsoy <gunan@google.com>2018-03-07 23:22:47 -0800
commit37f6d224d69edd532197d615ace872933be5d74b (patch)
tree9176c61ab0124707cc8dd6c413b438afd261bb06 /third_party/kafka
parentf9fb7e7736423f0bd416e1949e614d302c929709 (diff)
Fix build issue with KafkaDataset (#17418)
* Fix build issue with KafkaDataset This fix tries to address the issue raised in 17210 where error of `NotFoundError: Op type not registered 'KafkaDataset' in binary.` returned from kafka ops. The issue was that the inclusion of kafka ops was removed due to the conflict merge from the other PR. This fix fixes the issue. This fix fixes 17210. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Change `import readers.Dataset` to `import dataset_ops.Dataset`, due to the changes in some other places. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix library dependency issues in bazel Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add dependency to bazel rules Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add license to lib and pip package Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Remove unneeded changes in bazel Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Address review feedback Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix sanity check Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add zlib dependency and include path Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add copts in bazel to address the discrepancy in clang and gcc Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'third_party/kafka')
-rw-r--r--third_party/kafka/BUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/third_party/kafka/BUILD b/third_party/kafka/BUILD
index a61a9e1f6c..a839ca717e 100644
--- a/third_party/kafka/BUILD
+++ b/third_party/kafka/BUILD
@@ -130,12 +130,16 @@ cc_library(
],
hdrs = [
"config.h",
+ "src-cpp/rdkafkacpp.h",
+ "src-cpp/rdkafkacpp_int.h",
+ "src/lz4.c",
+ "src/snappy_compat.h",
],
- defines = [
+ copts = [
+ "-Iexternal/kafka/src",
+ "-Iexternal/kafka/src-cpp",
],
- includes = [
- "src",
- "src-cpp",
+ defines = [
],
linkopts = [
"-lpthread",
@@ -143,5 +147,6 @@ cc_library(
visibility = ["//visibility:public"],
deps = [
"@boringssl//:ssl",
+ "@zlib_archive//:zlib",
],
)