2015-07-15 06:22:53 -04:00
|
|
|
<!---
|
|
|
|
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.
|
|
|
|
-->
|
|
|
|
|
2014-09-05 20:36:18 -04:00
|
|
|
# hbase_docker
|
|
|
|
|
|
|
|
## Overview
|
|
|
|
|
|
|
|
The Dockerfile in this folder can be used to build a Docker image running
|
2022-12-13 10:59:27 -05:00
|
|
|
a specific HBase branch or tag(default to master) in standalone mode. It
|
|
|
|
does this by setting up necessary dependencies, checking out the specific
|
|
|
|
branch or tag of HBase from GitHub, and then building HBase. By default,
|
|
|
|
this image will start the HMaster and launch the HBase shell when run.
|
2014-09-05 20:36:18 -04:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-03-06 12:18:12 -05:00
|
|
|
1. Ensure that you have a recent version of Docker installed from
|
2014-09-05 20:36:18 -04:00
|
|
|
[docker.io](http://www.docker.io).
|
2020-03-06 12:18:12 -05:00
|
|
|
1. Set this folder as your working directory.
|
2022-12-13 10:59:27 -05:00
|
|
|
1. Type `docker build -t hbase_docker --build-arg BRANCH_OR_TAG=<branch or tag>.`
|
|
|
|
to build a Docker image called **hbase_docker**. This may take 10 minutes
|
|
|
|
or more the first time you run the command since it will create a Maven
|
|
|
|
repository inside the image as well as checkout the master branch of HBase.
|
2020-03-06 12:18:12 -05:00
|
|
|
1. When this completes successfully, you can run `docker run -it hbase_docker`
|
2014-09-05 20:36:18 -04:00
|
|
|
to access an HBase shell running inside of a container created from the
|
|
|
|
**hbase_docker** image. Alternatively, you can type `docker run -it hbase_docker
|
|
|
|
bash` to start a container without a running HMaster. Within this environment,
|
2020-03-06 12:18:12 -05:00
|
|
|
HBase is built in `/root/hbase-bin`.
|