Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 27673 invoked from network); 6 Apr 2011 23:38:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Apr 2011 23:38:45 -0000 Received: (qmail 40493 invoked by uid 500); 6 Apr 2011 23:38:45 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 40418 invoked by uid 500); 6 Apr 2011 23:38:45 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 40410 invoked by uid 99); 6 Apr 2011 23:38:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 23:38:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 23:38:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BD55095BA8 for ; Wed, 6 Apr 2011 23:38:05 +0000 (UTC) Date: Wed, 6 Apr 2011 23:38:05 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <725482569.39314.1302133085772.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-6541) An Interactive Hadoop FS shell MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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