librelist archives

« back to archive

Fwd: Proxy woes with cascading

Fwd: Proxy woes with cascading

From:
Matthew Rocklin
Date:
2013-09-06 @ 00:35
I'm trying to update dependencies behind a proxy and running into issues.
 In particular cascalog and cascading dependencies seem to fail.

mrockli@VirtualBox:~/workspace/cascalog-test$ lein deps
Retrieving org/apache/hadoop/hadoop-core/1.0.3/hadoop-core-1.0.3.jar from
central
Could not transfer artifact cascading:cascading-hadoop:pom:2.1.6 from/to
conjars (http://conjars.org/repo/): Connection to http://conjars.org refused
Could not transfer artifact cascading.kryo:cascading.kryo:pom:0.4.6 from/to
conjars (http://conjars.org/repo/): Connection to http://conjars.org refused
Could not transfer artifact com.twitter:maple:pom:0.2.2 from/to conjars (
http://conjars.org/repo/): Connection to http://conjars.org refused
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment
variable.

mrockli@VirtualBox:~/workspace/cascalog-test$ echo $http_proxy
http://my.proxy.com:80

My project.clj file

(defproject cascalog-test "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :profiles { :dev {:dependencies [[org.apache.hadoop/hadoop-core
"1.0.3"]]}}
  :jvm-opts ["-Xmx768m"]
  :dependencies [[org.clojure/clojure "1.5.1"]
                 [cascalog "1.10.2"]])

All other services on my machine seem to run through the proxy just fine
(web, https, ssh), and even most dependencies work just fine.  It's just a
few that fail.  Any thoughts?

Best,
-Matt

Re: [leiningen] Fwd: Proxy woes with cascading

From:
Korny Sietsma
Date:
2013-09-06 @ 10:49
Is your proxy using authentication?  Also, is it a NTLM style windows
proxy?  I can highly recommend using cntlm to provide a local proxy to get
past this sort of issue.

Also, it may be a dumb question, but have you set http_proxy in your
environment?

- Korny


On 6 September 2013 10:35, Matthew Rocklin <mrocklin@gmail.com> wrote:

> I'm trying to update dependencies behind a proxy and running into issues.
>  In particular cascalog and cascading dependencies seem to fail.
>
> mrockli@VirtualBox:~/workspace/cascalog-test$ lein deps
> Retrieving org/apache/hadoop/hadoop-core/1.0.3/hadoop-core-1.0.3.jar from
> central
> Could not transfer artifact cascading:cascading-hadoop:pom:2.1.6 from/to
> conjars (http://conjars.org/repo/): Connection to http://conjars.orgrefused
> Could not transfer artifact cascading.kryo:cascading.kryo:pom:0.4.6
> from/to conjars (http://conjars.org/repo/): Connection to
> http://conjars.org refused
> Could not transfer artifact com.twitter:maple:pom:0.2.2 from/to conjars (
> http://conjars.org/repo/): Connection to http://conjars.org refused
> This could be due to a typo in :dependencies or network issues.
> If you are behind a proxy, try setting the 'http_proxy' environment
> variable.
>
> mrockli@VirtualBox:~/workspace/cascalog-test$ echo $http_proxy
> http://my.proxy.com:80
>
> My project.clj file
>
> (defproject cascalog-test "0.1.0-SNAPSHOT"
>   :description "FIXME: write description"
>   :url "http://example.com/FIXME"
>   :license {:name "Eclipse Public License"
>             :url "http://www.eclipse.org/legal/epl-v10.html"}
>   :profiles { :dev {:dependencies [[org.apache.hadoop/hadoop-core
> "1.0.3"]]}}
>   :jvm-opts ["-Xmx768m"]
>   :dependencies [[org.clojure/clojure "1.5.1"]
>                  [cascalog "1.10.2"]])
>
> All other services on my machine seem to run through the proxy just fine
> (web, https, ssh), and even most dependencies work just fine.  It's just a
> few that fail.  Any thoughts?
>
> Best,
> -Matt
>
>


-- 
Kornelis Sietsma  korny at my surname dot com http://korny.info
.fnord { display: none !important; }