Created
June 13, 2025 23:18
-
-
Save wmonteiro-ai/d0707210d0045e80631d21aaff65d948 to your computer and use it in GitHub Desktop.
Uploading files to HDFS through PyArrow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # criar arquivos | |
| conexao.create_dir('/SEUNOME.SOBRENOME') | |
| caminho_arquivo_origem = '/home/jovyan/work/sentiment140.csv' | |
| caminho_arquivo_destino = '/SEUNOME.SOBRENOME/sentiment140.csv' | |
| # Copy the file | |
| fs.copy_files(caminho_arquivo_origem, caminho_arquivo_destino, destination_filesystem=conexao) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment