Friday, December 27, 2013

hadoop shell commands auto-completion

For many users including myself, one of the nice features of BASH is its tab completion, which saves us so much typing. So, when I switched to the Hadoop Shell, it feels so inconvenient since there are many commands and options to remember.

Then I searched around and found one hadoop completion script from Facebook hadoop-20 github repo, but the script does not work for my hadoop installed using Homebrew.

So, I modified it to make it work. You can try it out from my hadoop-completion repo on github. All the installation instructions are there:

https://github.com/guozheng/hadoop-completion

BTW, Bash-Completion includes a collection of similar auto-completion scripts, highly recommend to use it. You will find your life with git cli, ssh, etc. much easier.


References:

- Programmable Bash Completion Buildins (for compgen and complete commands)

- Write your own Bash Completion Function (how to write a customized Bash completion script)

- Get Bash Completion for Mac OS X (a set of built-in scripts for commonly used tools, svn, make, gzip, ssh, git, etc., note that you will need to install git CLI using Homebrew to install the git completion scripts)

83 comments:


  1. Its really helpful for me to understand where we i lost in my previous interview. Thanks.
    If anyone wants to Learn Hadoop in Chennai go to the Besant Technologies which is No.1 Training Institute in Chennai.

    http://www.hadooptrainingchennai.co.in

    ReplyDelete
  2. Thank you so much for sharing this great information. Today I stand as a successful hadoop certified professional. Thanks to Hadoop Training Chennai

    ReplyDelete
  3. Nice article i was really impressed by seeing this article, it was very interesting and it is very useful for me.. AWS Training in chennai | AWS Training chennai | AWS course in chennai

    ReplyDelete
  4. This is extremely helpful info!! Very good work. Everything is very interesting to learn and easy to understood. Thank you for giving information. Vmware training chennai | Vmware course in chennai | Vmware course chennai

    ReplyDelete
  5. Actually, you have explained the technology to the fullest. Thanks for sharing the information you have got. It helped me a lot. I experimented your thoughts in my training program.

    Best hadoop training institute in chennai
    Hadoop Course in Chennai
    Hadoop training institutes in chennai

    ReplyDelete
  6. Thank you for sharing such a usefull information on your blog, I am inspired with your post writing style & how continuously you describe this topic.

    Hadoop Online Training | Qlikview Online Training | Tableau Online Training | SAS Online Training | Android Online Training | Business Analyst Online Training

    ReplyDelete
  7. useful blog to everyone.. Commands explanation are very clear so easy and interesting to read.. thank you for sharing this blog

    big data training in chennai adyar | hadoop online training institute in chennai | big data online training institute in chennai

    ReplyDelete
  8. After reading this blog i very strong in this topics and this blog really helpful to all... explanation are very clear so very easy to understand... thanks a lot for sharing this blog

    hadoop training institute in adyar | big data training institute in adyar

    ReplyDelete
  9. Thanks so much for this information. I have to let you know I concur on several of the points you make here and others may require some further review, but I can see your viewpoint.
    vmware training uk

    ReplyDelete
  10. We strive to provide our candidates with excellent care and we take your comments to heart.As always, we appreciate your confidence and trust in us.Java Training in Chennai
    Java Training with Placement in Chennai
    Java Training in Velachery

    ReplyDelete
  11. Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.
    Best Hadoop Training Institute In chennai

    amazon-web-services-training-institute-in-chennai

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. Thanks for posting such a great article.you done a great job
    selenium Online Training Bangalore

    ReplyDelete
  14. Thanks for this blog. Really enjoyed reading it. python training in Chennai

    ReplyDelete
  15. Really you have done great job,There are may person searching about that now they will find enough resources by your post
    AWS training in Chennai
    selenium training in Chennai

    ReplyDelete
  16. I appreciate that you produced this wonderful article to help us get more knowledge about this topic. I know, it is not an easy task to write such a big article in one day, I've tried that and I've failed. But, here you are, trying the big task and finishing it off and getting good comments and ratings. That is one hell of a job done!
    java training in chennai | java training in bangalore

    java training in tambaram | java training in velachery

    java training in omr

    ReplyDelete
  17. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.
    python training in chennai
    python training in Bangalore
    Python training institute in chennai

    ReplyDelete
  18. At this time, it seems like Word Press is the preferred blogging platform available right now. (from what I’ve read) Is that what you’re using on your blog? Great post, however, I was wondering if you could write a little more on this subject?
    industrial course in chennai

    ReplyDelete
  19. Wonderful blog!!! Thanks for your information… Waiting for your upcoming data.

    Education
    Technology

    ReplyDelete
  20. feeling so good to read your information's in the blog.
    thanks for sharing your ideas with us and add more info.
    devops Training in Nolambur
    devops Training in Perambur
    devops Training in Mogappair
    devops Training in Thirumangalam

    ReplyDelete
  21. Thanks for sharing an informative blog keep rocking bring more details.I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite sure I will learn much new stuff right here! Good luck for the next!
    web designing classes in chennai | web designing training institute in chennai
    web designing and development course in chennai | web designing courses in Chennai
    best institute for web designing in chennai | web designing course with placement in chennai
    Web Designing Class

    ReplyDelete
  22. Thanks for sharing an informative blog keep rocking bring more details.I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite sure I will learn much new stuff right here! Good luck for the next!
    mobile application development course | mobile app development training | mobile application development training online
    "web designing classes in chennai | Web Designing courses in Chennai "
    Web Designing Training and Placement | Best Institute for Web Designing

    ReplyDelete
  23. I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite sure I will learn much new stuff right here! Good luck for the next!
    Google ads services

    ReplyDelete
  24. I am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing.

    Learn SAP from the Industry Experts we bridge the gap between the need of the industry. eTechno Soft Solutions provide the Best IT Training in Bangalore .

    ReplyDelete
  25. Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!

    Digital marketing course

    ReplyDelete
  26. Study Machine Learning Course Bangalore with ExcelR where you get a great experience and better knowledge.
     Machine Learning Course Bangalore

    ReplyDelete
  27. Study Artificial Intelligence Course with ExcelR where you get a great experience and better knowledge.
     Artificial Intelligence Course

    ReplyDelete
  28. Study Machine learning course bangalore with ExcelR where you get a great experience and better knowledge. Machine learning course bangalore

    ReplyDelete
  29. By reading this article, many things have piled up in my mind which made me to think about it. You have put some high quality and valuable information here that any reader would love to read. I sincerely share many of your views in this article.
    SAP training in Kolkata
    SAP course in kolkata

    ReplyDelete
  30. Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people..
    Digital Marketing Courses in Hyderabad With Placements

    ReplyDelete
  31. I am sure that this is going to help a lot of individuals. Keep up the good work. It is highly convincing and I enjoyed going through the entire blog.
    Best Institute for Data Science in Hyderabad

    ReplyDelete
  32. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.
    data scientist training and placement

    ReplyDelete
  33. Excellent effort to make this blog more wonderful and attractive.
    data science course in malaysia

    ReplyDelete
  34. I'm genuinely getting a charge out of scrutinizing your richly formed articles. Apparently you consume a huge load of energy and time on your blog. I have bookmarked it and I am expecting scrutinizing new articles. Continue to do amazing.cloud computing course in delhi

    ReplyDelete
  35. I curious more interest in some of them hope you will give more information on this topics in your next articles.
    data science course

    ReplyDelete
  36. This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post.
    data science course

    ReplyDelete
  37. Glad to chat your blog, I seem to be forward to more reliable articles and I think we all wish to thank so many good articles, blog to share with us.
    data science course

    ReplyDelete
  38. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. data science course in delhi with placement

    ReplyDelete
  39. Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post.
    data science training in malaysia

    ReplyDelete
  40. Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site. data science course in mysore

    ReplyDelete
  41. Pleasant data, important and incredible structure, as offer great stuff with smart thoughts and ideas, loads of extraordinary data and motivation, the two of which I need, because of offer such an accommodating data here.
    data analytics training in hyderabad

    ReplyDelete
  42. Amazingly by and large very interesting post. I was looking for such an information and thoroughly enjoyed examining this one. Keep posting.
    An obligation of appreciation is all together for sharing.data analytics course in gwalior

    ReplyDelete
  43. I have read your excellent post. This is a great job. I enjoyed reading your post for the first time. I want to say thanks for this post. Thank you...
    data science training in hyderabad

    ReplyDelete

  44. I finally found great post here.I will get back here. I just added your blog to my bookmark sites. thanks.Quality posts is the crucial to invite the visitors to visit the web page, that's what this web page is providing.data science course in rohtak

    ReplyDelete
  45. Imagenomic Portraiture enables us to accomplish excellence in portrait retouching by removing the arduous labour of choosing masking and pixel-by-pixel treatments.. Portraiture Plugin For Photoshop CC Crack

    ReplyDelete
  46. I comprehend this is one of the main course for me. Moreover, I'm energetic focusing on your article. at any rate need to publication upon a couple of standard matters, the web page style is unmodified; the articles are safe. much gratitude to you for the enormous measure of genuine and appropriate unequivocal. Birthday Wishes Girl Baby

    ReplyDelete
  47. This comment has been removed by the author.

    ReplyDelete