Author: asavu
Date: Fri Mar  9 22:22:14 2012
New Revision: 1299076

URL: http://svn.apache.org/viewvc?rev=1299076&view=rev
Log:
WHIRR-35. Include .pac file for browsing to Hadoop clusters started on EC2 
(Andrei Savu)

Added:
    whirr/branches/branch-0.7/resources/
    whirr/branches/branch-0.7/resources/apache/
    whirr/branches/branch-0.7/resources/apache/cassandra/
    whirr/branches/branch-0.7/resources/apache/cassandra/nodetool
    whirr/branches/branch-0.7/resources/apache/cassandra/start
    whirr/branches/branch-0.7/resources/apache/cassandra/stop
    whirr/branches/branch-0.7/resources/apache/cassandra/wipe-state
    whirr/branches/branch-0.7/resources/hadoop-ec2-proxy.pac
Removed:
    whirr/branches/branch-0.7/scripts/
Modified:
    whirr/branches/branch-0.7/CHANGES.txt
    whirr/branches/branch-0.7/src/site/xdoc/quick-start-guide.xml

Modified: whirr/branches/branch-0.7/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/whirr/branches/branch-0.7/CHANGES.txt?rev=1299076&r1=1299075&r2=1299076&view=diff
==============================================================================
--- whirr/branches/branch-0.7/CHANGES.txt (original)
+++ whirr/branches/branch-0.7/CHANGES.txt Fri Mar  9 22:22:14 2012
@@ -14,6 +14,9 @@ Release 0.7.2
 
     WHIRR-407. Upgrade Cassandra to 1.0.6 (Nathan Milford via Andrei Savu)
 
+    WHIRR-35. Include .pac file for browsing to Hadoop clusters started 
+    on EC2 (Andrei Savu)
+
   BUG FIXES
 
 Release 0.7.1 - 2012-02-23

Added: whirr/branches/branch-0.7/resources/apache/cassandra/nodetool
URL: 
http://svn.apache.org/viewvc/whirr/branches/branch-0.7/resources/apache/cassandra/nodetool?rev=1299076&view=auto
==============================================================================
--- whirr/branches/branch-0.7/resources/apache/cassandra/nodetool (added)
+++ whirr/branches/branch-0.7/resources/apache/cassandra/nodetool Fri Mar  9 
22:22:14 2012
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+#
+# 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.
+#
+
+set -x
+set -e
+
+. /etc/profile
+
+nodetool -h localhost $1
+RESULT=$?
+sleep 2
+exit $RESULT

Added: whirr/branches/branch-0.7/resources/apache/cassandra/start
URL: 
http://svn.apache.org/viewvc/whirr/branches/branch-0.7/resources/apache/cassandra/start?rev=1299076&view=auto
==============================================================================
--- whirr/branches/branch-0.7/resources/apache/cassandra/start (added)
+++ whirr/branches/branch-0.7/resources/apache/cassandra/start Fri Mar  9 
22:22:14 2012
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+#
+# 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.
+#
+
+set -x
+set -e
+
+. /etc/profile
+
+# launch using the script created by install
+nohup /etc/rc.local &
+sleep 2

Added: whirr/branches/branch-0.7/resources/apache/cassandra/stop
URL: 
http://svn.apache.org/viewvc/whirr/branches/branch-0.7/resources/apache/cassandra/stop?rev=1299076&view=auto
==============================================================================
--- whirr/branches/branch-0.7/resources/apache/cassandra/stop (added)
+++ whirr/branches/branch-0.7/resources/apache/cassandra/stop Fri Mar  9 
22:22:14 2012
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+#
+# 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.
+#
+
+set -x
+set -e
+
+. /etc/profile
+
+# assume we are the only java process FIXME: unsafe assumption
+killall java
+RESULT=$?
+sleep 2
+exit $RESULT

Added: whirr/branches/branch-0.7/resources/apache/cassandra/wipe-state
URL: 
http://svn.apache.org/viewvc/whirr/branches/branch-0.7/resources/apache/cassandra/wipe-state?rev=1299076&view=auto
==============================================================================
--- whirr/branches/branch-0.7/resources/apache/cassandra/wipe-state (added)
+++ whirr/branches/branch-0.7/resources/apache/cassandra/wipe-state Fri Mar  9 
22:22:14 2012
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+#
+# 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.
+#
+
+set -x
+set -e
+
+. /etc/profile
+
+DD=/var/lib/cassandra
+rm -Rf $DD/data $DD/commitlog $DD/saved_caches
+RESULT=$?
+sleep 2
+exit $RESULT

Added: whirr/branches/branch-0.7/resources/hadoop-ec2-proxy.pac
URL: 
http://svn.apache.org/viewvc/whirr/branches/branch-0.7/resources/hadoop-ec2-proxy.pac?rev=1299076&view=auto
==============================================================================
--- whirr/branches/branch-0.7/resources/hadoop-ec2-proxy.pac (added)
+++ whirr/branches/branch-0.7/resources/hadoop-ec2-proxy.pac Fri Mar  9 
22:22:14 2012
@@ -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";
+}

Modified: whirr/branches/branch-0.7/src/site/xdoc/quick-start-guide.xml
URL: 
http://svn.apache.org/viewvc/whirr/branches/branch-0.7/src/site/xdoc/quick-start-guide.xml?rev=1299076&r1=1299075&r2=1299076&view=diff
==============================================================================
--- whirr/branches/branch-0.7/src/site/xdoc/quick-start-guide.xml (original)
+++ whirr/branches/branch-0.7/src/site/xdoc/quick-start-guide.xml Fri Mar  9 
22:22:14 2012
@@ -111,7 +111,7 @@ whirr.public-key-file=${sys:user.home}/.
     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


Reply via email to