HADOOP nutch java mysql
下载Hadoop安装包
java安装
wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-i586.rpm
wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
挺有意思,这个wget地址用百度查了半个小时没解决,用Google1分钟不到,第一个链接,搞定。Stack Overflow真的很吊。
下载完成之后
执行:rpm -ivh jdk-8u131-linux-i586.rpm
然后在 etc的profile 文件的末未添加:
#set java environment
JAVA_HOME=/usr/java/default
JRE_HOME=/usr/java/default/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
wq保存
安装Tomcat:
wget http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.23/bin/apache-tomcat-8.0.23.tar.gz
安装mysql
service mysqld start
安装nutch:
NUTCH报Error: JAVA_HOME is not set.