现在的位置: 首页开发知识库 > 正文
PredictionIO安装配置
关键词:无 ┊ 来源: 原创收藏

【目录】
=============================
1、安装配置JAVA
2、安装配置Hadoop
3、安装配置Mongodb
4、安装PredictionIO本身

=============================
1、安装配置JAVA

CentOS-6.3安装配置JDK-7
zhoulf 2013-02-04 原创
安装说明
系统环境:centos-6.3
安装方式:rpm安装
软件:jdk-7-linux-x64.rpm
下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html

检验系统原版本
[root@admin ~]# java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (rhel-1.45.1.11.1.el6-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

进一步查看JDK信息:

[root@admin ~]# rpm -qa | grep java
tzdata-java-2012c-1.el6.noarch
java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64
卸载OpenJDK,执行以下操作:

[root@admin ~]# rpm -e --nodeps tzdata-java-2012c-1.el6.noarch
[root@admin ~]# rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64
安装JDK
上传新的jdk-7-linux-x64.rpm软件到/usr/local/执行以下操作:

[root@admin local]# rpm -ivh jdk-7-linux-x64.rpm
JDK默认安装在/usr/java中。

验证安装
执行以下操作,查看信息是否正常:

[root@admin bin]# java
[root@admin bin]# javac
[root@admin bin]# java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
恭喜,安装成功!

配置环境变量
我的机器安装完jdk-7-linux-x64.rpm后不用配置环境变量也可以正常执行javac、java –version操作,因此我没有进行JDK环境变量的配置。但是为了以后的不适之需,这里还是记录一下怎么进行配置,操作如下:
修改系统环境变量文件

vi + /etc/profile
向文件里面追加以下内容:

JAVA_HOME=/usr/java/jdk1.7.0
JRE_HOME=/usr/java/jdk1.7.0/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export JAVA_HOME JRE_HOME PATH CLASSPATH
使修改生效

[root@admin local]# source /etc/profile //使修改立即生效
[root@admin local]# echo $PATH //查看PATH值
查看系统环境状态

[root@admin ~]# echo $PATH
/usr/local/cmake/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.7.0/bin:/usr/java/jdk1.7.0/jre/bin:/root/bin

=============================
2、下载PredictionIO的二进制安装包

解压,进入bin目录 ./setup-vendors.sh,会自动安装mongo和hadoop。

在这之前要保证ssh可自登陆:

$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

======================================

[root@app02 bin]# ./setup-vendors.sh
Cannot find mongod from process list, search path, nor vendors area. Do you want to automatically install MongoDB 2.4.6 (64-bit Linux)? [y/n] y
Going to download and install MongoDB 2.4.6 (64-bit Linux)...
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 90.5M 100 90.5M 0 0 1206k 0 0:01:16 0:01:16 --:--:-- 1102k
mongodb-linux-x86_64-2.4.6/README
mongodb-linux-x86_64-2.4.6/THIRD-PARTY-NOTICES
mongodb-linux-x86_64-2.4.6/GNU-AGPL-3.0
mongodb-linux-x86_64-2.4.6/bin/mongodump
mongodb-linux-x86_64-2.4.6/bin/mongorestore
mongodb-linux-x86_64-2.4.6/bin/mongoexport
mongodb-linux-x86_64-2.4.6/bin/mongoimport
mongodb-linux-x86_64-2.4.6/bin/mongostat
mongodb-linux-x86_64-2.4.6/bin/mongotop
mongodb-linux-x86_64-2.4.6/bin/mongooplog
mongodb-linux-x86_64-2.4.6/bin/mongofiles
mongodb-linux-x86_64-2.4.6/bin/bsondump
mongodb-linux-x86_64-2.4.6/bin/mongoperf
mongodb-linux-x86_64-2.4.6/bin/mongosniff
mongodb-linux-x86_64-2.4.6/bin/mongod
mongodb-linux-x86_64-2.4.6/bin/mongos
mongodb-linux-x86_64-2.4.6/bin/mongo
Cannot find hadoop from search path nor vendors area. Do you want to automatically install Apache Hadoop 1.2.1? (Please make sure you can SSH to the localhost without a password.) [y/n] y

Please supply the absolute path to your Java installation: /usr/java/jdk1.7.0_45
Using directory /usr/java/jdk1.7.0_45 as your Java installation...

Going to download and install Apache Hadoop 1.2.1...
  % Total % Received % Xferd Average Speed Time Time Time Current
100 36.3M 100 36.3M 0 0 127k 0 0:04:52 0:04:52 --:--:-- 174k

hadoop-1.2.1/
hadoop-1.2.1/.eclipse.templates/
hadoop-1.2.1/.eclipse.templates/.externalToolBuilders/
hadoop-1.2.1/.eclipse.templates/.launches/
hadoop-1.2.1/bin/
hadoop-1.2.1/c++/
hadoop-1.2.1/c++/Linuw-amd64-64/
hadoop-1.2.1/c++/Linuw-amd64-64/include/
hadoop-1.2.1/c++/Linuw-amd64-64/include/hadoop/
hadoop-1.2.1/c++/Linuw-amd64-64/lib/
hadoop-1.2.1/c++/Linuw-i386-32/
hadoop-1.2.1/c++/Linuw-i386-32/include/
hadoop-1.2.1/c++/Linuw-i386-32/include/hadoop/
hadoop-1.2.1/c++/Linuw-i386-32/lib/
hadoop-1.2.1/conf/
hadoop-1.2.1/contrib/
hadoop-1.2.1/contrib/datajoin/
hadoop-1.2.1/contrib/failmon/
hadoop-1.2.1/contrib/gridmix/
hadoop-1.2.1/contrib/hdfsproxy/
hadoop-1.2.1/contrib/hdfsproxy/bin/
hadoop-1.2.1/contrib/hdfsproxy/conf/
hadoop-1.2.1/contrib/hdfsproxy/logs/
hadoop-1.2.1/contrib/hod/
hadoop-1.2.1/contrib/hod/bin/
hadoop-1.2.1/contrib/hod/conf/
hadoop-1.2.1/contrib/hod/hodlib/
hadoop-1.2.1/contrib/hod/hodlib/AllocationManagers/
hadoop-1.2.1/contrib/hod/hodlib/Common/
hadoop-1.2.1/contrib/hod/hodlib/GridServices/
hadoop-1.2.1/contrib/hod/hodlib/Hod/
hadoop-1.2.1/contrib/hod/hodlib/HodRing/
hadoop-1.2.1/contrib/hod/hodlib/NodePools/
hadoop-1.2.1/contrib/hod/hodlib/RingMaster/
hadoop-1.2.1/contrib/hod/hodlib/Schedulers/
hadoop-1.2.1/contrib/hod/hodlib/ServiceProxy/
hadoop-1.2.1/contrib/hod/hodlib/ServiceRegistry/
hadoop-1.2.1/contrib/hod/ivy/
hadoop-1.2.1/contrib/hod/support/
hadoop-1.2.1/contrib/hod/testing/
hadoop-1.2.1/contrib/index/
hadoop-1.2.1/contrib/streaming/
hadoop-1.2.1/contrib/vaidya/
hadoop-1.2.1/contrib/vaidya/bin/
hadoop-1.2.1/contrib/vaidya/conf/
hadoop-1.2.1/ivy/
hadoop-1.2.1/lib/
hadoop-1.2.1/lib/jdiff/
hadoop-1.2.1/lib/jsp-2.1/
hadoop-1.2.1/lib/native/
hadoop-1.2.1/lib/native/Linux-amd64-64/
hadoop-1.2.1/lib/native/Linux-i386-32/
hadoop-1.2.1/libexec/
hadoop-1.2.1/sbin/
hadoop-1.2.1/share/
hadoop-1.2.1/share/hadoop/
hadoop-1.2.1/share/hadoop/templates/
hadoop-1.2.1/share/hadoop/templates/conf/
hadoop-1.2.1/webapps/
hadoop-1.2.1/webapps/datanode/
hadoop-1.2.1/webapps/datanode/WEB-INF/
hadoop-1.2.1/webapps/hdfs/
hadoop-1.2.1/webapps/hdfs/WEB-INF/
hadoop-1.2.1/webapps/history/
hadoop-1.2.1/webapps/history/WEB-INF/
hadoop-1.2.1/webapps/job/
hadoop-1.2.1/webapps/job/WEB-INF/
hadoop-1.2.1/webapps/secondary/
hadoop-1.2.1/webapps/secondary/WEB-INF/
hadoop-1.2.1/webapps/static/
hadoop-1.2.1/webapps/task/
hadoop-1.2.1/webapps/task/WEB-INF/
hadoop-1.2.1/.eclipse.templates/.launches/AllTests.launch
hadoop-1.2.1/.eclipse.templates/.launches/DataNode.launch
hadoop-1.2.1/.eclipse.templates/.launches/JobTracker.launch
hadoop-1.2.1/.eclipse.templates/.launches/NameNode.launch
hadoop-1.2.1/.eclipse.templates/.launches/SpecificTestTemplate.launch
hadoop-1.2.1/.eclipse.templates/.launches/TaskTracker.launch
hadoop-1.2.1/.eclipse.templates/README.txt
hadoop-1.2.1/CHANGES.txt
hadoop-1.2.1/LICENSE.txt
hadoop-1.2.1/NOTICE.txt
hadoop-1.2.1/README.txt
hadoop-1.2.1/build.xml
hadoop-1.2.1/c++/Linuw-amd64-64/include/hadoop/Pipes.hh
hadoop-1.2.1/c++/Linuw-amd64-64/include/hadoop/SerialUtils.hh
hadoop-1.2.1/c++/Linuw-amd64-64/include/hadoop/StringUtils.hh
hadoop-1.2.1/c++/Linuw-amd64-64/include/hadoop/TemplateFactory.hh
hadoop-1.2.1/c++/Linuw-amd64-64/lib/libhadooppipes.a
hadoop-1.2.1/c++/Linuw-amd64-64/lib/libhadooputils.a
hadoop-1.2.1/c++/Linuw-amd64-64/lib/libhdfs.a
hadoop-1.2.1/c++/Linuw-amd64-64/lib/libhdfs.la
hadoop-1.2.1/c++/Linuw-amd64-64/lib/libhdfs.so
hadoop-1.2.1/c++/Linuw-amd64-64/lib/libhdfs.so.0
hadoop-1.2.1/c++/Linuw-amd64-64/lib/libhdfs.so.0.0.0
hadoop-1.2.1/c++/Linuw-i386-32/include/hadoop/Pipes.hh
hadoop-1.2.1/c++/Linuw-i386-32/include/hadoop/SerialUtils.hh
hadoop-1.2.1/c++/Linuw-i386-32/include/hadoop/StringUtils.hh
hadoop-1.2.1/c++/Linuw-i386-32/include/hadoop/TemplateFactory.hh
hadoop-1.2.1/c++/Linuw-i386-32/lib/libhadooppipes.a
hadoop-1.2.1/c++/Linuw-i386-32/lib/libhadooputils.a
hadoop-1.2.1/c++/Linuw-i386-32/lib/libhdfs.a
hadoop-1.2.1/c++/Linuw-i386-32/lib/libhdfs.la
hadoop-1.2.1/c++/Linuw-i386-32/lib/libhdfs.so
hadoop-1.2.1/c++/Linuw-i386-32/lib/libhdfs.so.0
hadoop-1.2.1/c++/Linuw-i386-32/lib/libhdfs.so.0.0.0
hadoop-1.2.1/conf/capacity-scheduler.xml
hadoop-1.2.1/conf/configuration.xsl
hadoop-1.2.1/conf/core-site.xml
hadoop-1.2.1/conf/fair-scheduler.xml
hadoop-1.2.1/conf/hadoop-env.sh
hadoop-1.2.1/conf/hadoop-metrics2.properties
hadoop-1.2.1/conf/hadoop-policy.xml
hadoop-1.2.1/conf/hdfs-site.xml
hadoop-1.2.1/conf/log4j.properties
hadoop-1.2.1/conf/mapred-queue-acls.xml
hadoop-1.2.1/conf/mapred-site.xml
hadoop-1.2.1/conf/masters
hadoop-1.2.1/conf/slaves
hadoop-1.2.1/conf/ssl-client.xml.example
hadoop-1.2.1/conf/ssl-server.xml.example
hadoop-1.2.1/conf/task-log4j.properties
hadoop-1.2.1/conf/taskcontroller.cfg
hadoop-1.2.1/contrib/datajoin/hadoop-datajoin-1.2.1.jar
hadoop-1.2.1/contrib/failmon/hadoop-failmon-1.2.1.jar
hadoop-1.2.1/contrib/gridmix/hadoop-gridmix-1.2.1.jar
hadoop-1.2.1/contrib/hdfsproxy/README
hadoop-1.2.1/contrib/hdfsproxy/build.xml
hadoop-1.2.1/contrib/hdfsproxy/conf/configuration.xsl
hadoop-1.2.1/contrib/hdfsproxy/conf/hdfsproxy-default.xml
hadoop-1.2.1/contrib/hdfsproxy/conf/hdfsproxy-env.sh
hadoop-1.2.1/contrib/hdfsproxy/conf/hdfsproxy-env.sh.template
hadoop-1.2.1/contrib/hdfsproxy/conf/hdfsproxy-hosts
hadoop-1.2.1/contrib/hdfsproxy/conf/log4j.properties
hadoop-1.2.1/contrib/hdfsproxy/conf/ssl-server.xml
hadoop-1.2.1/contrib/hdfsproxy/conf/tomcat-forward-web.xml
hadoop-1.2.1/contrib/hdfsproxy/conf/tomcat-web.xml
hadoop-1.2.1/contrib/hdfsproxy/conf/user-certs.xml
hadoop-1.2.1/contrib/hdfsproxy/conf/user-permissions.xml
hadoop-1.2.1/contrib/hdfsproxy/hdfsproxy-2.0.jar
hadoop-1.2.1/contrib/hod/CHANGES.txt
hadoop-1.2.1/contrib/hod/README
hadoop-1.2.1/contrib/hod/build.xml
hadoop-1.2.1/contrib/hod/conf/hodrc
hadoop-1.2.1/contrib/hod/config.txt
hadoop-1.2.1/contrib/hod/getting_started.txt
hadoop-1.2.1/contrib/hod/hodlib/AllocationManagers/__init__.py
hadoop-1.2.1/contrib/hod/hodlib/AllocationManagers/goldAllocationManager.py
hadoop-1.2.1/contrib/hod/hodlib/Common/__init__.py
hadoop-1.2.1/contrib/hod/hodlib/Common/allocationManagerUtil.py
hadoop-1.2.1/contrib/hod/hodlib/Common/desc.py
hadoop-1.2.1/contrib/hod/hodlib/Common/descGenerator.py
hadoop-1.2.1/contrib/hod/hodlib/Common/hodsvc.py
hadoop-1.2.1/contrib/hod/hodlib/Common/logger.py
hadoop-1.2.1/contrib/hod/hodlib/Common/miniHTMLParser.py
hadoop-1.2.1/contrib/hod/hodlib/Common/nodepoolutil.py
hadoop-1.2.1/contrib/hod/hodlib/Common/setup.py
hadoop-1.2.1/contrib/hod/hodlib/Common/socketServers.py
hadoop-1.2.1/contrib/hod/hodlib/Common/tcp.py
hadoop-1.2.1/contrib/hod/hodlib/Common/threads.py
hadoop-1.2.1/contrib/hod/hodlib/Common/types.py
hadoop-1.2.1/contrib/hod/hodlib/Common/util.py
hadoop-1.2.1/contrib/hod/hodlib/Common/xmlrpc.py
hadoop-1.2.1/contrib/hod/hodlib/GridServices/__init__.py
hadoop-1.2.1/contrib/hod/hodlib/GridServices/hdfs.py
hadoop-1.2.1/contrib/hod/hodlib/GridServices/mapred.py
hadoop-1.2.1/contrib/hod/hodlib/GridServices/service.py
hadoop-1.2.1/contrib/hod/hodlib/Hod/__init__.py
hadoop-1.2.1/contrib/hod/hodlib/Hod/hadoop.py
hadoop-1.2.1/contrib/hod/hodlib/Hod/hod.py
hadoop-1.2.1/contrib/hod/hodlib/Hod/nodePool.py
hadoop-1.2.1/contrib/hod/hodlib/HodRing/__init__.py
hadoop-1.2.1/contrib/hod/hodlib/HodRing/hodRing.py
hadoop-1.2.1/contrib/hod/hodlib/NodePools/__init__.py
hadoop-1.2.1/contrib/hod/hodlib/NodePools/torque.py
hadoop-1.2.1/contrib/hod/hodlib/RingMaster/__init__.py
hadoop-1.2.1/contrib/hod/hodlib/RingMaster/idleJobTracker.py
hadoop-1.2.1/contrib/hod/hodlib/RingMaster/ringMaster.py
hadoop-1.2.1/contrib/hod/hodlib/Schedulers/__init__.py
hadoop-1.2.1/contrib/hod/hodlib/Schedulers/torque.py
hadoop-1.2.1/contrib/hod/hodlib/ServiceProxy/__init__.py
hadoop-1.2.1/contrib/hod/hodlib/ServiceProxy/serviceProxy.py
hadoop-1.2.1/contrib/hod/hodlib/ServiceRegistry/__init__.py
hadoop-1.2.1/contrib/hod/hodlib/ServiceRegistry/serviceRegistry.py
hadoop-1.2.1/contrib/hod/hodlib/__init__.py
hadoop-1.2.1/contrib/hod/ivy.xml
hadoop-1.2.1/contrib/hod/ivy/libraries.properties
hadoop-1.2.1/contrib/hod/support/checklimits.sh
hadoop-1.2.1/contrib/hod/support/logcondense.py
hadoop-1.2.1/contrib/hod/testing/__init__.py
hadoop-1.2.1/contrib/hod/testing/helper.py
hadoop-1.2.1/contrib/hod/testing/lib.py
hadoop-1.2.1/contrib/hod/testing/main.py
hadoop-1.2.1/contrib/hod/testing/testHadoop.py
hadoop-1.2.1/contrib/hod/testing/testHod.py
hadoop-1.2.1/contrib/hod/testing/testHodCleanup.py
hadoop-1.2.1/contrib/hod/testing/testHodRing.py
hadoop-1.2.1/contrib/hod/testing/testModule.py
hadoop-1.2.1/contrib/hod/testing/testRingmasterRPCs.py
hadoop-1.2.1/contrib/hod/testing/testThreads.py
hadoop-1.2.1/contrib/hod/testing/testTypes.py
hadoop-1.2.1/contrib/hod/testing/testUtil.py
hadoop-1.2.1/contrib/hod/testing/testXmlrpc.py
hadoop-1.2.1/contrib/index/hadoop-index-1.2.1.jar
hadoop-1.2.1/contrib/streaming/hadoop-streaming-1.2.1.jar
hadoop-1.2.1/contrib/vaidya/conf/postex_diagnosis_tests.xml
hadoop-1.2.1/contrib/vaidya/hadoop-vaidya-1.2.1.jar
hadoop-1.2.1/hadoop-ant-1.2.1.jar
hadoop-1.2.1/hadoop-client-1.2.1.jar
hadoop-1.2.1/hadoop-core-1.2.1.jar
hadoop-1.2.1/hadoop-examples-1.2.1.jar
hadoop-1.2.1/hadoop-minicluster-1.2.1.jar
hadoop-1.2.1/hadoop-test-1.2.1.jar
hadoop-1.2.1/hadoop-tools-1.2.1.jar
hadoop-1.2.1/ivy.xml
hadoop-1.2.1/ivy/hadoop-client-pom-template.xml
hadoop-1.2.1/ivy/hadoop-core-pom-template.xml
hadoop-1.2.1/ivy/hadoop-core.pom
hadoop-1.2.1/ivy/hadoop-examples-pom-template.xml
hadoop-1.2.1/ivy/hadoop-minicluster-pom-template.xml
hadoop-1.2.1/ivy/hadoop-streaming-pom-template.xml
hadoop-1.2.1/ivy/hadoop-test-pom-template.xml
hadoop-1.2.1/ivy/hadoop-tools-pom-template.xml
hadoop-1.2.1/ivy/ivy-2.1.0.jar
hadoop-1.2.1/ivy/ivysettings.xml
hadoop-1.2.1/ivy/libraries.properties
hadoop-1.2.1/lib/asm-3.2.jar
hadoop-1.2.1/lib/aspectjrt-1.6.11.jar
hadoop-1.2.1/lib/aspectjtools-1.6.11.jar
hadoop-1.2.1/lib/commons-beanutils-1.7.0.jar
hadoop-1.2.1/lib/commons-beanutils-core-1.8.0.jar
hadoop-1.2.1/lib/commons-cli-1.2.jar
hadoop-1.2.1/lib/commons-codec-1.4.jar
hadoop-1.2.1/lib/commons-collections-3.2.1.jar
hadoop-1.2.1/lib/commons-configuration-1.6.jar
hadoop-1.2.1/lib/commons-daemon-1.0.1.jar
hadoop-1.2.1/lib/commons-digester-1.8.jar
hadoop-1.2.1/lib/commons-el-1.0.jar
hadoop-1.2.1/lib/commons-httpclient-3.0.1.jar
hadoop-1.2.1/lib/commons-io-2.1.jar
hadoop-1.2.1/lib/commons-lang-2.4.jar
hadoop-1.2.1/lib/commons-logging-1.1.1.jar
hadoop-1.2.1/lib/commons-logging-api-1.0.4.jar
hadoop-1.2.1/lib/commons-math-2.1.jar
hadoop-1.2.1/lib/commons-net-3.1.jar
hadoop-1.2.1/lib/core-3.1.1.jar
hadoop-1.2.1/lib/hadoop-capacity-scheduler-1.2.1.jar
hadoop-1.2.1/lib/hadoop-fairscheduler-1.2.1.jar
hadoop-1.2.1/lib/hadoop-thriftfs-1.2.1.jar
hadoop-1.2.1/lib/hsqldb-1.8.0.10.LICENSE.txt
hadoop-1.2.1/lib/hsqldb-1.8.0.10.jar
hadoop-1.2.1/lib/jackson-core-asl-1.8.8.jar
hadoop-1.2.1/lib/jackson-mapper-asl-1.8.8.jar
hadoop-1.2.1/lib/jasper-compiler-5.5.12.jar
hadoop-1.2.1/lib/jasper-runtime-5.5.12.jar
hadoop-1.2.1/lib/jdeb-0.8.jar
hadoop-1.2.1/lib/jdiff/hadoop_0.17.0.xml
hadoop-1.2.1/lib/jdiff/hadoop_0.18.1.xml
hadoop-1.2.1/lib/jdiff/hadoop_0.18.2.xml
hadoop-1.2.1/lib/jdiff/hadoop_0.18.3.xml
hadoop-1.2.1/lib/jdiff/hadoop_0.19.0.xml
hadoop-1.2.1/lib/jdiff/hadoop_0.19.1.xml
hadoop-1.2.1/lib/jdiff/hadoop_0.19.2.xml
hadoop-1.2.1/lib/jdiff/hadoop_0.20.1.xml
hadoop-1.2.1/lib/jdiff/hadoop_0.20.205.0.xml
hadoop-1.2.1/lib/jdiff/hadoop_1.0.0.xml
hadoop-1.2.1/lib/jdiff/hadoop_1.0.1.xml
hadoop-1.2.1/lib/jdiff/hadoop_1.0.2.xml
hadoop-1.2.1/lib/jdiff/hadoop_1.0.3.xml
hadoop-1.2.1/lib/jdiff/hadoop_1.0.4.xml
hadoop-1.2.1/lib/jdiff/hadoop_1.1.0.xml
hadoop-1.2.1/lib/jdiff/hadoop_1.1.1.xml
hadoop-1.2.1/lib/jdiff/hadoop_1.1.2.xml
hadoop-1.2.1/lib/jdiff/hadoop_1.2.0.xml
hadoop-1.2.1/lib/jdiff/hadoop_1.2.1.xml
hadoop-1.2.1/lib/jersey-core-1.8.jar
hadoop-1.2.1/lib/jersey-json-1.8.jar
hadoop-1.2.1/lib/jersey-server-1.8.jar
hadoop-1.2.1/lib/jets3t-0.6.1.jar
hadoop-1.2.1/lib/jetty-6.1.26.jar
hadoop-1.2.1/lib/jetty-util-6.1.26.jar
hadoop-1.2.1/lib/jsch-0.1.42.jar
hadoop-1.2.1/lib/jsp-2.1/jsp-2.1.jar
hadoop-1.2.1/lib/jsp-2.1/jsp-api-2.1.jar
hadoop-1.2.1/lib/junit-4.5.jar
hadoop-1.2.1/lib/kfs-0.2.2.jar
hadoop-1.2.1/lib/kfs-0.2.LICENSE.txt
hadoop-1.2.1/lib/log4j-1.2.15.jar
hadoop-1.2.1/lib/mockito-all-1.8.5.jar
hadoop-1.2.1/lib/native/Linux-amd64-64/libhadoop.a
hadoop-1.2.1/lib/native/Linux-amd64-64/libhadoop.la
hadoop-1.2.1/lib/native/Linux-amd64-64/libhadoop.so
hadoop-1.2.1/lib/native/Linux-amd64-64/libhadoop.so.1
hadoop-1.2.1/lib/native/Linux-amd64-64/libhadoop.so.1.0.0
hadoop-1.2.1/lib/native/Linux-i386-32/libhadoop.a
hadoop-1.2.1/lib/native/Linux-i386-32/libhadoop.la
hadoop-1.2.1/lib/native/Linux-i386-32/libhadoop.so
hadoop-1.2.1/lib/native/Linux-i386-32/libhadoop.so.1
hadoop-1.2.1/lib/native/Linux-i386-32/libhadoop.so.1.0.0
hadoop-1.2.1/lib/oro-2.0.8.jar
hadoop-1.2.1/lib/servlet-api-2.5-20081211.jar
hadoop-1.2.1/lib/slf4j-api-1.4.3.jar
hadoop-1.2.1/lib/slf4j-log4j12-1.4.3.jar
hadoop-1.2.1/lib/xmlenc-0.52.jar
hadoop-1.2.1/share/hadoop/templates/conf/capacity-scheduler.xml
hadoop-1.2.1/share/hadoop/templates/conf/commons-logging.properties
hadoop-1.2.1/share/hadoop/templates/conf/core-site.xml
hadoop-1.2.1/share/hadoop/templates/conf/hadoop-env.sh
hadoop-1.2.1/share/hadoop/templates/conf/hadoop-metrics2.properties
hadoop-1.2.1/share/hadoop/templates/conf/hadoop-policy.xml
hadoop-1.2.1/share/hadoop/templates/conf/hdfs-site.xml
hadoop-1.2.1/share/hadoop/templates/conf/log4j.properties
hadoop-1.2.1/share/hadoop/templates/conf/mapred-queue-acls.xml
hadoop-1.2.1/share/hadoop/templates/conf/mapred-site.xml
hadoop-1.2.1/share/hadoop/templates/conf/taskcontroller.cfg
hadoop-1.2.1/webapps/datanode/WEB-INF/web.xml
hadoop-1.2.1/webapps/hdfs/WEB-INF/web.xml
hadoop-1.2.1/webapps/hdfs/index.html
hadoop-1.2.1/webapps/history/WEB-INF/web.xml
hadoop-1.2.1/webapps/job/WEB-INF/web.xml
hadoop-1.2.1/webapps/job/analysejobhistory.jsp
hadoop-1.2.1/webapps/job/gethistory.jsp
hadoop-1.2.1/webapps/job/index.html
hadoop-1.2.1/webapps/job/job_authorization_error.jsp
hadoop-1.2.1/webapps/job/jobblacklistedtrackers.jsp
hadoop-1.2.1/webapps/job/jobconf.jsp
hadoop-1.2.1/webapps/job/jobconf_history.jsp
hadoop-1.2.1/webapps/job/jobdetails.jsp
hadoop-1.2.1/webapps/job/jobdetailshistory.jsp
hadoop-1.2.1/webapps/job/jobfailures.jsp
hadoop-1.2.1/webapps/job/jobhistory.jsp
hadoop-1.2.1/webapps/job/jobhistoryhome.jsp
hadoop-1.2.1/webapps/job/jobqueue_details.jsp
hadoop-1.2.1/webapps/job/jobtasks.jsp
hadoop-1.2.1/webapps/job/jobtaskshistory.jsp
hadoop-1.2.1/webapps/job/jobtracker.jsp
hadoop-1.2.1/webapps/job/legacyjobhistory.jsp
hadoop-1.2.1/webapps/job/loadhistory.jsp
hadoop-1.2.1/webapps/job/machines.jsp
hadoop-1.2.1/webapps/job/taskdetails.jsp
hadoop-1.2.1/webapps/job/taskdetailshistory.jsp
hadoop-1.2.1/webapps/job/taskstats.jsp
hadoop-1.2.1/webapps/job/taskstatshistory.jsp
hadoop-1.2.1/webapps/secondary/WEB-INF/web.xml
hadoop-1.2.1/webapps/secondary/index.html
hadoop-1.2.1/webapps/static/hadoop-logo.jpg
hadoop-1.2.1/webapps/static/hadoop.css
hadoop-1.2.1/webapps/static/jobconf.xsl
hadoop-1.2.1/webapps/static/jobtracker.js
hadoop-1.2.1/webapps/static/sorttable.js
hadoop-1.2.1/webapps/task/WEB-INF/web.xml
hadoop-1.2.1/webapps/task/index.html
hadoop-1.2.1/src/contrib/ec2/bin/image/
hadoop-1.2.1/bin/hadoop
hadoop-1.2.1/bin/hadoop-config.sh
hadoop-1.2.1/bin/hadoop-daemon.sh
hadoop-1.2.1/bin/hadoop-daemons.sh
hadoop-1.2.1/bin/rcc
hadoop-1.2.1/bin/slaves.sh
hadoop-1.2.1/bin/start-all.sh
hadoop-1.2.1/bin/start-balancer.sh
hadoop-1.2.1/bin/start-dfs.sh
hadoop-1.2.1/bin/start-jobhistoryserver.sh
hadoop-1.2.1/bin/start-mapred.sh
hadoop-1.2.1/bin/stop-all.sh
hadoop-1.2.1/bin/stop-balancer.sh
hadoop-1.2.1/bin/stop-dfs.sh
hadoop-1.2.1/bin/stop-jobhistoryserver.sh
hadoop-1.2.1/bin/stop-mapred.sh
hadoop-1.2.1/bin/task-controller
hadoop-1.2.1/contrib/hdfsproxy/bin/hdfsproxy
hadoop-1.2.1/contrib/hdfsproxy/bin/hdfsproxy-config.sh
hadoop-1.2.1/contrib/hdfsproxy/bin/hdfsproxy-daemon.sh
hadoop-1.2.1/contrib/hdfsproxy/bin/hdfsproxy-daemons.sh
hadoop-1.2.1/contrib/hdfsproxy/bin/hdfsproxy-slaves.sh
hadoop-1.2.1/contrib/hdfsproxy/bin/start-hdfsproxy.sh
hadoop-1.2.1/contrib/hdfsproxy/bin/stop-hdfsproxy.sh
hadoop-1.2.1/contrib/hod/bin/VERSION
hadoop-1.2.1/contrib/hod/bin/checknodes
hadoop-1.2.1/contrib/hod/bin/hod
hadoop-1.2.1/contrib/hod/bin/hodcleanup
hadoop-1.2.1/contrib/hod/bin/hodring
hadoop-1.2.1/contrib/hod/bin/ringmaster
hadoop-1.2.1/contrib/hod/bin/verify-account
hadoop-1.2.1/contrib/vaidya/bin/vaidya.sh
hadoop-1.2.1/libexec/hadoop-config.sh
hadoop-1.2.1/libexec/jsvc.amd64
hadoop-1.2.1/sbin/hadoop-create-user.sh
hadoop-1.2.1/sbin/hadoop-setup-applications.sh
hadoop-1.2.1/sbin/hadoop-setup-conf.sh
hadoop-1.2.1/sbin/hadoop-setup-hdfs.sh
hadoop-1.2.1/sbin/hadoop-setup-single-node.sh
hadoop-1.2.1/sbin/hadoop-validate-setup.sh
hadoop-1.2.1/sbin/update-hadoop-env.sh
hadoop-1.2.1/src/contrib/ec2/bin/cmd-hadoop-cluster
hadoop-1.2.1/src/contrib/ec2/bin/create-hadoop-image
hadoop-1.2.1/src/contrib/ec2/bin/delete-hadoop-cluster
hadoop-1.2.1/src/contrib/ec2/bin/hadoop-ec2
hadoop-1.2.1/src/contrib/ec2/bin/hadoop-ec2-env.sh
hadoop-1.2.1/src/contrib/ec2/bin/hadoop-ec2-init-remote.sh
hadoop-1.2.1/src/contrib/ec2/bin/image/create-hadoop-image-remote
hadoop-1.2.1/src/contrib/ec2/bin/image/ec2-run-user-data
hadoop-1.2.1/src/contrib/ec2/bin/launch-hadoop-cluster
hadoop-1.2.1/src/contrib/ec2/bin/launch-hadoop-master
hadoop-1.2.1/src/contrib/ec2/bin/launch-hadoop-slaves
hadoop-1.2.1/src/contrib/ec2/bin/list-hadoop-clusters
hadoop-1.2.1/src/contrib/ec2/bin/terminate-hadoop-cluster
Configuring Hadoop in pseudo-distributed mode...
Configuring PredictionIO to use Hadoop in vendors area...
Trying to format HDFS...
13/11/11 17:44:33 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = app02/172.21.0.102
STARTUP_MSG: args = [-format]
STARTUP_MSG: version = 1.2.1
STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.2 -r 1503152; compiled by 'mattf' on Mon Jul 22 15:23:09 PDT 2013
STARTUP_MSG: java = 1.7.0_45
************************************************************/
13/11/11 17:44:33 INFO util.GSet: Computing capacity for map BlocksMap
13/11/11 17:44:33 INFO util.GSet: VM type = 64-bit
13/11/11 17:44:33 INFO util.GSet: 2.0% max memory = 932184064
13/11/11 17:44:33 INFO util.GSet: capacity = 2^21 = 2097152 entries
13/11/11 17:44:33 INFO util.GSet: recommended=2097152, actual=2097152
13/11/11 17:44:34 INFO namenode.FSNamesystem: fsOwner=root
13/11/11 17:44:34 INFO namenode.FSNamesystem: supergroup=supergroup
13/11/11 17:44:34 INFO namenode.FSNamesystem: isPermissionEnabled=true
13/11/11 17:44:34 INFO namenode.FSNamesystem: dfs.block.invalidate.limit=100
13/11/11 17:44:34 INFO namenode.FSNamesystem: isAccessTokenEnabled=false accessKeyUpdateInterval=0 min(s), accessTokenLifetime=0 min(s)
13/11/11 17:44:34 INFO namenode.FSEditLog: dfs.namenode.edits.toleration.length = 0
13/11/11 17:44:34 INFO namenode.NameNode: Caching file names occuring more than 10 times
13/11/11 17:44:34 INFO common.Storage: Image file /tmp/hadoop-root/dfs/name/current/fsimage of size 110 bytes saved in 0 seconds.
13/11/11 17:44:34 INFO namenode.FSEditLog: closing edit log: position=4, editlog=/tmp/hadoop-root/dfs/name/current/edits
13/11/11 17:44:34 INFO namenode.FSEditLog: close success: truncate to 4, editlog=/tmp/hadoop-root/dfs/name/current/edits
13/11/11 17:44:34 INFO common.Storage: Storage directory /tmp/hadoop-root/dfs/name has been successfully formatted.
13/11/11 17:44:34 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at app02/172.21.0.102
************************************************************/



====================================================

3、修改Hadoop配置
修改 vendors/hadoop-<version>/conf/hdfs-site.xml and add:
<property>
    <name>dfs.name.dir</name>
    <value>/path_to_big_storage_for_namenode</value>
</property>
<property>
    <name>dfs.data.dir</name>
    <value>/path_to_big_storage_for_datanode</value>
</property>


4、修改mongodb配置

$ mkdir -p vendors/mongodb/data
$ mkdir -p vendors/mongodb/logs
$ vendors/mongodb-linux-x86_64-2.4.3/bin/mongod --config conf/mongodb/mongodb.conf >/dev/null 2>&1 &

启动成功之后

 bin/setup.sh

5、启动服务

bin/start-all.sh

./start-all.sh
Found MongoDB in vendors area. Do you want to start it? [y/n] y
Going to start MongoDB...
Trying to start admin server... \c
started
Trying to start API server... \c
started
Trying to start scheduler server... \c
started
Found Hadoop in vendors area. Do you want to start it? [y/n] y
Going to start Hadoop...
starting namenode, logging to /root/PredictionIO-0.6.3/vendors/hadoop-1.2.1/libexec/../logs/hadoop-root-namenode-app02.out
localhost: starting datanode, logging to /root/PredictionIO-0.6.3/vendors/hadoop-1.2.1/libexec/../logs/hadoop-root-datanode-app02.out
localhost: starting secondarynamenode, logging to /root/PredictionIO-0.6.3/vendors/hadoop-1.2.1/libexec/../logs/hadoop-root-secondarynamenode-app02.out
starting jobtracker, logging to /root/PredictionIO-0.6.3/vendors/hadoop-1.2.1/libexec/../logs/hadoop-root-jobtracker-app02.out
localhost: starting tasktracker, logging to /root/PredictionIO-0.6.3/vendors/hadoop-1.2.1/libexec/../logs/hadoop-root-tasktracker-app02.out

==============================

好了,如果一切顺利的情况下

用游览器打开http://localhost:9000/

你就可以看到这样的一个页面




这个时候你还不能做任何事情,必须使用bin/users这个命令添加管理员的用户名和密码

搞定之后


就可以添加对应的App,以及两个引擎当中的一个了

OK,本文的目的达到
相关文章
    暂无相关文章
本文由 jack 发布于 1709天 9小时 4分钟前,目前已有 3200 人浏览
欢迎大家转载分享,请注明来源及链接;商业媒体转载请获得授权,谢谢合作!
 

添加评论