![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hadoop
文章平均质量分 72
u010515155
快乐的生活,健康的写代码。
展开
-
hadoop常用命令实例
1、查看指定目录下内容:hadoop fs –ls [文件目录] [root@cdh01 tmp]# hadoop fs -ls -h /tmp Found 2 items drwxrwxrwx - hdfs supergroup 0 2016-01-21 10:24 /tmp/.cloudera_health_monitoring_canary_files drwx...转载 2018-04-26 11:21:12 · 206 阅读 · 0 评论 -
HDFS基本命令
HDFS常用命令: 注:以下执行命令均在spark安装目录的bin目录下。 path 为路径 src为文件路径 dist 为文件夹 1、-help[cmd] 显示命令的帮助信息 ./hdfs dfs -help ls 1 2、-ls(r) 显示当前目录下的所有文件 -R层层循出文件夹 ./hdfs dfs -ls /log/map ./hdfs dfs -lsr /log/ ...转载 2018-04-26 11:26:58 · 519 阅读 · 0 评论 -
hive常用命令
创建新表 hive> CREATE TABLE t_hive (a int, b int, c int) ROW FORMAT DELIMITED FIELDS TERMINATED BY ‘\t’; 导入数据t_hive.txt到t_hive表 hive> LOAD DATA LOCAL INPATH ‘/home/cos/demo/t_hive.txt’ OVERWRIT...转载 2018-04-26 11:27:32 · 128 阅读 · 0 评论 -
sqoop常用命令
1、列出mysql数据库中的所有数据库 sqoop list-databases –connect jdbc:mysql://localhost:3306/ -username dyh -password 000000 2、连接mysql并列出数据库中的表 sqoop list-tables –connect jdbc:mysql://localhost:3306/test –usernam...转载 2018-04-26 14:09:23 · 429 阅读 · 0 评论