Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdfs.cp hangs #353

Closed
pravinkarnam opened this issue Mar 21, 2019 · 0 comments
Closed

hdfs.cp hangs #353

pravinkarnam opened this issue Mar 21, 2019 · 0 comments

Comments

@pravinkarnam
Copy link

pravinkarnam commented Mar 21, 2019

Hi, I have a simple code which copies from one path to another path:

import os
if 'HADOOP_HOME' not in os.environ:
        os.environ['HADOOP_HOME'] = '/opt/cloudera/parcels/CDH/lib/hadoop'

from pydoop import hdfs

src_path= '/from/path'
dest_path ='/to/path'
hdfs.cp(src_path, dest_path)

This code hangs though i see that it actually copies the files/directories in to destination (I checked using hdfs dfs -ls /to/path/.

Not sure if it has to be written in different way to handle some file closures? If yes, please suggest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant