Attila, Thank you very much, seems like it is working, so if i want to include ExtJS at the time of build what should i do? do build have any option to include extjs libs as well or i have to download extjs to libext and run setup to create war?
./bin/mkdistro.sh -P uber -P hadoop-2 -Dhadoop.version=2.7.1 -DskipTests <---- this is working Ram On Wed, Jun 1, 2016 at 2:39 AM, Attila Sasvari <[email protected]> wrote: > That is strange. Oozie webapp/pom.xml shall contain uber profile, see > https://github.com/apache/oozie/blob/master/webapp/pom.xml#L263 *. > > My first guess that it can be a copy-paste issue (i.e. accidently copied > the above as ./bin/mkdistro.sh -P*uber*,hadoop-2 -Dhadoop.version=2.7.1 > -DskipTests to your Bash terminal)? Anyway, what happens if you execute: > > ./bin/mkdistro.sh -P uber -P hadoop-2 -Dhadoop.version=2.7.1 -DskipTests > > If this does not help either (which would be really odd), then as a last > resort you can try to copy the Hadoop dependencies by yourself prior to > executing oozie-start.sh prepare-war: > > cp `find ~/.m2/repository/org/apache/hadoop/ -name "*2.7.1*.jar"` libtools > > Hope this helps, > - Attila > > > * You can also check the existence of the uber profile the following way > > $ mvn help:all-profiles | grep -B2 -A2 uber > > Listing Profiles for Project: > org.apache.oozie:oozie-webapp:war:4.3.0-SNAPSHOT > > Profile Id: generateDocs (Active: false , Source: pom) > > *Profile Id: uber (Active: false , Source: pom)* > > Profile Id: derby-test (Active: false , Source: pom) > > Profile Id: wfgen (Active: false , Source: pom) > > > On Tue, May 31, 2016 at 7:13 PM, rammohan ganapavarapu < > [email protected]> wrote: > > > I wanted to build oozie-4.2.0 with hadoop shared libs and extJS support, > so > > please help me. > > > > Ram > > > > On Tue, May 31, 2016 at 9:24 AM, rammohan ganapavarapu < > > [email protected]> wrote: > > > > > Hi Attila, > > > > > > Thanks for your suggestion, i have tried that command but getting > bellow > > > warning. > > > > > > [WARNING] The requested profile "*uber*" could not be activated because > > it > > > does not exist. > > > > > > Ram > > > > > > On Mon, May 30, 2016 at 4:08 AM, Attila Sasvari <[email protected] > > > > > wrote: > > > > > >> Hi Ram, > > >> > > >> Have you tried to use the uber mode? > > >> > > >> ./bin/mkdistro.sh -P*uber*,hadoop-2 -Dhadoop.version=2.7.1 -DskipTests > > >> > > >> It will copy the Hadoop dependencies for you. > > >> > > >> Best regards, > > >> Attila > > >> > > >> > > >> Related > > >> > > >> - > > >> > > >> > > > https://mail-archives.apache.org/mod_mbox/oozie-dev/201501.mbox/%[email protected]%3E > > >> - https://issues.apache.org/jira/browse/OOZIE-2297 > > >> > > >> > > >> On Fri, May 27, 2016 at 11:34 PM, rammohan ganapavarapu < > > >> [email protected]> wrote: > > >> > > >> > Peter, > > >> > > > >> > Build went successful but when i try to start oozie getting class > not > > >> found > > >> > error, it seems like oozie war doesnt have hadooplibs. > > >> > > > >> > How i build: > > >> > > > >> > 1. Downloaded oozie-4.2.0 source tar file. > > >> > 2. Updated global pom.xml to ( > > <hadoop.version>2.7.1</hadoop.version>) > > >> > 3. ./mkdistro.sh -P hadoop-2 -DskipTests ( all components > successful) > > >> > 4. start oozie: > > >> > INFO: Oozie webconsole disabled, ExtJS library not specified > > >> > > > >> > New Oozie WAR file with added '' at > > >> > > > >> > > > >> > > > /home/rganapavarapu/oozie-4.2.0/distro/target/oozie-4.2.0-distro/oozie-4.2.0/oozie-server/webapps/oozie.war > > >> > > > >> > > > >> > INFO: Oozie is ready to be started > > >> > > > >> > > > >> > Setting up oozie DB > > >> > setting CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m" > > >> > > > >> > Validate DB Connection > > >> > Exception in thread "main" java.lang.NoClassDefFoundError: > > >> > org/apache/hadoop/util/ReflectionUtils > > >> > at > > >> > > > org.apache.oozie.service.Services.setServiceInternal(Services.java:377) > > >> > at org.apache.oozie.service.Services.<init>(Services.java:111) > > >> > at > > >> org.apache.oozie.tools.OozieDBCLI.getJdbcConf(OozieDBCLI.java:164) > > >> > at > > >> > > > org.apache.oozie.tools.OozieDBCLI.createConnection(OozieDBCLI.java:853) > > >> > at > > >> > > > >> > > org.apache.oozie.tools.OozieDBCLI.validateConnection(OozieDBCLI.java:861) > > >> > at > org.apache.oozie.tools.OozieDBCLI.createDB(OozieDBCLI.java:182) > > >> > at org.apache.oozie.tools.OozieDBCLI.run(OozieDBCLI.java:126) > > >> > at org.apache.oozie.tools.OozieDBCLI.main(OozieDBCLI.java:77) > > >> > Caused by: java.lang.ClassNotFoundException: > > >> > org.apache.hadoop.util.ReflectionUtils > > >> > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > > >> > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > > >> > at java.security.AccessController.doPrivileged(Native Method) > > >> > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > > >> > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > > >> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > > >> > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > > >> > ... 8 more > > >> > > > >> > 5. SO i try to follow this link > > >> > > > >> > > > >> > > > https://dwtobigdata.wordpress.com/2015/08/23/apache-oozie-configuration-with-hadoop-2-6-0/ > > >> > > > >> > but in 4.2.0 oozie i dont see hadoop-2 under hadooplibs dir, so not > > sure > > >> > how to resolve this issue. > > >> > > > >> > Ram > > >> > > > >> > On Fri, May 27, 2016 at 12:29 PM, Peter Cseh <[email protected] > > > > >> > wrote: > > >> > > > >> > > Hi, > > >> > > > > >> > > Can you provide the output of the build and the command you've run > > to > > >> > build > > >> > > oozie? > > >> > > Thank you > > >> > > > > >> > > Peter > > >> > > > > >> > > On Fri, May 27, 2016 at 9:35 AM, rammohan ganapavarapu < > > >> > > [email protected]> wrote: > > >> > > > > >> > > > Any help?? > > >> > > > > > >> > > > On Wed, May 25, 2016 at 5:05 PM, rammohan ganapavarapu < > > >> > > > [email protected]> wrote: > > >> > > > > > >> > > > > Hi, > > >> > > > > > > >> > > > > I am trying to build ozzie 2.4.0 with hadoop 2.7.1, build > > >> successful > > >> > > but > > >> > > > > it doesn't have hadoop-2 under hadooplibs to create war file. > > can > > >> > > someone > > >> > > > > help me? > > >> > > > > > > >> > > > > Ram > > >> > > > > > > >> > > > > > >> > > > > >> > > > > >> > > > > >> > > -- > > >> > > Peter Cseh > > >> > > Software Engineer > > >> > > <http://www.cloudera.com> > > >> > > > > >> > > > >> > > > > > > > > >
