溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

hadoop的hdfs命令

發(fā)布時間:2020-07-22 07:41:12 來源:網絡 閱讀:383 作者:蛐蛐的熱情 欄目:大數(shù)據(jù)

[root@ldy conf]# hadoop fs -ls /     ls和linux命令差不多

Warning: $HADOOP_HOME is deprecated.


Found 1 items

drwxr-xr-x   - root supergroup          0 2016-07-05 15:55 /user

[root@ldy conf]# 


[root@ldy conf]# hadoop fs -mkdir /user/root/zby   創(chuàng)建一個目錄和linux命令差不多

Warning: $HADOOP_HOME is deprecated.


[root@ldy 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

[root@ldy conf]# 



[root@ldy conf]hadoop fs -put hadoop-env.sh /user/root/   把文件上傳到指定目錄

Warning: $HADOOP_HOME is deprecated.


[root@ldy conf]# 


[root@ldy conf]# hadoop fs -cat /user/root/hadoop-env.sh    查看上傳的文件

Warning: $HADOOP_HOME is deprecated.


# Set Hadoop-specific environment variables here.


# The only required environment variable is JAVA_HOME.  All others are

# optional.  When running a distributed configuration it is best to

# set JAVA_HOME in this file, so that it is correctly defined on



[root@ldy conf]# hadoop fs -get /user/root/hadoop-env.sh hadoop-env.sh3 下載指定文件

Warning: $HADOOP_HOME is deprecated.


[root@ldy conf]# ls hadoop-env.sh3  查看下載下來的文件

hadoop-env.sh3

[root@ldy conf]# 


向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經查實,將立刻刪除涉嫌侵權內容。

AI