You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2008/03/24 17:55:24 UTC
[jira] Commented: (HADOOP-3079) Regular expressions does not work
properly in dfs commands like bin/hadoop fs -ls
[ https://issues.apache.org/jira/browse/HADOOP-3079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581602#action_12581602 ]
Doug Cutting commented on HADOOP-3079:
--------------------------------------
You need to escape the '*' so that the shell does not expand it first.
> Regular expressions does not work properly in dfs commands like bin/hadoop fs -ls
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-3079
> URL: https://issues.apache.org/jira/browse/HADOOP-3079
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.16.0
> Reporter: Amareshwari Sriramadasu
>
> When i do
> $ hadoop fs -ls s*
> ls: Cannot access src: No such file or directory.
> It picks up the directory src in local file system.
> but when i do,
> $ hadoop fs -ls sc*
> /user/amarsri/scr <r 3> 20 2008-03-18 12:22 rw-rw-rw- amarsri group
> /user/amarsri/scripts/my.pl <r 3> 146 2008-03-24 14:39 rw-rw-rw- amarsri supergroup
> /user/amarsri/scripts/xyz.pl <r 3> 146 2008-03-24 14:39 rw-rw-rw- amarsri supergroup
> It lists the directories properly.
> "$ hadoop fs -ls s*" used to work well earlier.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.