Last active
January 22, 2019 23:24
-
-
Save dgadiraju/4106878cc251185d1ab320fa53be4b7a to your computer and use it in GitHub Desktop.
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 key create mykey1 | |
hadoop fs -mkdir /tmp/zone1 |
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
sudo su - hdfs | |
hdfs crypto -createZone -keyName mykey1 -path /tmp/zone1 | |
exit |
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
# Make sure to be KEY_ADMIN_USER, itversity in our case | |
echo "Hello World" > /tmp/helloWorld.txt | |
hadoop fs -put /tmp/helloWorld.txt /tmp/zone1 | |
hadoop fs -cat /tmp/zone1/helloWorld.txt | |
rm /tmp/helloWorld.txt |
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
sudo su - hdfs | |
hadoop fs -cat /.reserved/raw/tmp/zone1/helloWorld.txt | |
hadoop fs -rm -R /tmp/zone1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment