Created
July 4, 2017 10:58
-
-
Save urigoren/4fa8ab18a742a79a3d99f48983498c0a to your computer and use it in GitHub Desktop.
Run vim on hadoop files
This file contains 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
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