hive基础建表(1)
1、如何在虚拟机centou os上进入hive的编辑页面,并对其进行设置?
#1.进入cd
[root@hive Desktop]# cd
#2.进入hadoop
[root@hive ~]# cd/opt/modules/hadoop -2.5.-cdh5.3.6/
#3.在hadoop下检验jps
[root@hive hadoop -2.5.-cdh5.3.6 ]# jps
#4.开启hadf和yarn的节点
[root@hive hadoop -2.5.-cdh5.3.6 ]# sbin/hadoop-daemon.sh start namenode
[root@hive hadoop -2.5.-cdh5.3.6 ]# sbin/hadoop-daemon.sh start datanode
[root@hive hadoop -2.5.-cdh5.3.6 ]# sbin/yarn-daemon.sh start resourcemanager
[root@hive hadoop -2.5.-cdh5.3.6 ]# sbin/yarn-daemon.sh start nodemanager
#5.在hadoop下检验jps
[root@hive hadoop -2.5.-cdh5.3.6 ]# jps
#出现jps ,以及5上四个点就可以建表了
#6.进入hive
[root@hive hadoop -2.5.-cdh5.3.6 ]# cd ../hive -.13.1 -cdh 5.3.6/
#7.进入hive编辑器
[root@hive hive -.13.1 -cdh 5.3.6 ]# bin/hive
#8.开始编辑建表操作了
hive>
相关文章