Big Data Handbook (1): Setup and Configuration
Original Chinese title: Bigdata 手册(1)-配置
Big Data Handbook: Configuration
Basic Configuration
-
1:3 distributed deployment on Ubuntu Server
Check Ubuntu Version
cat /etc/issue uname -aHBase and Hadoop
-
Ports: dfs
50070, yarn8080, hbase60010(full port list)/etc/profile
vi /etc/profile export JAVA_HOME=/usr/java export JRE_HOME=/usr/java/jre export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin export CLASSPATH=.:$JAVA_HOME/lib/jt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib export HADOOP_HOME=/usr/hadoop export PATH=$PATH:$HADOOP_HOME/bin export HBASE_HOME=/usr/hbase export PATH=$PATH:$HBASE_HOME/bin export HIVE_HOME=/usr/hive export PATH=$PATH:$HIVE_HOME/bin source /etc/profile
HBase Issues
RegionServer Fails to Start
-
Check the system clock—that’s the most likely culprit. Fix it with the
datecommand:sudo data -s 20150115 // yaer/month/day sudo data -s 14:00 // hours/minutes
Hive
- Needs a relational database for the metadata store; went with MySQL.
Baidu is a trap!My server is on an internal network, so I can only install MySQL by downloading the packages manually—and right now every single result on the first page of Baidu for offline MySQL installation is wrong!- The right way to do it:
- Pick the right version from the MySQL Download Center.
- I’m on Ubuntu 12.04, so I downloaded the
.debbundlemysql-server_5.6.22-1ubuntu12.04_i386.deb-bundle.tar. - You need the
libaiopackage—offline download link: libaio. - Download
libaio1first, then installlibaio-dev, and you’re all set. - I installed the
mysql-communityedition, which includes both server and client.
Bigdata 手册配置
基本配置
-
1:3 分布式部署 Ubuntu server
查看Ubuntu 版本
cat /etc/issue uname -ahbase and hadoop
-
端口 dfs 50070 yarn 8080 hase 60010 完整端口
/etc/profile
vi /etc/profile export JAVA_HOME=/usr/java export JRE_HOME=/usr/java/jre export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin export CLASSPATH=.:$JAVA_HOME/lib/jt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib export HADOOP_HOME=/usr/hadoop export PATH=$PATH:$HADOOP_HOME/bin export HBASE_HOME=/usr/hbase export PATH=$PATH:$HBASE_HOME/bin export HIVE_HOME=/usr/hive export PATH=$PATH:$HIVE_HOME/bin source /etc/profile
hbase 问题
regionserver 不启动
-
看一下系统时间,这个是最大的可能性。用date命令解决
sudo data -s 20150115 // yaer/month/day sudo data -s 14:00 // hours/minutes