Stupid Shell Tricks with Apache Accumulo
-
Upload
cloudera-inc -
Category
Software
-
view
999 -
download
5
Transcript of Stupid Shell Tricks with Apache Accumulo
![Page 2: Stupid Shell Tricks with Apache Accumulo](https://reader031.fdocument.pub/reader031/viewer/2022020106/55d49911bb61eb9d698b46c2/html5/thumbnails/2.jpg)
About Mike
2
• Dev at Cloudera (~ 6 months)
• Accumulo Committer (~ 1 year)
• LEGO® Engineer (~ 20 years)
http://upload.wikimedia.org/wikipedia/commons/0/00/LEGO_Minifigure_skating_through_town.jpg
![Page 3: Stupid Shell Tricks with Apache Accumulo](https://reader031.fdocument.pub/reader031/viewer/2022020106/55d49911bb61eb9d698b46c2/html5/thumbnails/3.jpg)
Survey
3
• Who knows…
• Who this guy is?
• That 1.6.0 is released!
• Who has…
• Used Accumulo?
• Used the Shell?
http://en.wikipedia.org/wiki/File:Concentration_Hugh_Downs_1961.JPG
![Page 4: Stupid Shell Tricks with Apache Accumulo](https://reader031.fdocument.pub/reader031/viewer/2022020106/55d49911bb61eb9d698b46c2/html5/thumbnails/4.jpg)
4
http://en.wikipedia.org/wiki/File:Bubalus_mindorensis_by_Gregg_Yan_01.jpg
![Page 5: Stupid Shell Tricks with Apache Accumulo](https://reader031.fdocument.pub/reader031/viewer/2022020106/55d49911bb61eb9d698b46c2/html5/thumbnails/5.jpg)
New Shell Features
5
• Password Indirection
• Command Interruption
• History Search/Expansion
• Provide Extensions
http://www.flickr.com/photos/cygnus921/2581020296/
![Page 6: Stupid Shell Tricks with Apache Accumulo](https://reader031.fdocument.pub/reader031/viewer/2022020106/55d49911bb61eb9d698b46c2/html5/thumbnails/6.jpg)
Password Indirection
6
• Providing password on command line is BAD
• …but typing long passwords is hard.
• Exposed to ps and other tools
• Solution: provide alternate sources
• File on disk
• Environment Variable
• Custom Tokens
![Page 7: Stupid Shell Tricks with Apache Accumulo](https://reader031.fdocument.pub/reader031/viewer/2022020106/55d49911bb61eb9d698b46c2/html5/thumbnails/7.jpg)
Command Interruption
7
• Long running commands are a pain.
• Ctrl-C used to kill the whole shell…
• Now it just kills the current command!
https://www.flickr.com/photos/smaedli/3271558744/
![Page 8: Stupid Shell Tricks with Apache Accumulo](https://reader031.fdocument.pub/reader031/viewer/2022020106/55d49911bb61eb9d698b46c2/html5/thumbnails/8.jpg)
History Search/Expansion
8
• Many bash-similarities
• Ctrl-R to search history
• Use ! To expand commands
http://en.wikipedia.org/wiki/File:Trilobite_Ordovicien_8127.jpg
![Page 9: Stupid Shell Tricks with Apache Accumulo](https://reader031.fdocument.pub/reader031/viewer/2022020106/55d49911bb61eb9d698b46c2/html5/thumbnails/9.jpg)
9
![Page 10: Stupid Shell Tricks with Apache Accumulo](https://reader031.fdocument.pub/reader031/viewer/2022020106/55d49911bb61eb9d698b46c2/html5/thumbnails/10.jpg)
10
Thank You! Mike Drob, Cloudera
@mikhaildrob
(p.s. we’re hiring)