I am running the Sentiment example here for tensorflow transform. https://github.com/tensorflow/transform/blob/master/examples/sentiment_example.py
For fn ReadAndShuffleData() defined in line 78-98, is it possible that in a similar way I can load files but from HDFS, not GCS?
I have tried a whole day with several beam API (beams-2.8.0) but failed, and the most promising one I think is using beams.io.hadoopfilesystem. But this fn actually produces a python file-object and cannot be read in using beams.io.ReadFromText() in a beam pipeline.
I also passed in HadoopFileSystemPipelineOptions correctly. Anyone can show me a direction to solve the issue or a 2/3-line code snippets or a workaround? Thank you very much!
p.s. hadoop 2.7.7, beams 2.8 and data is loaded correctly.
I think I may lack some theoretical understandings here, any references will be appreciated!