[ https://issues.apache.org/jira/browse/HADOOP-6541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016611#comment-13016611 ]
Todd Lipcon commented on HADOOP-6541: ------------------------------------- Here are some comments from the user perspective (didn't look at code yet) - should have some kind of help command - either "help", or "?" - I think "hadoop fs -shell" makes more sense than "hadoop shell", since this is specifically for interacting with filesystems - The following command threw a RuntimeException and exited: {code} hadoop> cd hdfs://monster01.sf.cloudera.com:8020 org.apache.hadoop.HadoopIllegalArgumentException: Unsupported name: has scheme but relative path-part at org.apache.hadoop.fs.FileContext.checkNotSchemeWithRelative(FileContext.java:264) at org.apache.hadoop.fs.FileContext.setWorkingDirectory(FileContext.java:458) at org.apache.hadoop.shell.CmdShell.cd(CmdShell.java:446) at org.apache.hadoop.shell.CmdShell.interpretCmd(CmdShell.java:693) {code} - IOExceptions shouldn't include their full backtrace unless we're in debug mode. EG "rmr asdfasdf" currently shows the full stack trace instead of just the simple error message. - "cd" without a path goes to the home directory, which seems right. But, if the home directory doesn't exist, it seems to go to "/" which is unexpected behavior. I would expect a FileNotFoundException - "chmod", "chown" and "chgrp", "count", and "du" don't seem to be found - every command I type, it seems to echo the command back to me Future enhancements to do as some other JIRA: - "lcd", "lpwd" would be useful. - a "head" command would be very useful - "cd -" like in bash would be cool - showing the cwd in the prompt would be handy - tab completion would be handy > An Interactive Hadoop FS shell > ------------------------------ > > Key: HADOOP-6541 > URL: https://issues.apache.org/jira/browse/HADOOP-6541 > Project: Hadoop Common > Issue Type: New Feature > Reporter: Aaron Kimball > Assignee: Aaron Kimball > Attachments: HADOOP-6541.2.patch, HADOOP-6541.3.patch, > HADOOP-6541.4.patch, HADOOP-6541.5.patch, HADOOP-6541.6.patch, > HADOOP-6541.patch > > > A shell that allows the user to execute multiple filesystem operations in a > single JVM instance at a prompt. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira