[
https://issues.apache.org/jira/browse/HADOOP-12498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14967291#comment-14967291
]
Allen Wittenauer commented on HADOOP-12498:
-------------------------------------------
bq. but the folder is only "input", instead it should be
"/user/<username>/input".
{code}
$ bin/hdfs dfs -put etc/hadoop input
{code}
is the same thing as
{code}
$ bin/hdfs dfs -put etc/hadoop /user/<username>/input
{code}
So unless the example requires input to be a directory, these are equivalent
statements. I do think the documentation should be cleaned up to point out
absolute vs. relative paths here though.
The other thing is that this should really be using 'hadoop fs' instead of
'hdfs dfs' so that it works on non-HDFS-based file systems.
> Correct CL commands for the Pseudo-Distributed Operation setup
> --------------------------------------------------------------
>
> Key: HADOOP-12498
> URL: https://issues.apache.org/jira/browse/HADOOP-12498
> Project: Hadoop Common
> Issue Type: Bug
> Components: site
> Affects Versions: 2.7.1
> Reporter: Jonathan Hasenburg
> Priority: Minor
> Labels: documentation, easyfix
>
> The Setup
> [Guide|https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html#Fully-Distributed_Operation]
> for Hadoop 2.7.1 to run in Pseudo-Distributed Operation mode has
> inconsistent CL commands .
> In step 4., a directory is created ("/user/<username>") in which all further
> files are going to be stored.
> Step 5 is used to put files into the hdfs, but the folder is only "input",
> instead it should be "/user/<username>/input".
> The same applies for step 6 and 7.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)