Bug 765092 (GLUSTER-3360) - can not 'mv' a file to a directory using hadoop shell
Summary: can not 'mv' a file to a directory using hadoop shell
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-3360
Product: GlusterFS
Classification: Community
Component: HDFS
Version: pre-release
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
Assignee: Venky Shankar
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-08 12:11 UTC by M S Vishwanath Bhat
Modified: 2016-06-01 01:55 UTC (History)
2 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 12:11:57 UTC
With the glusterfs I can't 'mv' won't except a directory as destination. It always expects the destination to be a file. This command succeeds in hadoop shell with HDFS.

Comment 1 Venky Shankar 2011-08-10 05:52:45 UTC
fixed in my glusterfs github fork. git pull it to test

Comment 2 M S Vishwanath Bhat 2011-08-23 07:04:02 UTC
This is fixed now. Now I can mv the file/directory into another directory.

root@ubuntu1:/home/hadoop/hadoop-0.20.2# ./bin/hadoop fs -lsr
Initializing GlusterFS
drwxrwxrwx   -          0 2011-08-23 02:59 /mnt/glusterfs/input
-rwxrwxrwx   0     544778 2011-08-23 02:59 /mnt/glusterfs/input/mytextfile
drwxrwxrwx   -          0 2011-08-23 02:52 /mnt/glusterfs/tmp
drwxrwxrwx   -          0 2011-08-23 02:52 /mnt/glusterfs/tmp/hadoop-root
drwxrwxrwx   -          0 2011-08-23 02:52 /mnt/glusterfs/tmp/hadoop-root/mapred
drwxrwxrwx   -          0 2011-08-23 02:52 /mnt/glusterfs/tmp/hadoop-root/mapred/system
-rwxrwxrwx   0          4 2011-08-23 02:52 /mnt/glusterfs/tmp/hadoop-root/mapred/system/jobtracker.info
root@ubuntu1:/home/hadoop/hadoop-0.20.2# ./bin/hadoop fs -mkdir in
Initializing GlusterFS
root@ubuntu1:/home/hadoop/hadoop-0.20.2# ./bin/hadoop fs -mv input in
Initializing GlusterFS
root@ubuntu1:/home/hadoop/hadoop-0.20.2# ./bin/hadoop fs -lsr
Initializing GlusterFS
drwxrwxrwx   -          0 2011-08-23 02:52 /mnt/glusterfs/tmp
drwxrwxrwx   -          0 2011-08-23 02:52 /mnt/glusterfs/tmp/hadoop-root
drwxrwxrwx   -          0 2011-08-23 02:52 /mnt/glusterfs/tmp/hadoop-root/mapred
drwxrwxrwx   -          0 2011-08-23 02:52 /mnt/glusterfs/tmp/hadoop-root/mapred/system
-rwxrwxrwx   0          4 2011-08-23 02:52 /mnt/glusterfs/tmp/hadoop-root/mapred/system/jobtracker.info
drwxrwxrwx   -          0 2011-08-23 03:02 /mnt/glusterfs/in
drwxrwxrwx   -          0 2011-08-23 02:59 /mnt/glusterfs/in/input
-rwxrwxrwx   0     544778 2011-08-23 02:59 /mnt/glusterfs/in/input/mytextfile


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