NodeJS is installed as part of the build process only, you shouldn't need to install it again outside the build process. Let me know if you face any issues. Thanks!
On Wed, 13 Apr 2016 at 12:54 Rashmi Varma <[email protected]> wrote: > Thanks Ankeet. Its working now. I had to install nodejs-legacy package. > Now I can see the UI. > > Thanks and Regards, > Rashmi > > On Wed, Apr 13, 2016 at 12:51 PM, Ankeet Maini <[email protected]> > wrote: > >> Hi Rashmi, >> >> The problem is because you don't have node available globally. When you >> built the source using *mvn install*, you should be able to see a `node` >> folder created inside `lens-ui`. >> >> Please do >> -> *cd node/node-v0.10.32-darwin-x64/bin* >> *-> npm start* >> >> This will bring up the UI server at port 8082. Your lens server should be >> running at this location http://localhost:9999/lensapi/. >> >> Let me know if you could get it running. >> >> On Wed, 13 Apr 2016 at 12:43 Rashmi Varma <[email protected]> wrote: >> >>> Hi, >>> I have downloaded the source and built it. However, am not able to bring >>> up the lens-ui. The error I am getting is, >>> >>> lens-ui@ dev /home/rashmi/apache-lens-2.5.0-beta/lens-ui >>> > lensserver='http://0.0.0.0:9999/lensapi/' port=8082 node server.js & >>> node_modules/webpack/bin/webpack.js --watch >>> >>> sh: 1: node: not found >>> /usr/bin/env: node: No such file or directory >>> npm ERR! weird error 127 >>> npm WARN This failure might be due to the use of legacy binary "node" >>> npm WARN For further explanations, please read >>> /usr/share/doc/nodejs/README.Debian >>> >>> npm ERR! not ok code 0 >>> >>> Please suggest how to resolve this. >>> >>> Thanks and Regards, >>> >>> On Tue, Apr 12, 2016 at 2:13 PM, Rashmi Varma <[email protected]> >>> wrote: >>> >>>> Thanks. Will try it out and get back on this. >>>> >>>> On Tue, Apr 12, 2016 at 2:12 PM, amareshwarisr . <[email protected] >>>> > wrote: >>>> >>>>> You will find that in the source release and you need to follow build >>>>> from source instructions : >>>>> http://download.nus.edu.sg/mirror/apache/lens/2.5-beta/apache-lens-2.5.0-beta-source-release.zip >>>>> >>>>> On Tue, Apr 12, 2016 at 2:09 PM, Rashmi Varma <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> There is no lensui folder in the lens distribution that I have. >>>>>> Its apache-lens-2.5.0-beta-bin. Where can I get this? >>>>>> >>>>>> Thanks and Regards, >>>>>> >>>>>> On Tue, Apr 12, 2016 at 2:06 PM, Rajat Khandelwal < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> I think the lens UI you're trying out is the java UI and it's >>>>>>> deprecated. We have a new UI written in nodejs. To access that, >>>>>>> >>>>>>> * Start the server >>>>>>> * Go to lens/lens-ui >>>>>>> * run `npm run dev` >>>>>>> * Open localhost:8082/ >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Tue, Apr 12, 2016 at 1:56 PM Rashmi Varma <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> The logs are: >>>>>>>> 12 Apr 2016 08:23:27 [ef9bc6f3-2af8-4b10-940d-3a2fdfece056] >>>>>>>> [grizzly-http-server-6] ERROR >>>>>>>> org.apache.lens.server.LensRequestListener - >>>>>>>> Encountered HTTP exception >>>>>>>> org.glassfish.jersey.media.multipart.internal.FormDataParamValueFactoryProvider$FormDataParamException: >>>>>>>> HTTP 400 Bad Request >>>>>>>> at >>>>>>>> org.glassfish.jersey.media.multipart.internal.FormDataParamValueFactoryProvider$FormDataParamValueFactory.provide(FormDataParamValueFactoryProvider.java:360) >>>>>>>> ~[jersey-media-multipart-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.spi.internal.ParamValueFactoryWithSource.provide(ParamValueFactoryWithSource.java:71) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.spi.internal.ParameterValueHelper.getParameterValues(ParameterValueHelper.java:90) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$AbstractMethodParamInvoker.getParamValues(JavaResourceMethodDispatcherProvider.java:127) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) >>>>>>>> [jersey-common-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) >>>>>>>> [jersey-common-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.internal.Errors.process(Errors.java:315) >>>>>>>> [jersey-common-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.internal.Errors.process(Errors.java:297) >>>>>>>> [jersey-common-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.internal.Errors.process(Errors.java:267) >>>>>>>> [jersey-common-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) >>>>>>>> [jersey-common-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) >>>>>>>> [jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) >>>>>>>> [jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384) >>>>>>>> [jersey-container-grizzly2-http-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) >>>>>>>> [grizzly-http-server-2.3.23.jar:2.3.23] >>>>>>>> at >>>>>>>> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) >>>>>>>> [grizzly-framework-2.3.23.jar:2.3.23] >>>>>>>> at >>>>>>>> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571) >>>>>>>> [grizzly-framework-2.3.23.jar:2.3.23] >>>>>>>> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_73] >>>>>>>> Caused by: org.glassfish.jersey.internal.inject.ExtractorException: >>>>>>>> javax.ws.rs.ProcessingException: Error un-marshalling JAXB object of >>>>>>>> type: >>>>>>>> class org.apache.lens.api.LensConf. >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.internal.inject.AbstractParamValueExtractor.convert(AbstractParamValueExtractor.java:145) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.internal.inject.SingleValueExtractor.extract(SingleValueExtractor.java:84) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.media.multipart.internal.FormDataParamValueFactoryProvider$FormDataParamValueFactory.provide(FormDataParamValueFactoryProvider.java:358) >>>>>>>> ~[jersey-media-multipart-2.22.1.jar:na] >>>>>>>> ... 22 common frames omitted >>>>>>>> Caused by: javax.ws.rs.ProcessingException: Error un-marshalling >>>>>>>> JAXB object of type: class org.apache.lens.api.LensConf. >>>>>>>> at >>>>>>>> org.glassfish.jersey.jaxb.internal.JaxbStringReaderProvider$RootElementProvider$1.fromString(JaxbStringReaderProvider.java:199) >>>>>>>> ~[jersey-media-jaxb-2.22.1.jar:na] >>>>>>>> at >>>>>>>> org.glassfish.jersey.server.internal.inject.AbstractParamValueExtractor.convert(AbstractParamValueExtractor.java:139) >>>>>>>> ~[jersey-server-2.22.1.jar:na] >>>>>>>> ... 25 common frames omitted >>>>>>>> Caused by: java.lang.NullPointerException: null >>>>>>>> at java.io.StringReader.<init>(StringReader.java:50) ~[na:1.8.0_73] >>>>>>>> at >>>>>>>> org.glassfish.jersey.jaxb.internal.JaxbStringReaderProvider$RootElementProvider$1.fromString(JaxbStringReaderProvider.java:185) >>>>>>>> ~[jersey-media-jaxb-2.22.1.jar:na] >>>>>>>> ... 26 common frames omitted >>>>>>>> 12 Apr 2016 08:23:27 [ef9bc6f3-2af8-4b10-940d-3a2fdfece056] >>>>>>>> [grizzly-http-server-6] INFO >>>>>>>> org.glassfish.jersey.filter.LoggingFilter - >>>>>>>> 36 * Server responded with a response on thread grizzly-http-server-6 >>>>>>>> 36 < 400 >>>>>>>> >>>>>>>> 12 Apr 2016 08:23:27 [4f0e8b53-152e-4ac3-94ce-8e9003661990] >>>>>>>> [grizzly-http-server-1] INFO >>>>>>>> org.glassfish.jersey.filter.LoggingFilter - >>>>>>>> 37 * Server has received a request on thread grizzly-http-server-1 >>>>>>>> 37 > GET http://127.0.0.1:19999/index.html >>>>>>>> 37 > accept: >>>>>>>> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 >>>>>>>> 37 > accept-encoding: gzip, deflate, sdch >>>>>>>> 37 > accept-language: en-US,en;q=0.8 >>>>>>>> 37 > cache-control: max-age=0 >>>>>>>> 37 > connection: keep-alive >>>>>>>> 37 > host: 127.0.0.1:19999 >>>>>>>> 37 > referer: http://127.0.0.1:19999/index.html >>>>>>>> 37 > upgrade-insecure-requests: 1 >>>>>>>> 37 > user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 >>>>>>>> (KHTML, like Gecko) Ubuntu Chromium/49.0.2623.108 Chrome/49.0.2623.108 >>>>>>>> Safari/537.36 >>>>>>>> >>>>>>>> >>>>>>>> After this, there is a series of normal logs like the one above >>>>>>>> without any exception. >>>>>>>> >>>>>>>> Thanks and Regards >>>>>>>> >>>>>>>> On Tue, Apr 12, 2016 at 1:42 PM, amareshwarisr . < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Can you check lensserver logs and paste whats the error you are >>>>>>>>> seeing? >>>>>>>>> >>>>>>>>> On Tue, Apr 12, 2016 at 1:34 PM, Rashmi Varma < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> I tried that. Its not working. >>>>>>>>>> >>>>>>>>>> On Tue, Apr 12, 2016 at 1:18 PM, Rashmi Varma < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> I have successfully installed lens and run the example script >>>>>>>>>>> run-examples.sh. However, I am not able to use the lens UI. When I >>>>>>>>>>> access >>>>>>>>>>> the URL, it asks me for login credentials, viz., email id and >>>>>>>>>>> password and >>>>>>>>>>> there is no option for creating a new user. >>>>>>>>>>> >>>>>>>>>>> Please help. >>>>>>>>>>> >>>>>>>>>>> Thanks and Regards, >>>>>>>>>>> Rashmi >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>> >>>>> >>>> >>> >
