hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-4801) lsSnapshottableDir throws IllegalArgumentException when root is made snapshottable
Date Mon, 06 May 2013 22:50:19 GMT

     [ https://issues.apache.org/jira/browse/HDFS-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tsz Wo (Nicholas), SZE resolved HDFS-4801.
------------------------------------------

    Resolution: Fixed

I have committed this.  Thanks Jing!
                
> lsSnapshottableDir throws IllegalArgumentException when root is made snapshottable
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-4801
>                 URL: https://issues.apache.org/jira/browse/HDFS-4801
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>            Reporter: Ramya Sunil
>            Assignee: Jing Zhao
>            Priority: Minor
>             Fix For: Snapshot (HDFS-2802)
>
>         Attachments: HDFS-4801.001.patch
>
>
> $ hadoop dfsadmin -allowSnapshot /
> Allowing snaphot on / succeeded
> $ hadoop lsSnapshottableDir
> Exception in thread "main" java.lang.IllegalArgumentException: Can not create a Path
from an empty string
>         at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
>         at org.apache.hadoop.fs.Path.<init>(Path.java:90)
>         at org.apache.hadoop.fs.Path.<init>(Path.java:45)
>         at org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus.getFullPath(SnapshottableDirectoryStatus.java:125)
>         at org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus.print(SnapshottableDirectoryStatus.java:166)
>         at org.apache.hadoop.hdfs.tools.snapshot.LsSnapshottableDir.main(LsSnapshottableDir.java:55)
> Whereas,
> $ hadoop dfsadmin -disallowSnapshot /
> Disallowing snaphot on / succeeded
> $ hadoop lsSnapshottableDir
> $

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message