Bug 765095 (GLUSTER-3363)

Summary: Can not use wild card such as * in hadoop shell
Product: [Community] GlusterFS Reporter: M S Vishwanath Bhat <vbhat>
Component: HDFSAssignee: Venky Shankar <vshankar>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: pre-releaseCC: amarts, gluster-bugs, mzywusko
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.