608de317607740d7e84b618b6e69151352cf1872
[docs.git] / manuals / getting-started-guide / src / main / asciidoc / tsdr / tsdr-hbase-install.adoc
1 == TSDR HBase Data Store Installation Guide
2 This document is for the user to install the artifacts that are needed
3 for using HBase Data Store in Time Series Data Repository, which is
4 a new feature available in OpenDaylight Lithium release.
5
6 === Overview
7 The Time Series Data Repository (TSDR) project in OpenDaylight (ODL) creates a framework for collecting, storing, querying, and maintaining time series data in the OpenDaylight SDN controller. It contains  the following services and components:
8
9 * Data Collection Service
10 * Data Storage Service
11 * TSDR Persistence Layer with data stores as plugins
12 * TSDR Data Stores
13 * Data Query Service
14 * Data Aggregation Service
15 * Data Purging Service
16
17 Data Collection Service handles the collection of time series data into TSDR and hands it over to Data Storage Service. Data Storage Service stores the data into TSDR through TSDR Persistence Layer. TSDR Persistence Layer provides generic Service APIs allowing various data stores to be plugged in. Data Aggregation Service aggregates time series fine-grained raw data into course-grained roll-up data to control the size of the data. Data Purging Service periodically purges both fine-grained raw data and course-granined aggregated data according to user-defined schedules.
18
19
20 In Lithium, we implemented Data Collection Service, Data Storage Service, TSDR Persistence Layer, TSDR HBase Data Store, and TSDR H2 Data Store. Among these services and components, time series data is communicated using a common TSDR data model, which is designed and implemented for the abstraction of the time series data commonalities. With these functions, TSDR will be able to collect the data from the data sources and store them into one of the TSDR data stores: either HBase Data Store or H2 Data Store. We also provided a simple query command from Karaf console for the user to retrieve TSDR data from the data stores.
21
22 A future release will contain Data Aggregation service, Data Purging Service, and a full-fledged Data Query Service with Norghbound APIs.
23
24
25 === Pre Requisites for Installing TSDR HBase Data Store 
26 * Software Requirements
27   ** The supported operating system for TSDR HBase Data Store is Linux. We do not support TSDR HBase Data Store on Windows.
28   ** Besides the software that ODL requires, we also requires HBase database running on top of Hadoop.
29
30 === Preparing for Installation
31 * Download HBase (version number to be finalized) from the following website.
32 http://archive.apache.org/dist/hbase/hbase-0.94.15/
33
34
35 === Installing TSDR HBase Data Store 
36 * Installing HBase server
37 In Lithium, we only support HBase single node running together on the same machine as ODL controller.
38 a. create a folder in Linux operating system for the HBase server.
39       For example, create an hbase directory under /usr/lib
40       mkdir /usr/lib/hbase
41 b. Unzip the downloaded HBase server tar file.
42       run the following command to unzip the installation package:
43       tar xvf <hbase-installer-name>  /usr/lib/hbase
44
45 c. Make proper changes in hbase-site.xml
46    .. Under <hbase-install-directory>/conf/, there is a hbase-site.xml. Although it is not recommended, an experience user with HBase canmodify the data directory for hbase server to store the data.
47    .. Modify the value of the property with name "hbase.rootdir" in the file to reflect the desired file directory for storing hbase data.
48
49 The following is an example of the file:
50
51 <configuration>
52   <property>
53     <name>hbase.rootdir</name>
54     <value>file:///usr/lib/hbase/data</value>
55   </property>
56   <property>
57     <name>hbase.zookeeper.property.dataDir</name>
58     <value>/usr/lib/hbase/zookeeper</value>
59   </property>
60 </configuration>
61
62  
63
64 === Verifying your Installation
65 After the HBase server is properly installed, start hbase server and hbase shell.
66 a. start hbase server
67    cd <hbase-installation-directory> 
68    ./start-hbase.sh
69 b. start hbase shell
70    cd <hbase-insatllation-directory>
71    ./hbase shell
72 ==== Troubleshooting
73
74 === Post Installation Configuration
75 Please refer to HBase Data Store User Guide.
76 === Upgrading From a Previous Release
77 Lithium is the first release of TSDR. Upgrading is not applicable for TSDR Lithium release.
78 === Uninstalling HBase Data Store 
79 To uninstall TSDR HBase Data Store, 
80 a. stop hbase server
81    cd <hbase-installation-directory>
82    ./stop-hbase.sh
83 b. remove the file directory that contains the HBase server installation.
84    rm -r <hbase-installation-directory>