hadoop的hdfs命令-成都快上网建站

hadoop的hdfs命令

[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   创建一个目录和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]# 


网站题目:hadoop的hdfs命令
本文链接:http://kswjz.com/article/ispsdd.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流