Skip to content

Instantly share code, notes, and snippets.

@urigoren
Created July 4, 2017 10:58
Show Gist options
  • Save urigoren/4fa8ab18a742a79a3d99f48983498c0a to your computer and use it in GitHub Desktop.
Save urigoren/4fa8ab18a742a79a3d99f48983498c0a to your computer and use it in GitHub Desktop.
Run vim on hadoop files
hadoop fs -text $1>hvim.txt
vim hvim.txt
hadoop fs -rm -skipTrash $1
hadoop fs -copyFromLocal hvim.txt $1
rm hvim.txt
hadoop fs -chmod 777 $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment