一:启动Hadoop
- 集群或伪分布安装成功之后,通过执行./sbin/start-all.sh启动Hadoop环境
- 通过jps命令查看当前启动进程是否正确~
[root@neusoft-master hadoop-2.6.0-cdh5.6.0]# pwd
/opt/hadoop-2.6.0-cdh5.6.0
[root@neusoft-master hadoop-2.6.0-cdh5.6.0]# ./sbin/start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
17/01/28 06:41:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [neusoft-master]
neusoft-master: starting namenode, logging to /opt/hadoop-2.6.0-cdh5.6.0/logs/hadoop-root-namenode-neusoft-master.out
neusoft-master: starting datanode, logging to /opt/hadoop-2.6.0-cdh5.6.0/logs/hadoop-root-datanode-neusoft-master.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /opt/hadoop-2.6.0-cdh5.6.0/logs/hadoop-root-secondarynamenode-neusoft-master.out
17/01/28 06:41:46 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
starting yarn daemons
starting resourcemanager, logging to /opt/hadoop-2.6.0-cdh5.6.0/logs/yarn-root-resourcemanager-neusoft-master.out
neusoft-master: starting nodemanager, logging to /opt/hadoop-2.6.0-cdh5.6.0/logs/yarn-root-nodemanager-neusoft-master.out
[root@neusoft-master hadoop-2.6.0-cdh5.6.0]# jps
3220 SecondaryNameNode
3374 ResourceManager
2935 NameNode
3801 Jps
3471 NodeManager
3030 DataNode
二:启动Hive
- 检查Mysql数据是否启动
[root@neusoft-master hadoop-2.6.0-cdh5.6.0]# service mysqld status
mysqld is stopped
[root@neusoft-master hadoop-2.6.0-cdh5.6.0]# service mysqld start
Starting mysqld: [ OK ]
[root@neusoft-master hadoop-2.6.0-cdh5.6.0]# mysql -uroot -proot
- 启动Hadoop集群环境:因为Hive底层使用的是Mapreduce执行sql语句
- [root@neusoft-master ~]# hive
- 在hive中测试环境:
- create table test(id int);
- select count(*) from test;
三:启动Hbase
[root@neusoft-master opt]# cd hbase-1.0.0-cdh5.6.0/bin/
[root@neusoft-master bin]# ./start-hbase.sh
[root@neusoft-master bin]# hbase shell