Thanks Alan.

I am very new to Spark. I am trying to set Spark development environment in 
Windows. I added below mentioned "export" as "set" in sbt.bat file and tried, 
it was not working. Where will I see .gitconfig?

set JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=myservername -Dhttp.proxyPort=8080 
-Dhttp.proxyUser=username -Dhttp.proxyPassword=password

Thanks
Arockia Raja 

-----Original Message-----
From: Alan Burlison [mailto:alan.burli...@oracle.com] 
Sent: Thursday, March 06, 2014 12:29 PM
To: user@spark.apache.org
Cc: Mayur Rustagi; Jeyaraj, Arockia R (Arockia)
Subject: Re: Access SBT with proxy

On 06/03/2014 18:08, Mayur Rustagi wrote:

> export JAVA_OPTS="$JAVA_OPTS -Dhttp.proxyHost=yourserver
> -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username 
> -Dhttp.proxyPassword=password"

I had exactly the same problem and tried the above, it worked for some of the 
components but the problem was that stuff that was pulled in from git failed 
because some of the URLs in in the Spark wad are git:// ones and not http:// 
ones. To get git to play nice through a HTTP proxy I had to add the following 
to my .gitconfig:

----------
[http]
         proxy = http://yourserver:8080
[url "https://github.com/";]
         insteadOf = git://github.com/
----------

So you'll probably need to do that in addition to Mayur's suggestion.

--
Alan Burlison
--

Reply via email to