Skip to content

It seems that tf.gfile.Copy can not support larget hdfs file #12630

Closed

Description

@ericyue

It seems that when using tf.gfile.Copy("hdfs://default/some_hdfs_file","./test"), if some_hdfs_file are large file such as 11GB in my case, it will report Exception. Change to a 3GB file works fine.

I'm using the latest version of tensorflow.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/x/anaconda2/lib/python2.7/site-packages/tensorflow/python/lib/io/file_io.py", line 384, in copy
    compat.as_bytes(oldpath), compat.as_bytes(newpath), overwrite, status)
  File "/home/x/anaconda2/lib/python2.7/contextlib.py", line 24, in __exit__
    self.gen.next()
  File "/home/x/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
    pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: hdfs://default/tmp/x/x/dmcluster_predict_data_v3/20170817/023645/part-00000

Activity

  1. quaeler commented on Aug 27, 2017

    @quaeler
    Contributor

    Seems incredibly unlikely since it looks like you're on a unix-variant, but just to cover all bases: "./test" in this example wouldn't be on a FAT32 volume, would it?

  2. ericyue commented on Aug 27, 2017

    @ericyue
    Author

    @quaeler it's not fat32 volume. I can download the file using "hadoop fs -get " but can not using tf.gfile.Copy. I'm not sure if the limitation is 4GB, I will test it later by using a 4GB file.

  3. quaeler commented on Aug 27, 2017

    @quaeler
    Contributor
  4. alive-zk commented on Aug 28, 2017

    @alive-zk

    Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version. Also, did you compile from source or install a binary? Make sure you also include the exact command if possible to produce the output included in your test case. If you are unclear what to include see the issue template displayed in the Github new issue template.

    We ask for this in the issue submission template, because it is really difficult to help without that information. Thanks!

  5. added
    stat:awaiting response
    type:support
    on Aug 28, 2017
  6. tensorflowbutler commented on Dec 1, 2017

    @tensorflowbutler
    Member

    This issue is automatically closed due to lack of activity. Please re-open if this is still an issue for you. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stat:awaiting responsetype:support

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions