[[email protected] conf]# Hadoop fs-ls/ls and Linux commands almost
Warning: $HADOOP _home is deprecated.
Found 1 Items
Drwxr-xr-x-root supergroup 0 2016-07-05 15:55/user
[Email protected] conf]#
[[email protected] conf]# Hadoop fs-mkdir/user/root/zby Create a directory and Linux command almost
Warning: $HADOOP _home is deprecated.
[Email protected] conf]# Hadoop fs-ls/user/root/
Warning: $HADOOP _home is deprecated.
Found 4 Items
-rw-r--r--1 root supergroup 2052 2016-07-05 16:01/user/root/hadoop-metrics2.properties
-rw-r--r--1 root supergroup 2460 2016-07-05 15:55/user/root/input
Drwxr-xr-x-root supergroup 0 2016-07-05 15:57/user/root/input1
Drwxr-xr-x-root supergroup 0 2016-07-05 16:13/user/root/zby
[Email protected] conf]#
[[email protected] conf] hadoop fs-put hadoop-env.sh/user/root/upload files to the specified directory
Warning: $HADOOP _home is deprecated.
[Email protected] conf]#
[[email protected] conf]# Hadoop fs-cat/user/root/hadoop-env.sh view uploaded files
Warning: $HADOOP _home is deprecated.
# Set hadoop-specific Environment variables here.
# The only required environment variable is java_home. All others is
# Optional. When running a distributed configuration it's best
# set Java_home in the this file, so it's correctly defined on
[[email protected] conf]# hadoop fs-get/user/root/hadoop-env.sh hadoop-env.sh2 Download the specified file
Warning: $HADOOP _home is deprecated.
[[email protected] conf]# ls hadoop-env.sh2 view downloaded files
Hadoop-env.sh2
[Email protected] conf]#
HDFs command for Hadoop