Bug 765095 (GLUSTER-3363) - Can not use wild card such as * in hadoop shell
Summary: Can not use wild card such as * in hadoop shell
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-3363
Product: GlusterFS
Classification: Community
Component: HDFS
Version: pre-release
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Venky Shankar
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-08 13:01 UTC by M S Vishwanath Bhat
Modified: 2016-06-01 01:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description M S Vishwanath Bhat 2011-08-08 13:01:50 UTC
with glusterfs jars loaded, I can't use wild cards such as '*' or '+' in hadoop shell. But with HDFS it is possible.

Comment 1 M S Vishwanath Bhat 2011-08-10 16:20:17 UTC
I get the following error when I run the hadoop shell commands using wild cards.

root@ubuntu1:/home/hadoop/hadoop-0.20.2# ./bin/hadoop fs -lsr in*
Initializing GlusterFS
lsr: String index out of range: -1

Comment 2 Venky Shankar 2011-08-16 03:29:33 UTC
Du,

please take a look at this when you get time. Wildcards work with -ls;-mv but not with -lsr (recursive listing) or may be other recursive commands.

You may need to peek into these routines in GlusterFileSystem.java:

getFileStatus()
listStatus()
listPaths()

Comment 3 Amar Tumballi 2011-09-28 03:59:33 UTC
Venky, let it be assigned to you. Currently RaghavendraG is busy with other components. Lets discuss on it later.

Comment 4 Venky Shankar 2011-09-29 08:31:42 UTC
I will check in the fix in my repo. You can pull it once mountbroker fixes are in too.


Note You need to log in before you can comment on or make changes to this bug.