You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by NohSeho <gi...@git.apache.org> on 2017/03/05 07:47:06 UTC

[GitHub] zeppelin pull request #2095: [ZEPPELIN-2094] Decrease npm install retry time...

GitHub user NohSeho opened a pull request:

    https://github.com/apache/zeppelin/pull/2095

    [ZEPPELIN-2094] Decrease npm install retry time (for branch-0.7)

    ### What is this PR for?
    **This pr is for branch-0.7**
    It\u2019s too delayed for npm install when computer do not connected any networks.
    Beacause when npm install, it has too long retry timeout.
    This PR is to decrease retry timeout when npm install.
    [pr for mater](https://github.com/apache/zeppelin/pull/2060)
    
    ### What type of PR is it?
    Improvement
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-2094
    
    ### How should this be tested?
    you must enable any one helium before test
    
    Line 197 In zeppelin-zengine org.apache.zeppelin.helium.HeliumBundleFactory.java
    
    First set with 
    `String npmCommand = "install \u2014loglevel=error\u201d;`
    and You don\u2019t connect any ethernet or wireless internet.
    build & run
    
    and set with
    `String npmCommand = "install \u2014fetch-retries=2 \u2014fetch-retry-factor=1 \u2014fetch-retry-mintimeout=5000 \u2014loglevel=error\u201d;`
    also don\u2019t connect any networks, build & run.
    
    WHY
    retries = 2
    factor = 1
    mintimeout = 5(sec)?
    
    npm use [retry](https://github.com/tim-kos/node-retry) module to retry.
    It refers [this article](http://dthain.blogspot.kr/2009/02/exponential-backoff-in-distributed.html) for retry algorithms.
    It is a math which structured _Math.min(Math.round(random * minTimeout * Math.pow(factor, attempt)), maxTimeout)_.
    In retry source code, between two retries. First retry doesn't care _Math.min()_, just _Math.round(random * minTimeout * Math.pow(factor, attempt))_)
    
    
    Description | Before | After
    ------- | ------- | -------
    Condition | npm's default setting<br>random = False = 1<br>retry = 2<br>minTimeout = 10 (sec)<br>maxTimeout = 60 (sec)<br>factor = 10 | custom setting<br>random = False = 1<br>retry = 2<br>minTimeout = 5 (sec)<br>maxTimeout = 60 (sec)<br>factor = 1<br>
    First retry | Math.round(1 * 10 (sec) * 10^1)) | Math.round(1 * 5 (sec) * 1^1))
    First retry result (Approximately) | 100 (sec) | 5 (sec)
    Second retry | Math.min(Math.round(1 * 10 (sec) * 10^2), 60 (sec)) | Math.min(Math.round(1 * 5 (sec) * 1^2), 60 (sec))
    Second retry result (Approximately) | 60 (sec) | 5 (sec)
    Total waiting time (Approximately) | 160 (sec) | 10 (sec)
    
    
    You can check like this below Screenshots.
    
    ### Screenshots
    Before | After
    -------|-------
    <img width="1077" alt="2017-02-24 12 32 06" src="https://cloud.githubusercontent.com/assets/1144643/23267951/9deaec6e-fa2f-11e6-9171-5792f24de76d.png"> | <img width="1081" alt="2017-02-24 12 37 10" src="https://cloud.githubusercontent.com/assets/1144643/23267954/a12c0c0a-fa2f-11e6-99cd-335deef607ac.png">
    
    
    ### Questions:
    * Does the licenses files need update? N/A
    * Is there breaking changes for older versions? N/A
    * Does this needs documentation? N/A

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/NohSeho/zeppelin ZEPPELIN-2094-for-0.7

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/2095.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2095
    
----
commit a9565ba4a96e719680284b39b08d0976aea73ea1
Author: NohSeho <ia...@sehonoh.kr>
Date:   2017-03-05T06:33:42Z

    [ZEPPELIN-2094] Decrease npm install retry time

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by FRosner <gi...@git.apache.org>.
Github user FRosner commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    Hi @NohSeho I built Zeppelin after your fix and checked again. Now it is still hanging for two minutes before actually moving to the part that was changed. The situation we have is that we have a proxy but it cannot be used because of https://issues.apache.org/jira/browse/ZEPPELIN-2152.
    
    Why is this time so long still? Any clues?
    
    ```
     INFO [2017-03-07 12:52:34,068] ({main} NPMInstaller.java[installNpm]:117) - Installing npm version 3.10.8
     INFO [2017-03-07 12:52:34,070] ({main} NPMInstaller.java[downloadFile]:198) - Downloading http://registry.npmjs.org/npm/-/npm-3.10.8.tgz to /usr/local/zeppelin/local-repo/vis/cache/npm-3.10.8.tar.gz
     INFO [2017-03-07 12:52:34,074] ({main} ProxyConfig.java[getProxyForUrl]:27) - No proxies configured
     INFO [2017-03-07 12:52:34,074] ({main} FileDownloader.java[execute]:91) - No proxy was configured, downloading directly
    ERROR [2017-03-07 12:54:41,887] ({main} HeliumVisualizationFactory.java[installNodeAndNpm]:92) - Could not download npm
    com.github.eirslett.maven.plugins.frontend.lib.InstallationException: Could not download npm
    	at com.github.eirslett.maven.plugins.frontend.lib.NPMInstaller.installNpm(NPMInstaller.java:167)
    	at com.github.eirslett.maven.plugins.frontend.lib.NPMInstaller.install(NPMInstaller.java:82)
    	at org.apache.zeppelin.helium.HeliumVisualizationFactory.installNodeAndNpm(HeliumVisualizationFactory.java:86)
    	at org.apache.zeppelin.helium.HeliumVisualizationFactory.<init>(HeliumVisualizationFactory.java:78)
    	at org.apache.zeppelin.helium.HeliumVisualizationFactory.<init>(HeliumVisualizationFactory.java:64)
    	at org.apache.zeppelin.server.ZeppelinServer.<init>(ZeppelinServer.java:122)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    	at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.createSingletonInstance(CXFNonSpringJaxrsServlet.java:382)
    	at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.createApplicationInstance(CXFNonSpringJaxrsServlet.java:454)
    	at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.createServerFromApplication(CXFNonSpringJaxrsServlet.java:432)
    	at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.init(CXFNonSpringJaxrsServlet.java:93)
    	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:616)
    	at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:396)
    	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871)
    	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
    	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
    	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
    	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
    	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    	at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    	at org.eclipse.jetty.server.Server.start(Server.java:387)
    	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    	at org.eclipse.jetty.server.Server.doStart(Server.java:354)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    	at org.apache.zeppelin.server.ZeppelinServer.main(ZeppelinServer.java:185)
    Caused by: com.github.eirslett.maven.plugins.frontend.lib.DownloadException: Could not download http://registry.npmjs.org/npm/-/npm-3.10.8.tgz
    	at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.download(FileDownloader.java:77)
    	at com.github.eirslett.maven.plugins.frontend.lib.NPMInstaller.downloadFile(NPMInstaller.java:199)
    	at com.github.eirslett.maven.plugins.frontend.lib.NPMInstaller.downloadFileIfMissing(NPMInstaller.java:192)
    	at com.github.eirslett.maven.plugins.frontend.lib.NPMInstaller.installNpm(NPMInstaller.java:124)
    	... 34 more
    Caused by: org.apache.http.conn.HttpHostConnectException: Connect to registry.npmjs.org:80 [registry.npmjs.org/151.101.112.162] failed: Connection timed out (Connection timed out)
    	at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:142)
    	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:319)
    	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
    	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
    	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
    	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
    	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
    	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
    	at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.execute(FileDownloader.java:104)
    	at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.download(FileDownloader.java:65)
    	... 37 more
    Caused by: java.net.ConnectException: Connection timed out (Connection timed out)
    	at java.net.PlainSocketImpl.socketConnect(Native Method)
    	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    	at java.net.Socket.connect(Socket.java:589)
    	at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)
    	at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:125)
    	... 48 more
     WARN [2017-03-07 12:54:41,905] ({main} Helium.java[loadConf]:101) - /usr/local/zeppelin/conf/helium.json does not exists
    ERROR [2017-03-07 12:54:42,241] ({main} ZeppelinServer.java[<init>]:135) - Running 'npm install --fetch-retries=2 --fetch-retry-factor=1 --fetch-retry-mintimeout=5000 --registry=http://registry.npmjs.org/' in /usr/local/zeppelin/local-repo/vis
    
    java.io.IOException: Running 'npm install --fetch-retries=2 --fetch-retry-factor=1 --fetch-retry-mintimeout=5000 --registry=http://registry.npmjs.org/' in /usr/local/zeppelin/local-repo/vis
    
    	at org.apache.zeppelin.helium.HeliumVisualizationFactory.bundle(HeliumVisualizationFactory.java:228)
    	at org.apache.zeppelin.helium.HeliumVisualizationFactory.bundle(HeliumVisualizationFactory.java:102)
    	at org.apache.zeppelin.server.ZeppelinServer.<init>(ZeppelinServer.java:133)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    	at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.createSingletonInstance(CXFNonSpringJaxrsServlet.java:382)
    	at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.createApplicationInstance(CXFNonSpringJaxrsServlet.java:454)
    	at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.createServerFromApplication(CXFNonSpringJaxrsServlet.java:432)
    	at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.init(CXFNonSpringJaxrsServlet.java:93)
    	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:616)
    	at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:396)
    	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871)
    	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
    	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
    	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
    	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
    	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    	at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    	at org.eclipse.jetty.server.Server.start(Server.java:387)
    	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    	at org.eclipse.jetty.server.Server.doStart(Server.java:354)
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    	at org.apache.zeppelin.server.ZeppelinServer.main(ZeppelinServer.java:185)
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by 1ambda <gi...@git.apache.org>.
Github user 1ambda commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    Then, What @NohSeho fixed is not related with that part. It's the delay caused by maven-frontend-plugin while downloading nodejs, npm. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by FRosner <gi...@git.apache.org>.
Github user FRosner commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    That would be amazing. :)
    -- 
    Sent from my phone. Please excuse my brevity.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by NohSeho <gi...@git.apache.org>.
Github user NohSeho commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    @FRosner That's sounds not good :(, I'm not a member with zeppelin, but I don't think that not a major problem with yours, sincerly :( . I think that your problem is a kind of minor problem, and I will do my best solve to with your problem. (It's not a zeppeline's official opinion, and when you need a that, they will response to you guyes :) 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    LGTM and merge to branch-0.7 if no further discussions.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by 1ambda <gi...@git.apache.org>.
Github user 1ambda commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    Thanks @NohSeho. It would be nice if a description for reproducing this issue in 0.7.0


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by FRosner <gi...@git.apache.org>.
Github user FRosner commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    @1ambda you can see it at the time (2 minutes difference):
    
    ```
     INFO [2017-03-07 12:52:34,074] ({main} FileDownloader.java[execute]:91) - No proxy was configured, downloading directly
    ERROR [2017-03-07 12:54:41,887] ({main} HeliumVisualizationFactory.java[installNodeAndNpm]:92) - Could not download npm
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    @NohSeho And please let me know your apache JIRA id, so i can resolve https://issues.apache.org/jira/browse/ZEPPELIN-2094 with your name in assignee.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by FRosner <gi...@git.apache.org>.
Github user FRosner commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    @NohSeho I have the problem that we are behind a proxy and the proxy is not configured. I don't want npm and I don't want node.js but Zeppelin tries to download it for 2 minutes. I thought your fix was going to help but apparently it's not. @1ambda pointed me to the maven-frontend-plugin being the source of my problems but I'd like to know where exactly I need go to change this behaviour.
    
    Does it make sense?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by michaelboulter <gi...@git.apache.org>.
Github user michaelboulter commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    Is there a workaround?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by NohSeho <gi...@git.apache.org>.
Github user NohSeho commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    @Leemoonsoo username is **NohSeho**


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    Thanks @NohSeho. ZEPPELIN-2094 is marked as resolved.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by NohSeho <gi...@git.apache.org>.
Github user NohSeho commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    I will update the pr description soon.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by maheshsenni <gi...@git.apache.org>.
Github user maheshsenni commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    I tried to solve the proxy problem by adding `-Dhttp.proxyHost` and `-Dhttp.proxyPort` to `JAVA_OPTS` in `bin/zeppelin-daemon.sh`. After doing this, npm and node were installed without any problems, but zeppelin server doesn't start and it just hangs after the following log statements. The only work arounds I can think of are,
    1. Removing the proxy options so that node and npm are not installed
    2. Create `conf/helium.json` for which I do not know the format
    
    ```
    INFO [2017-03-14 21:19:16,051] ({main} ZeppelinServer.java[setupWebAppContext]:332) - ZeppelinServer Webapp path: /home/ec2-user/tools/zeppelin-test/webapps
     INFO [2017-03-14 21:19:16,281] ({main} ZeppelinServer.java[main]:176) - Starting zeppelin server
     INFO [2017-03-14 21:19:16,284] ({main} Server.java[doStart]:327) - jetty-9.2.15.v20160210
     INFO [2017-03-14 21:19:18,780] ({main} StandardDescriptorProcessor.java[visitServlet]:297) - NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
     INFO [2017-03-14 21:19:19,097] ({main} NPMInstaller.java[installNpm]:117) - Installing npm version 3.10.8
     INFO [2017-03-14 21:19:19,098] ({main} NPMInstaller.java[downloadFile]:198) - Downloading http://registry.npmjs.org/npm/-/npm-3.10.8.tgz to /home/ec2-user/tools/zeppelin-test/local-repo/vis/cache/npm-3.10.8.tar.gz
     INFO [2017-03-14 21:19:19,100] ({main} ProxyConfig.java[getProxyForUrl]:27) - No proxies configured
     INFO [2017-03-14 21:19:19,100] ({main} FileDownloader.java[execute]:91) - No proxy was configured, downloading directly
     INFO [2017-03-14 21:19:27,838] ({main} NPMInstaller.java[extractFile]:185) - Unpacking /home/ec2-user/tools/zeppelin-test/local-repo/vis/cache/npm-3.10.8.tar.gz into /home/ec2-user/tools/zeppelin-test/local-repo/vis/node/node_modules
     INFO [2017-03-14 21:19:28,371] ({main} NPMInstaller.java[installNpm]:165) - Installed npm locally.
     INFO [2017-03-14 21:19:28,375] ({main} NodeInstaller.java[install]:83) - Installing node version v6.9.1
     INFO [2017-03-14 21:19:28,376] ({main} NodeInstaller.java[downloadFile]:314) - Downloading https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux-x64.tar.gz to /home/ec2-user/tools/zeppelin-test/local-repo/vis/cache/node-v6.9.1-linux-x64.tar.gz
     INFO [2017-03-14 21:19:28,376] ({main} ProxyConfig.java[getProxyForUrl]:27) - No proxies configured
     INFO [2017-03-14 21:19:28,376] ({main} FileDownloader.java[execute]:91) - No proxy was configured, downloading directly
     INFO [2017-03-14 21:19:32,146] ({main} NodeInstaller.java[extractFile]:301) - Unpacking /home/ec2-user/tools/zeppelin-test/local-repo/vis/cache/node-v6.9.1-linux-x64.tar.gz into /home/ec2-user/tools/zeppelin-test/local-repo/vis/node/tmp
     INFO [2017-03-14 21:19:32,895] ({main} NodeInstaller.java[installNodeDefault]:153) - Copying node binary from /home/ec2-user/tools/zeppelin-test/local-repo/vis/node/tmp/node-v6.9.1-linux-x64/bin/node to /home/ec2-user/tools/zeppelin-test/local-repo/vis/node/node
     INFO [2017-03-14 21:19:33,034] ({main} NodeInstaller.java[installNodeDefault]:182) - Installed node locally.
     WARN [2017-03-14 21:19:33,038] ({main} Helium.java[loadConf]:101) - /home/ec2-user/tools/zeppelin-test/conf/helium.json does not exists
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by 1ambda <gi...@git.apache.org>.
Github user 1ambda commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    Hi @FRosner  Could you specify which log is the last line (the last printed) before hang?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin pull request #2095: [ZEPPELIN-2094] Decrease npm install retry time...

Posted by NohSeho <gi...@git.apache.org>.
Github user NohSeho closed the pull request at:

    https://github.com/apache/zeppelin/pull/2095


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    This PR is just merged to branch-0.7 but @asfgit does not close this PR automatically. @NohSeho Can you manually close this PR?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by 1ambda <gi...@git.apache.org>.
Github user 1ambda commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    @FRosner 
    
    https://github.com/apache/zeppelin/blob/master/zeppelin-zengine/src/main/java/org/apache/zeppelin/helium/HeliumBundleFactory.java#L91-#L95


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by FRosner <gi...@git.apache.org>.
Github user FRosner commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    Thanks for clarifying @1ambda. Is there a Jira issue for the first point already? Can you point me to the part of the code where this is configured?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    How about make Zeppelin skip install npm and node.js when no visualization/spell is enabled?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    @FRosner fyi. Made a patch https://github.com/apache/zeppelin/pull/2137


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2095: [ZEPPELIN-2094] Decrease npm install retry time (for b...

Posted by NohSeho <gi...@git.apache.org>.
Github user NohSeho commented on the issue:

    https://github.com/apache/zeppelin/pull/2095
  
    @FRosner hey there, I think that You're in trouble with installing local node.js and npm, isn't right?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---