hadoop的hdfs命令

发布时间:2020-07-22 07:41:12 作者:蛐蛐的热情
来源:网络 阅读:384

[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]# 


推荐阅读:
  1. HDFS命令及管理HDFS
  2. hadoop高可用集群 hdfs命令

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

命令 hadoop hdf

上一篇:boost read_some函数历程

下一篇:【翻译】在Ext JS集成第三方库

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》