Skip to content

Add Init test hadoop - #42273

Merged
tensorflow-copybara merged 1 commit into
tensorflow:masterfrom
vnghia:hadoop-filesystem
Aug 25, 2020
Merged

tensorflow-copybara merged 1 commit into
tensorflow:masterfrom
vnghia:hadoop-filesystem

Conversation

@vnghia

@vnghia vnghia commented Aug 12, 2020

Copy link
Copy Markdown
Contributor

@mihaimaruseac
This PR adds initialization for testing hadoop filesystem

@google-ml-butler google-ml-butler Bot added the size:M CL Change Size: Medium label Aug 12, 2020
@gbaned gbaned self-assigned this Aug 12, 2020
@google-ml-butler google-ml-butler Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Aug 13, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Aug 13, 2020
@vnghia

vnghia commented Aug 13, 2020

Copy link
Copy Markdown
Contributor Author

@mihaimaruseac
How can I test the integration of modular filesystem with Tensorflow to ensure that there isn't any ODR violation on Windows

@mihaimaruseac

Copy link
Copy Markdown
Contributor

I would build the pip package and the plugins and then from Python I would use tf.load_library to load the plugin DLLs and then issue a few filesystem calls.

Or I would use the test suite and pass the plugins as arguments but I think the test suite is still not working on Windows.

@vnghia

vnghia commented Aug 13, 2020 •

Copy link
Copy Markdown
Contributor Author

I would build the pip package and the plugins and then from Python I would use tf.load_library to load the plugin DLLs and then issue a few filesystem calls.

I tried this method but the filesystem call does not work. It keeps throw Unimplemented

Or I would use the test suite and pass the plugins as arguments but I think the test suite is still not working on Windows.

I think the main cause of ODR is happened when we link against pip package ( pywrap_tensorflow_internal ) so this approach isn't what we need.

@mihaimaruseac

Copy link
Copy Markdown
Contributor

Hmm, I would add prints to the filesystem registration routines and debug what happen during registration and during lookup. Something seems wrong.

@vnghia

vnghia commented Aug 14, 2020 •

Copy link
Copy Markdown
Contributor Author

AFAIK, we have to issue a few filesystem calls using modular_filesystem, but modular_filesystem isn't included anywhere outside //tensorflow/c/experimental. Where should I add modular_filesystem as a dependency inside the pip package so I can get it work as a normal filesystem ?

@mihaimaruseac

Copy link
Copy Markdown
Contributor

That shouldn't be the case. These lines register the filesystem.

Maybe we need adding it as a dependency to https://cs.opensource.google/tensorflow/tensorflow/+/master:tensorflow/core/platform/BUILD;l=222-231;drc=dcbf62e6b2588c83c3b0fdfcb1fe101eb2afae47 ?

@tensorflowbutler tensorflowbutler removed the ready to pull PR ready for merge process label Aug 14, 2020
@vnghia

vnghia commented Aug 15, 2020 •

Copy link
Copy Markdown
Contributor Author

When I use tf.load_library("libgcs_filesystem.so") in TF 2.3.0 on Linux, it throws
tensorflow.python.framework.errors_impl.NotFoundError: /home/vovannghia56789/.cache/bazel/_bazel_vovannghia56789/203e9f31192603e9d3065c5e6101525c/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/c/experimental/filesystem/plugins/hadoop/../../../../../../_solib_k8/libtensorflow_Sc_Slibtf_Ustatus.so: undefined symbol: _ZN10tensorflow7IOErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi

It cannot find the symbol of this function here.

s->status = IOError(context, error_code);

This error is thrown when loading posix
tensorflow.python.framework.errors_impl.NotFoundError: /home/vovannghia56789/.cache/bazel/_bazel_vovannghia56789/203e9f31192603e9d3065c5e6101525c/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/c/experimental/filesystem/plugins/posix/../../../../../../_solib_k8/libtensorflow_Sc_Slibtf_Ustatus.so: undefined symbol: _ZN10tensorflow6StatusC1ENS_5error4CodeEN4absl14lts_2020_02_2511string_viewEOSt6vectorINS_10StackFrameESaIS7_EE

@mihaimaruseac

Copy link
Copy Markdown
Contributor

Both look like C++ symbols somehow got used in the interface. I'll have to debug this but it's unlikely I'll be able to this week.

Did you compile both plugin and TF code with the same toolchain?

@vnghia

vnghia commented Aug 17, 2020

Copy link
Copy Markdown
Contributor Author

I compiled both plugin and TF code on the same machine so I am quite sure it is the same toolchain

@gbaned gbaned added the kokoro:force-run Tests on submitted change label Aug 19, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Aug 19, 2020
@gbaned gbaned added ready to pull PR ready for merge process and removed ready to pull PR ready for merge process labels Aug 20, 2020
@gbaned

gbaned commented Aug 21, 2020

Copy link
Copy Markdown
Contributor

@mihaimaruseac, @vnvo2409 Any update on this PR? Please. Thanks!

@vnghia

vnghia commented Aug 23, 2020

Copy link
Copy Markdown
Contributor Author

@mihaimaruseac
Could you debug the plugins and merge this PR in the next week ? Thank you

@gbaned gbaned added the ready to pull PR ready for merge process label Aug 25, 2020
@tensorflow-copybara
tensorflow-copybara merged commit 101b925 into tensorflow:master Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes ready to pull PR ready for merge process size:M CL Change Size: Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants