Oozie 安装笔记

Oozie 安装笔记 版本 3.0.0

 

 

1.      下载 oozie 3.0.0版本文件。

http://oozie.apache.org/ 或者


oozie下载文件: http://download.csdn.net/detail/ruishenh/6561255 

 ext-2.2.zip文件:http://download.csdn.net/detail/ruishenh/6562161

2.      安装 & 配置

bin/oozie-setup.sh -hadoop 0.20.2/usr/local/hadoop/ -extjs ext-2.2.zip

 

A.     修改 hadoop 配置文件增加

修改core-site.xml

<!-- OOZIE -->

                   <property>

                      <name>hadoop.proxyuser.hcr.hosts</name>

                   <value>slave2</value>

               </property>

              <property>

                 <name>hadoop.proxyuser.hcr.groups</name>

           </property>

3.启动

bin/oozie-start.sh &

 

 

 

3.      运行实例

 

$OOZIE_HOME/bin/oozie job -oozie http://localhost:11000/oozie-config examples/apps/map-reduce/job.properties –run

 

 

运行之前注意:

在job中的配置属性这两个属性:

nameNode=hdfs://master:9000

jobTracker=master:9001

修改成mysql库

 

1.      修改属性

在oozie-site.xml中加入

  <property>
        <name>oozie.service.JPAService.jdbc.driver</name>
       <value>com.mysql.jdbc.Driver</value>
        <description>
            JDBC driverclass.
        </description>
    </property>

    <property>
       <name>oozie.service.JPAService.jdbc.url</name>
        <value>jdbc:mysql://你的IP:3306/${oozie.db.schema.name}?     useUnicode=true&amp;characterEncoding=utf8</value>
        <description>
            JDBC URL.
        </description>
    </property>

        <property>
        <name>oozie.service.JPAService.jdbc.username</name>
        <value>用户</value>
        <description>
            DB username.
        </description>
    </property>

    <property>
       <name>oozie.service.JPAService.jdbc.password</name>
        <value>密码</value>
        <description>
            DB userpassword.

            IMPORTANT:if password is emtpy leave a 1 space string, the service trims the value,
                      if empty Configuration assumes it is NULL.
        </description>
    </property>

 

 

2.如何数据库没有整理好,如下是mysql数据库数据库文件创建和赋值权限

Copy于网上

http://blog.csdn.net/joe_007/article/details/8291610

1. 在本机的mysql中创建oozie对应的数据库和用户名,密码

$ mysql -u root -p

Enter password: ******

 

mysql> create database oozie;

Query OK, 1 row affected (0.03 sec)

 

mysql>  grant all privileges on oozie.* to 'oozie'@'localhost' identified by 'oozie';

Query OK, 0 rows affected (0.03 sec)

 

mysql>  grant all privileges on oozie.* to 'oozie'@'%' identified by 'oozie';

Query OK, 0 rows affected (0.03 sec)

 

mysql> exit

Bye

 

 

 

 

标注:如果mysql没启动

查看:/etc/rc.d/init.d/mysqld status

启动:/etc/init.d/mysqld start或者servicemysqld restart,而service mysqld stop停止mysql的服务)

 

 

修改root密码

UPDATE user SET Password=PASSWORD('root')where USER='root';

 

 

启动后,

如果报错,查看logs/下,如果缺少jar包,可以把相关jar包拷贝到

oozie-server/lib/下

 

 

接下来去看页面就ok了

http://slave2:11000/oozie/

你可能感兴趣的:(hadoop,oozie,oozie,Oozie安装,安装笔记)