What are some common HDFS commands that can be mapped in the bash files?
问题 I am relatively new to Hadoop and I have been using HDFS CLI a lot. Commands like hdfs dfs -ls are becoming redundant to type. Is it possible to create an alias to this command (i.e., h -ls ) in either the .bashrc or .bash_profile files? Are there any other useful commands that I can map here? 回答1: The good practice is to put aliases in .bash_aliases . For your problem, I'd put alias h="hdfs dfs" in my .bash_aliases file (create it if it doesn't exist) Most distribs will already have this in