[关闭]
@tsing1226 2015-12-25T16:42:58.000000Z 字数 1805 阅读 821

oozie

Hue与Oozie集成配置和使用

修改配置hue.ini

###########################################################################
# Settings to configure liboozie
###########################################################################

[liboozie]
  # The URL where the Oozie service runs on. This is required in order for
  # users to submit jobs. Empty value disables the config check.
  oozie_url=http://hadoop-senior01.grc.com:11000/oozie/

  # Requires FQDN in oozie_url if enabled
 #security_enabled=true

  # Location on HDFS where the workflows/coordinator are deployed when submitted.
  remote_deployement_dir=/user/grc/oozie-apps


###########################################################################
# Settings to configure the Oozie app
###########################################################################

[oozie]
  # Location on local FS where the examples are stored.
  local_data_dir=/opt/cdh3.5.6/oozie-4.0.0-cdh5.3.6/examples

  # Location on local FS where the data for the examples is stored.
  sample_data_dir=/opt/cdh3.5.6/oozie-4.0.0-cdh5.3.6/examples

  # Location on HDFS where the oozie examples and workflows are stored.
 remote_data_dir=/user/grc/oozie-apps

  # Maximum of Oozie workflows or coodinators to retrieve in one API call.
  ## oozie_jobs_count=100

  # Use Cron format for defining the frequency of a Coordinator instead of the old frequency number/unit.
  enable_cron_scheduling=true

因为hue需要oozie放在/user/oozie/share/lib下,我们需要配置oozie的lib的存储目录。

修改oozie-site.xml

<property>
    <name>oozie.service.WorkflowAppService.system.libpath</name>
    <value>/user/oozie/share/lib</value>
    <description>
        System library path to use for workflow applications.
        This path is added to workflow application if their job properties sets
        the property 'oozie.use.system.libpath' to true.
    </description>
</property>

上传jar包到HDFS指定目录

bin/oozie-setup.sh sharelib create -fs hdfs://hadoop-senior01.grc.com:8020 -locallib oozie-sharelib-4.0.0-cdh5.3.6-yarn.tar.gz

启动oozie

 bin/oozied.sh start

启动hue

nohup build/env/bin/supervisor &

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注