0%

大数据相关知识

大数据

hive 基本命令如下:

1
2
3
4
5
6
7
8
9
10
#进入hive人机交互界面
hive

#操作类mysql
show databases;
show tables;
show partitions sync_job_log;

#添加分区
alter table sync_job_log add partition(dt=20210111);

hdfs 基本命令如下:

1
2
3
4
5
#切换hdfs用户
su hdfs

#查询创建目录
hdfs dfs -ls /user/hive/warehouse/nti_dev_proj.db

cdh6.2.0 操作步骤:

1
2
3
4
5
6
http://10.1.20.246:7180/cmf/home
admin 123456

选择hdfs
选择Web UI -> apache3
选择Utilities -> Browse the file system