Skip to content

Instantly share code, notes, and snippets.

@ragingbal
Created June 22, 2020 11:14
Show Gist options
  • Save ragingbal/3bee5337dbd30eb88d5547f9f1c63397 to your computer and use it in GitHub Desktop.
Save ragingbal/3bee5337dbd30eb88d5547f9f1c63397 to your computer and use it in GitHub Desktop.
from hdfs import Config
client = Config().get_client('dev')
fnames = client.list('/')
print(fnames)
client.upload(hdfs_path='/data/download.csv', local_path='download.csv', n_threads=1, temp_dir=None, chunk_size=65536, progress=None, cleanup=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment