Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1139

Hello Samza fails to execute bin/grid bootstrap behind proxy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.11.0
    • Fix Version/s: None
    • Component/s: hello-samza
    • Labels:
      None
    • Environment:

      Linux

      Description

      These are my steps to install hello-samza:

      1. for bin/grid - proxy settings for HTTP connection
        bash-3.2$ export JAVA_OPTS="-Djava.net.useSystemProxies=true -Dhttp.proxyHost=www-proxy.com -Dhttp.proxyPort=8080 -Dhttps.proxyHost=www-proxy.com -Dhttps.proxyPort=8080"

      bash-3.2$ git clone https://git.apache.org/samza-hello-samza.git hello-samza
      Cloning into 'hello-samza'...
      Checking connectivity... done.
      bash-3.2$ cd hello-samza/
      bash-3.2$ git checkout latest
      Branch latest set up to track remote branch latest from origin.
      Switched to a new branch 'latest'

      bash-3.2$ bin/grid bootstrap
      Bootstrapping the system...
      EXECUTING: stop kafka
      Kafka is not installed. Run: bin/grid install kafka
      EXECUTING: stop yarn
      YARN is not installed. Run: bin/grid install yarn
      EXECUTING: stop zookeeper
      Zookeeper is not installed. Run: bin/grid install zookeeper
      EXECUTING: install samza
      ~/.samza/download ~/hello-samza
      Cloning into 'samza'...
      Checking connectivity... done.
      Checking out files: 100% (934/934), done.
      Downloading https://services.gradle.org/distributions/gradle-2.8-bin.zip

      Exception in thread "main" 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 sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
      at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
      at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
      at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:200)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1157)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
      at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
      at org.gradle.wrapper.Download.download(Download.java:44)
      at org.gradle.wrapper.Install$1.call(Install.java:61)
      at org.gradle.wrapper.Install$1.call(Install.java:48)
      at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
      at org.gradle.wrapper.Install.createDist(Install.java:48)
      at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
      at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
      bash-3.2$ export JAVA_OPTS="-Dhttp.proxyHost=www-proxy.us.oracle.com -Dhttp.proxyPort=80 -Dhttps.proxyHost=www-proxy.us.oracle.com -Dhttps.proxyPort=80"

      Please note that I am able to download gradle-2.8-bin.zip from my browser and wget.

      Any pointers on why the above step is failing on downloading gradle-2.8-bin.zip?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jackdesai Jack Desai
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: