# hadoop
1. make config up
2. [hd01 root] hdfs namenode -format
3. [hd01 root] sbin/start-dfs.sh
4. [hd02 root] sbin/start-yarn.sh
5. [hd01 root] bin/mapred --daemon start historyserver
# hive
10. [hd01 root] bin/schematool -initSchema -dbType mysql -verbose;
(bin/schematool -dbType derby -initSchema)
[------------
11. [hd01 root] bin/hive --service metastore;
(nohup hive --service metastore >$HIVE_LOG_DIR/metastore.log 2>&1 &)
12. [hd01 root] bin/hive --service hiveserver2 (bin/hiveserver2)
13. [hd01 root] bin/hive
-------------]
14. [hd01 root] sh /mysh/hiveservice.sh start
15. [hd01 root] bin/hive
16. [hd01 root] bin/beeline -u jdbc:hive2://hd01:10000 -n root