[
https://issues.apache.org/jira/browse/HDFS-6628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14052917#comment-14052917
]
Allen Wittenauer commented on HDFS-6628:
----------------------------------------
Years ago, 'hadoop fs' and 'hadoop dfs' shell commands were deprecated (and
throw a warning to the user!) in favor of using the 'hdfs dfs' command. Doing
a simple grep revealed that the following documents still refer to 'hadoop fs'.
Instead, they should use be using 'hdfs dfs':
hadoop-hdfs-project aw$ grep -r 'hadoop fs' .
./hadoop-hdfs/src/main/java/overview.html:<p><tt>bin/hadoop fs -put input
input</tt></p>
./hadoop-hdfs/src/main/java/overview.html:bin/hadoop fs -get output output
./hadoop-hdfs/src/site/apt/ExtendedAttributes.apt.vm: The Hadoop shell has
support for interacting with extended attributes via <<<hadoop fs -getfattr>>>
and <<<hadoop fs -setfattr>>>. These commands are styled after the Linux
{{{http://www.bestbits.at/acl/man/man1/getfattr.txt}getfattr(1)}} and
{{{http://www.bestbits.at/acl/man/man1/setfattr.txt}setfattr(1)}} commands.
./hadoop-hdfs/src/site/apt/ExtendedAttributes.apt.vm: <<<hadoop fs -getfattr
[-R] {-n name | -d} [-e en] <path>>>>
./hadoop-hdfs/src/site/apt/ExtendedAttributes.apt.vm: <<<hadoop fs -setfattr
{-n name [-v value] | -x name} <path>>>>
./hadoop-hdfs/src/site/apt/HdfsUserGuide.apt.vm: <<<bin/hadoop fsck>>>. For
command usage, see
./hadoop-hdfs/src/site/apt/LibHdfs.apt.vm: The libhdfs APIs are a subset of:
{{{hadoop fs APIs}}}.
./hadoop-hdfs-httpfs/src/site/apt/index.apt.vm: using the Hadoop filesystem
command (<<<hadoop fs>>>) line tool as well as
There may be more.
> Various documents still refer to 'hadoop fs'
> ---------------------------------------------
>
> Key: HDFS-6628
> URL: https://issues.apache.org/jira/browse/HDFS-6628
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: documentation
> Affects Versions: 3.0.0
> Reporter: Allen Wittenauer
> Priority: Trivial
> Labels: newbie
>
> Various HDFS documents refer to 'hadoop fs' even though this throws a
> deprecated warning when you actually use it.
--
This message was sent by Atlassian JIRA
(v6.2#6252)