Thank you! Regards,
Alfonso Nishikawa 2016-12-10 12:46 GMT-01:00 Aruna Karunarathna <sujithu...@gmail.com>: > More than happy to engage. Created an issue [1] and attached a patch after > testing , so that this will be fixed in upcoming release. > > > [1]. https://issues.apache.org/jira/browse/GORA-496 > > Regards, > Aruna > > > On Sat, Dec 10, 2016 at 4:33 AM, Alfonso Nishikawa < > alfonso.nishik...@gmail.com> wrote: > >> Hi, Aruna. >> >> I had now opportunity to check it at home, and it works. >> I wrote you a wrong command. Since you are executing gora from /bin/, the >> command must be: >> >> $ bin/gora goracompiler ../gora-tutorial/src/main/avro/pageview.json ../ >> gora-tutorial/src/main/java/ >> >> What I find wrong is that gora-compiler-cli/.../GoraCompilerCLI.java is >> writing the output to a log file instead of the console. You will find a >> file called "gora.log" in the current directory with the output of your >> command. >> >> Take a look at /conf/log4j.properties and set as the first configuration >> line: >> >> gora.root.logger=INFO,DRFA*,console* >> >> With this change you will be able to see the output :) >> >> With no doubt, the tutorial should be updated, and maybe a good >> improvement would be to make .../bin/gora script to use an specific >> log4j.properties to write the output to console (I believe). I find not >> desirable for the cli version to not output to console by default. If you >> want, you can open us an issue to discuss at >> https://issues.apache.org/jira/browse/GORA/ :) >> Thank you for pointing out. >> >> Regards, >> >> Alfonso Nishikawa >> >> >> 2016-12-09 10:25 GMT-01:00 Aruna Karunarathna <sujithu...@gmail.com>: >> >>> >>> >>> On Fri, Dec 9, 2016 at 4:40 PM, Aruna Karunarathna <sujithu...@gmail.com >>> > wrote: >>> >>>> Hi Alfonso, >>>> >>>> Great!, thanks for the support, I was mislead since the file was >>>> already there [1] in the repo. >>>> >>>> Small suggestion, shouldn't the ./gora goracompiler command should be >>>> more descriptive, like expecting input and output. >>>> >>> Apologies, I did see expecting input and output in the tutorial, however >>> *./gora >>> goracompiler* did not gave any output for me. >>> >>>> >>>> [1]. https://github.com/arunasujith/gora/blob/master/gora-tutoria >>>> l/src/main/java/org/apache/gora/tutorial/log/generated/Pageview.java >>>> >>>> Regards, >>>> Aruna >>>> >>>> On Fri, Dec 9, 2016 at 4:23 PM, Alfonso Nishikawa < >>>> alfonso.nishik...@gmail.com> wrote: >>>> >>>>> Amendment: >>>>> >>>>> Should generate gora-tutorial/src/main/java/or >>>>> g/apache/gora/tutorial/log/generated/Pageview.java >>>>> >>>>> Regards, >>>>> Alfonso Nishikawa >>>>> >>>>> 2016-12-09 11:51 GMT+01:00 Alfonso Nishikawa < >>>>> alfonso.nishik...@gmail.com>: >>>>> >>>>>> Hi, Aruna. >>>>>> >>>>>> Syntax: >>>>>> >>>>>> $ ./gora goracompiler <input file/folder> <output folder> >>>>>> >>>>>> Does this generates the entity classes into the folder >>>>>> gora-tutorial/src/main/java/? (executed in the root directory of the >>>>>> project): >>>>>> >>>>>> $ bin/gora goracompiler gora-tutorial/src/main/avro/pageview.json >>>>>> gora-tutorial/src/main/java/ >>>>>> >>>>>> I'm not at home at this moment, so I can't check it. >>>>>> >>>>>> Regards, >>>>>> >>>>>> Alfonso Nishikawa >>>>>> >>>>>> 2016-12-09 4:32 GMT+01:00 Aruna Karunarathna <sujithu...@gmail.com>: >>>>>> >>>>>>> Hi Alfonso, >>>>>>> >>>>>>> Thanks for the reply, I tried that also, but didn't gave me any >>>>>>> output. Is there any debug option for gora command to analyze more? >>>>>>> I'm running in ubuntu 14.04 in JDK 1.8.0_101. >>>>>>> >>>>>>> *./gora* command output the following. >>>>>>> >>>>>>> aruna@aruna-laptop:~/projects/gora/bin$ ./gora >>>>>>> Usage: run COMMAND [COMMAND options] >>>>>>> where COMMAND is one of: >>>>>>> goracompiler Run Compiler >>>>>>> specificcompiler Run Avro Specific Compiler >>>>>>> dynamocompiler Run Gora DynamoDB Compiler >>>>>>> goracirackspace Run the GoraCI Rackspace orchestration >>>>>>> setup >>>>>>> goracichef Run the GoraCI Chef software >>>>>>> provisioning setup >>>>>>> logmanager Run the tutorial log manager >>>>>>> distributedlogmanager Run the tutorial distributed log manager >>>>>>> loganalytics Run the tutorial log analytics >>>>>>> loganalyticsspark Run the tutorial log analytics spark >>>>>>> junit Run the given JUnit test >>>>>>> version Print Gora version to terminal >>>>>>> or >>>>>>> MODULE CLASSNAME run the class named CLASSNAME in module MODULE >>>>>>> >>>>>>> >>>>>>> The instruction to run the command is somewhat misleading also, Do I >>>>>>> need to use the command as, *./gora run COMMAND* ? >>>>>>> >>>>>>> *./gora run goracompiler* output the following, >>>>>>> >>>>>>> Error: Could not find or load main class goracompiler >>>>>>> >>>>>>> Regards, >>>>>>> Aruna >>>>>>> >>>>>>> On Fri, Dec 9, 2016 at 3:42 AM, Alfonso Nishikawa < >>>>>>> alfonso.nishik...@gmail.com> wrote: >>>>>>> >>>>>>>> Hi, Aruna. >>>>>>>> >>>>>>>> Have you tried to run it as "./gora goracompiler"? >>>>>>>> >>>>>>>> Regards, >>>>>>>> >>>>>>>> Alfonso Nishikawa >>>>>>>> >>>>>>>> 2016-12-07 6:24 GMT-01:00 Aruna Karunarathna <sujithu...@gmail.com> >>>>>>>> : >>>>>>>> >>>>>>>>> Hi all, >>>>>>>>> >>>>>>>>> I tried to follow the tutorial in [1], and when trying the >>>>>>>>> compiling avro schemes, the goracompiler command fails as follows. I >>>>>>>>> checked out the latest code from github. >>>>>>>>> >>>>>>>>> aruna@aruna-laptop:~/projects/gora/bin$ sh gora goracompiler >>>>>>>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>>>>>>> org/slf4j/LoggerFactory >>>>>>>>> at org.apache.gora.compiler.cli.G >>>>>>>>> oraCompilerCLI.<clinit>(GoraCompilerCLI.java:31) >>>>>>>>> Caused by: java.lang.ClassNotFoundException: >>>>>>>>> org.slf4j.LoggerFactory >>>>>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) >>>>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) >>>>>>>>> at sun.misc.Launcher$AppClassLoad >>>>>>>>> er.loadClass(Launcher.java:331) >>>>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) >>>>>>>>> ... 1 more >>>>>>>>> >>>>>>>>> Any idea why the command is failing? >>>>>>>>> >>>>>>>>> [1]. https://gora.apache.org/current/tutorial.html >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> Aruna >>>>>>>>> -- >>>>>>>>> >>>>>>>>> *Aruna Karunarathna* >>>>>>>>> Mobile: +94 71 9040362 <http://www.wso2.com> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> *Aruna Karunarathna* >>>>>>> Mobile: +94 71 9040362 <http://www.wso2.com> >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> *Aruna Karunarathna* >>>> Mobile: +94 71 9040362 <http://www.wso2.com> >>>> >>> >>> >>> >>> -- >>> >>> *Aruna Karunarathna* >>> Mobile: +94 71 9040362 <http://www.wso2.com> >>> >> >> > > > -- > > *Aruna Karunarathna* > Mobile: +94 71 9040362 <http://www.wso2.com> >