Skip to content

Commit

Permalink
add init command in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ruitianzhong committed May 31, 2024
1 parent c777a2e commit 9f352fc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion map-reduce/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,16 @@ Set the key class for the job output data.

### Using Hadoop Distributed File System

initialization:

```shell
bin/hdfs namenode -format
sbin/start-dfs.sh
```

```shell
hadoop fs -mkdir /home/{your user name on Linux}
hadoop fs -mkdir /user
hadoop fs -mkdir /user/{your user name on Linux}
hadoop fs -mkdir test_data
hadoop fs -put ./data/grades.txt test_data
hadoop fs -put ./data/child-parent.txt test_data
Expand Down

0 comments on commit 9f352fc

Please sign in to comment.