• oozie安装步骤


    1.安装mysql数据库(root用户)

    #先删除5.6版本Mysql
    sudo service mysql stop
    sudo rpm -qa|grep -i mysql
    sudo rpm -e MySQL-server-5.6.24-1.el6.x86_64
    sudo rpm -e MySQL-client-5.6.24-1.el6.x86_64
    
    #安装mysql前必须删除或者重命名/var/lib/mysql原数据库的数据
    sudo mv /var/lib/mysql/ /var/lib/mysql_20160703
    sudo yum -y install mysql mysql-devel mysql-server
    sudo service mysqld start
    sudo chkconfig mysqld on
    
    #设置root用户密码
    sudo mysqladmin -uroot password '123456'

    2. 创建oozie数据库

    mysql> create database oozie ;
    mysql> grant all on *.* to root@'localhost' identified by '123456' ;
    mysql> flush privileges ;

    3. 上传解压oozie包(hadoop用户)

    tar zxf oozie-4.0.0-cdh5.3.6.tar.gz -C /opt/modules/cdh

    4. 修改core-site.xml(hadoop安装目录下面的即可)

    <!-- OOZIE -->
    <property>
      <name>hadoop.proxyuser.beifeng.hosts</name>
      <value>*</value>
    </property>
    <property>
      <name>hadoop.proxyuser.beifeng.groups</name>
      <value>*</value>
    </property>

    5. 重启hadoop

    stop-dfs.sh
    stop-yarn.sh
    start-dfs.sh
    start-yarn.sh

    4、解压oozie-hadooplibs

    tar zvxf oozie-hadooplibs-4.0.0-cdh5.3.6.tar.gz

    5、创建libext,拷贝jar包

    mkdir /opt/modules/oozie-4.0.0-cdh5.3.6/libext
    cp hadooplibs/hadooplib-2.5.0-cdh5.3.6.oozie-4.0.0-cdh5.3.6/* libext/
    cp /opt/softwares/oozie/ext-2.2.zip libext/
    cp /opt/softwares/mysql-connector-java-5.1.27/mysql-connector-java-5.1.27-bin.jar libext/

    6、修改oozie-site.xml

    <property>
      <name>oozie.service.HadoopAccessorService.hadoop.configurations</name>
      <value>*=/opt/modules/cdh/hadoop-2.5.0-cdh5.3.6/etc/hadoop</value>
    </property>
    <property>
      <name>oozie.service.JPAService.jdbc.driver</name>
      <value>com.mysql.jdbc.Driver</value>
    </property>
    <property>
      <name>oozie.service.JPAService.jdbc.url</name>
      <value>jdbc:mysql://localhost:3306/oozie</value>
    </property>
    <property>
      <name>oozie.service.JPAService.jdbc.username</name>
      <value>root</value>
    </property>
    <property>
      <name>oozie.service.JPAService.jdbc.password</name>
      <value>123456</value>
    </property>

    7、执行安装初始化命令

    bin/oozie-setup.sh prepare-war
    bin/oozie-setup.sh sharelib create -fs hdfs://hadoop-1:9000 -locallib oozie-sharelib-4.0.0-cdh5.3.6-yarn.tar.gz
    bin/oozie-setup.sh db create -run -sqlfile oozie.sql

    8、启动oozie服务

    bin/oozied.sh start
  • 相关阅读:
    jq动画效果
    each循环和节点操作
    jquery的基础语法
    JS作用域
    DOM事件
    js语法一
    socketserver模块与mysql语句(一)
    亲测idea编辑器控制台中文乱码成功的解决方法
    PHP Fatal error: Call to undefined function json_decode()
    PHP <? 标签问题导致不能正确运行代码
  • 原文地址:https://www.cnblogs.com/guanhao/p/5650144.html
Copyright © 2020-2023  润新知