This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WHIRR-240. [HBase] Enable support for HBase 0.90.x (Bruno Dumon via a…
…savu) git-svn-id: https://svn.apache.org/repos/asf/incubator/whirr/trunk@1153757 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Andrei Savu
committed
Aug 4, 2011
1 parent
c78a968
commit d5984ad
Showing
10 changed files
with
180 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# | ||
# 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. | ||
# | ||
|
||
# | ||
# HBase 0.90.x on Cloudera Hadoop Cluster on AWS EC2 | ||
# | ||
|
||
# Read the Configuration Guide for more info: | ||
# http://incubator.apache.org/whirr/configuration-guide.html | ||
|
||
# Change the cluster name here | ||
whirr.cluster-name=hbase-0.90 | ||
|
||
# Change the number of machines in the cluster here | ||
whirr.instance-templates=1 zookeeper+hadoop-namenode+hadoop-jobtracker+hbase-master,3 hadoop-datanode+hadoop-tasktracker+hbase-regionserver | ||
|
||
# For EC2 set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables. | ||
whirr.provider=aws-ec2 | ||
whirr.identity=${env:AWS_ACCESS_KEY_ID} | ||
whirr.credential=${env:AWS_SECRET_ACCESS_KEY} | ||
|
||
# The size of the instance to use. See http://aws.amazon.com/ec2/instance-types/ | ||
whirr.hardware-id=c1.xlarge | ||
# Ubuntu 10.04 LTS Lucid. See http://alestic.com/ | ||
whirr.image-id=us-east-1/ami-da0cf8b3 | ||
# If you choose a different location, make sure whirr.image-id is updated too | ||
whirr.location-id=us-east-1 | ||
|
||
# By default use the user system SSH keys. Override them here. | ||
# whirr.private-key-file=${sys:user.home}/.ssh/id_rsa | ||
# whirr.public-key-file=${whirr.private-key-file}.pub | ||
|
||
# The HBase version to use. | ||
whirr.hbase.tarball.url=http://apache.cu.be/hbase/hbase-0.90.3/hbase-0.90.3.tar.gz | ||
|
||
# The Hadoop version to use. See http://hbase.apache.org/book/hadoop.html | ||
# The default Hadoop version used by Whirr does not fulfill the HBase 0.90.x requirements. | ||
# Whirr will replace the hadoop-core jar in HBase with the one from the actually installed Hadoop. | ||
# This example uses Cloudera's CDH3. | ||
whirr.hadoop.tarball.url=http://archive.cloudera.com/cdh/3/hadoop-0.20.2-cdh3u1.tar.gz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...s/hbase/src/test/java/org/apache/whirr/service/hbase/integration/HBase089ServiceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package org.apache.whirr.service.hbase.integration; | ||
|
||
import org.junit.BeforeClass; | ||
|
||
public class HBase089ServiceTest extends HBaseServiceTest { | ||
@BeforeClass | ||
public static void setUp() throws Exception { | ||
controller = HBaseServiceController.getInstance("whirr-hbase-test.properties"); | ||
controller.ensureClusterRunning(); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...s/hbase/src/test/java/org/apache/whirr/service/hbase/integration/HBase090ServiceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package org.apache.whirr.service.hbase.integration; | ||
|
||
import org.junit.BeforeClass; | ||
|
||
public class HBase090ServiceTest extends HBaseServiceTest { | ||
@BeforeClass | ||
public static void setUp() throws Exception { | ||
controller = HBaseServiceController.getInstance("whirr-hbase-0.90-test.properties"); | ||
controller.ensureClusterRunning(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
services/hbase/src/test/resources/whirr-hbase-0.90-test.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# 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. | ||
# | ||
whirr.cluster-name=hbaseclustertest | ||
whirr.instance-templates=1 hadoop-namenode+hadoop-jobtracker+zookeeper+hbase-master+hbase-thriftserver,1 hadoop-datanode+hadoop-tasktracker+hbase-regionserver | ||
|
||
whirr.provider=${sys:whirr.test.provider} | ||
whirr.identity=${sys:whirr.test.identity} | ||
whirr.credential=${sys:whirr.test.credential} | ||
|
||
whirr.hbase.tarball.url=http://apache.cu.be/hbase/hbase-0.90.3/hbase-0.90.3.tar.gz | ||
whirr.hadoop.tarball.url=http://archive.cloudera.com/cdh/3/hadoop-0.20.2-cdh3u0.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters