Permalink
Browse files

WHIRR-35. Include .pac file for browsing to Hadoop clusters started o…

…n EC2 (asavu)

git-svn-id: https://svn.apache.org/repos/asf/whirr/trunk@1244378 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 7591ed0 commit 9573633128ddd8da63e8676eb4a02e557437855d @andreisavu andreisavu committed Feb 15, 2012
View
@@ -58,6 +58,9 @@ Trunk (unreleased changes)
WHIRR-463. Fail fast when running as root (asavu)
+ WHIRR-35. Include .pac file for browsing to Hadoop clusters
+ started on EC2 (asavu)
+
BUG FIXES
WHIRR-367. Wrong groupId for zookeeper (Joe Crobak via asavu)
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,25 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+function FindProxyForURL(url, host) {
+ if ((shExpMatch(host, "*ec2*.amazonaws.com*")) ||
+ (shExpMatch(host, "*ec2.internal*")) ||
+ (shExpMatch(host, "*domu*.internal*"))) {
+ return "SOCKS localhost:6666";
+ }
+ return "DIRECT";
+}
@@ -118,7 +118,7 @@ whirr.public-key-file=${sys:user.home}/.ssh/id_rsa.pub
worker nodes in the cluster. The most convenient way to do this is to use a
<a class="externalLink" href="http://en.wikipedia.org/wiki/Proxy_auto-config">proxy auto-config
(PAC) file</a> file, such as
- <a class="externalLink" href="http://apache-hadoop-ec2.s3.amazonaws.com/proxy.pac">this
+ <a class="externalLink" href="https://svn.apache.org/repos/asf/whirr/trunk/resources/hadoop-ec2-proxy.pac">this
one</a> for Hadoop EC2 clusters.</p>
<p>If you are using Firefox, then you may find
<a class="externalLink" href="http://foxyproxy.mozdev.org/">FoxyProxy</a> useful for managing

0 comments on commit 9573633

Please sign in to comment.