简体   繁体   English

Oozie 安装程序不起作用

[英]Oozie Setup does not work

Yet another problem with Apache Bigtop. Apache Bigtop 的另一个问题。 This time it is oozie.这次是oozie。

Whenever I want to do something with Oozie, I get the following exception:每当我想用 Oozie 做某事时,我都会收到以下异常:

java.lang.IllegalArgumentException: Oozie URL is not available neither in command option or in the environment

I did some google-fuu and came across the tutorial officially provided by them.我做了一些 google-fuu 并遇到了他们官方提供的教程

But hurray, next problem:但是,万岁,下一个问题:

Whenever I enter每当我进入

bin/oozie-setup.sh -hadoop 2.6.0 $HADOOP_HOME -extjs ext-2.2.zip

I get the following reply:我得到以下答复:

  setting OOZIE_DATA=/var/lib/oozie
  setting OOZIE_CATALINA_HOME=/usr/lib/bigtop-tomcat
  setting CATALINA_TMPDIR=/var/lib/oozie
  setting CATALINA_PID=/var/run/oozie/oozie.pid
  setting CATALINA_BASE=/var/lib/oozie/tomcat-deployment
  setting CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
  setting OOZIE_CONFIG=/etc/oozie/conf
  setting OOZIE_LOG=/var/log/oozie
  setting OOZIE_DATA=/var/lib/oozie
  setting OOZIE_CATALINA_HOME=/usr/lib/bigtop-tomcat
  setting CATALINA_TMPDIR=/var/lib/oozie
  setting CATALINA_PID=/var/run/oozie/oozie.pid
  setting CATALINA_BASE=/var/lib/oozie/tomcat-deployment
  setting CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
  setting OOZIE_CONFIG=/etc/oozie/conf
  setting OOZIE_LOG=/var/log/oozie

 Usage  : oozie-setup.sh <Command and OPTIONS>
          prepare-war [-d directory] [-secure] (-d identifies an alternative directory for processing jars
                                                -secure will configure the war file to use HTTPS (SSL))
          sharelib create -fs FS_URI [-locallib SHARED_LIBRARY] (create sharelib for oozie,
                                                                FS_URI is the fs.default.name
                                                                for hdfs uri; SHARED_LIBRARY, path to the
                                                                Oozie sharelib to install, it can be a tarball
                                                                or an expanded version of it. If ommited,
                                                                the Oozie sharelib tarball from the Oozie
                                                                installation directory will be used)
                                                                (action failes if sharelib is already installed
                                                                in HDFS)
          sharelib upgrade -fs FS_URI [-locallib SHARED_LIBRARY] (upgrade existing sharelib, fails if there
                                                                  is no existing sharelib installed in HDFS)
          db create|upgrade|postupgrade -run [-sqlfile <FILE>] (create, upgrade or postupgrade oozie db with an
                                                                optional sql File)
          (without options prints this usage information)

 EXTJS can be downloaded from http://www.extjs.com/learn/Ext_Version_Archives

I have tried quiet a lot of things.我尝试了很多安静的事情。 I downloaded a version of ext-2.2.zip from an archive.我从档案中下载了一个 ext-2.2.zip 版本。 I downloaded the version 2.3.0.我下载了 2.3.0 版本。 But no matter what I do, the reply stays the same.但无论我做什么,答案都是一样的。 Please help me get Oozie to run.请帮我让 Oozie 运行。 I desperately need it right now!我现在非常需要它!

Few thing you have to check 1st, as per the link you have shared that is to enable the Oozie UI which required ext-2.2 jar.根据您共享的链接,您无需检查第一件事,即启用需要 ext-2.2 jar 的 Oozie UI。 So if you already have Oozie setup done then you have to make the oozie.war file, including DB Driver and ext-2.2.zip file因此,如果您已经完成了 Oozie 设置,那么您必须制作 oozie.war 文件,包括 DB Driver 和 ext-2.2.zip 文件

to do so steps you need to perform is为此,您需要执行的步骤是

  1. download ext-2.2.zip file from source and place the same in OOZIE_HOME/libext folder.从源下载 ext-2.2.zip 文件并将其放在 OOZIE_HOME/libext 文件夹中。

  2. download mysql/oracle/postgress driver and place the same in OOZIE_HOME/libext folder.下载 mysql/oracle/postgress 驱动程序并将其放在 OOZIE_HOME/libext 文件夹中。

  3. start the oozie-setup.sh scriptr by executing通过执行启动 oozie-setup.sh 脚本程序

    $ ./oozie-setup.sh these will update the oozie.war file with supported ext-2.2.zip file and other jars which you have place in OOZIE_HOME/libext location. $ ./oozie-setup.sh 这些将使用支持的 ext-2.2.zip 文件和您在 OOZIE_HOME/libext 位置放置的其他 jar 更新 oozie.war 文件。

  4. once the above is done, you can go to next step by creating Sharedlib manually by simply coping the uncompress sharedlib.tar.gz file available in OOZIE_HOME location to hdfs://localhost:54310/user/hduser/share/lib完成上述操作后,您可以通过手动创建 Sharedlib 进入下一步,只需将 OOZIE_HOME 位置中可用的解压缩 sharedlib.tar.gz 文件复制到 hdfs://localhost:54310/user/hduser/share/lib

  5. Create Oozie DB by executing通过执行创建 Oozie DB

    OOZIE_HOME/bin/./ooziedb.sh create -sqlfile oozie.sql -run OOZIE_HOME/bin/./ooziedb.sh 创建 -sqlfile oozie.sql -run

NOTE: here oozie.sql is a blank file which you need to mention it could be any name but extension should be .sql, also the DB details need to update in oozie-site.xml under OOZIE_HOME/conf/oozie-site.xml file;注意:这里 oozie.sql 是一个空白文件,您需要提及它可以是任何名称,但扩展名应该是 .sql,而且数据库详细信息需要在 OOZIE_HOME/conf/oozie-site.xml 下的 oozie-site.xml 中更新文件; if you have not set any DB configuration details the Oozie will Use defualt DB which is DERBY,如果您尚未设置任何数据库配置详细信息,Oozie 将使用默认的 DERBY 数据库,

  1. Finally if all above points have been setup you can start oozie by最后,如果以上所有点都已设置,您可以通过以下方式启动 oozie

    $OOZIE_HOME/./bin/oozied.sh start $OOZIE_HOME/./bin/oozied.sh 启动

and hit the oozie url and check the status.并点击 oozie 网址并检查状态。 Referecnce URL : Rohit Menon has mention some of the steps which can be done simply. 参考网址:Rohit Menon 提到了一些可以简单完成的步骤。

My Oozie binary (version 5.0.0) is in /home/hduser/oozie/oozie-5.0.0.我的 Oozie 二进制文件(5.0.0 版)在 /home/hduser/oozie/oozie-5.0.0 中。 About the war file, the tutorial I've followed ( https://acadgild.com/blog/beginners-guide-for-oozie-installation ) gives this indication : "Now after setting up the things, move into the bin folder of newly obtained oozie-4.1.0 in the path $HOME/oozie/oozie-4.1.0/" (for me is $HOME/oozie/oozie-5.0.0) .关于war文件,我遵循的教程( https://acadgild.com/blog/beginners-guide-for-oozie-installation )给出了这个指示:“现在设置好东西后,进入bin文件夹在 $HOME/oozie/oozie-4.1.0/" 路径中新获得的 oozie-4.1.0 (对我来说是 $HOME/oozie/oozie-5.0.0)

"Now prepare a war file by using the below command : sudo ./oozie-setup.sh prepare-war " but, for my installation this command doesn't worked, because oozie-setup.sh give me the help indication about the usage : “现在使用以下命令准备一个战争文件: sudo ./oozie-setup.sh prepare-war ”但是,对于我的安装,这个命令不起作用,因为 oozie-setup.sh 给了我关于用法的帮助指示: 命令回复(部分)

My solution was simply to go one level up from the /bin directory and give this command : hduser@:~/oozie/oozie-5.0.0$ bin/oozie-setup.sh (without the string "prepare-war").我的解决方案只是从 /bin 目录上一级并给出以下命令:hduser@:~ /oozie/oozie -5.0.0$ bin/oozie-setup.sh (不带字符串“prepare-war”)。 This worked for me.这对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM