serving icon indicating copy to clipboard operation
serving copied to clipboard

Documentation for serving models from HDFS

Open troynt opened this issue 8 years ago • 2 comments

I'm unable to find documentation on serving Tensorflow models out of HDFS.

I believe support may have been added due to issue #415 being closed, referencing pull #432

I can see tensorflow/serving repo referencing Hadoop at https://github.com/tensorflow/serving/blob/628702e1de1fa3d679369e9546e7d74fa91154d3/tensorflow_serving/model_servers/BUILD#L341

"@org_tensorflow//tensorflow/core/platform/hadoop:hadoop_file_system"

This is a reference to

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/platform/hadoop/hadoop_file_system.cc

Can TensorFlow Serving serve models from HDFS? If so, how do you do this?

If not, maybe "@org_tensorflow//tensorflow/core/platform/hadoop:hadoop_file_system" should be removed from model_servers/BUILD

What I tried

I'm running tensorflow serving docker container tag 1.10.1 https://hub.docker.com/r/tensorflow/serving

I have set the following environmental variables:

  • HADOOP_HDFS_HOME to point to my HDFS home (/etc/hadoop in my case).
  • MODEL_BASE_PATH set to "hdfs://tensorflow/models"
  • MODEL_NAME set to name of model I wish to load

I mount Hadoop home into docker container and can verify it using docker exec.

When I run the docker container I get the following in logs:

tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:369] FileSystemStoragePathSource encountered a file-system access error: Could not find base path hdfs://tensorflow/models/my_model for servable my_model

troynt avatar Aug 28 '18 10:08 troynt

Please go to Stack Overflow for help and support(seems that you already raised a question there):

https://stackoverflow.com/questions/tagged/tensorflow-serving

If you open a GitHub issue, it must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).

Thanks!

nrobeR avatar Aug 30 '18 20:08 nrobeR

The author of the commit had this to say in #415

image

I recommend having the feature tested at least once by someone other than the author.

troynt avatar Sep 03 '18 07:09 troynt