Documente Academic
Documente Profesional
Documente Cultură
com
QUERIES
Flow of Hbase read/write
QUERY
About Meter Logs: It best suited for persistent and day by day increasing data, as you data grows you can keep on adding more nodes, and you have lot of facility, process this data such as pig, hive and map-reduce. You can run map-reduce and output the datasets which can be indexed and used for faster search of that huge data.
QUERY
Usibility
HBase isn't suitable for every problem. First, make sure you have enough data. If you have hundreds of millions or billions of rows, then HBase is a good candidate. If you only have a few thousand/million rows, then using a traditional RDBMS might be a better choice due to the fact that all of your data might wind up on a single node (or two) and the rest of the cluster may be sitting idle. Second, make sure you can live without all the extra features that an RDBMS provides (e.g., typed columns, secondary indexes, transactions, advanced query languages, etc.) An application built against an RDBMS cannot be "ported" to HBase by simply changing a JDBC driver, for example. Consider moving from an RDBMS to HBase as a complete redesign as opposed to a port. Third, make sure you have enough hardware. Even HDFS doesn't do well with anything less than 5 DataNodes (due to things such as HDFS block replication which has a default of 3), plus a NameNode. HBase can run quite well stand-alone on a laptop - but this should be considered a development configuration only.
QUERY
Difference Between NoSQL DB and RDBMS
NoSQL is a kind of database that doesn't have a fixed schema like a traditional RDBMS does. With the NoSQL databases the schema is defined by the developer at run time. They don't write normal SQL statements against the database, but instead use an API to get the data that they need. The NoSQL databases can usually scale across different physical servers easily without needing to know which server the data you are looking for is on. Why we should think of using it Durability Scalability on fly Distributed data Persistence etc.
QUERY
Row Oriented and Column oriented DBS
A column-oriented DBMS is a database management system (DBMS) that stores data tables as sections of columns of data rather than as rows of data, like most relational DBMSs
A column-oriented database is different from traditional row-oriented databases because of how they store data. By storing a whole column together instead of a row, you can minimize disk access when selecting a few columns from a row containing many columns. In row-oriented databases there's no difference if you select just one or all fields from a row.
ID 1 2 Nam e Age Bhavi 29 n Roge r 30 This would be persisted in a conventional RDBMS as follows 1,Bhavin,29|2,Roger,30
Stand Alone : In standalone mode, there is no distributed file system and no Java services/daemons are started. All mappers and reducers run inside a single Java VM. This mode is best suited for testing purpose, and experimentations with HBase.
Distributed: In distributed mode the daemons are spread across all nodes in the cluster Distributed modes require an instance of the Hadoop Distributed File System (HDFS)
BASIC PREREQUISITES
Java SSH DNS NTP ulimit and nproc Hadoop for Distributed mode
Just like Hadoop, HBase requires at least java 6 from Oracle ssh must be installed and sshd must be running to use Hadoop's scripts to manage remote Hadoop and HBase daemons. You must be able to ssh to all nodes, including your local node, using passwordless login HBase uses the local hostname to self-report its IP address. Both forward and reverse DNS resolving must work
HBASE-DEFAULT.XML
Not all configuration options make it out to hbase-default.xml. Configuration that it is thought rare anyone would change can exist only in code; the only way to turn up such configurations is via a reading of the source code itself.
hbase.rootdir The directory shared by region servers and into which HBase persists. Default: file:///tmp/hbase-${user.name}/hbase hdfs://namenode:9000/hbase For Distributed hbase.master.port The port the HBase Master should bind to. Default is 60000 hbase.cluster.distributed The mode the cluster will be in. Possible values are false for standalone mode and true for distributed mode
HBASE-SITE.XML
Just as in Hadoop where you add sitespecific HDFS configuration to the hdfs-site.xml file, for HBase, site specific customizations go into the file conf/hbase-site.xml. For the list of configurable properties
<?xml version="1.0"?>
</property>
<property> <name>hbase.zookeeper.property.dataDir</name> <value>/export/zookeeper</value> <description>Property from ZooKeeper's config zoo.cfg. The directory where the snapshot is stored. </description>
</property>
<property>
<name>hbase.rootdir</name> <:value>hdfs//node0:8020/hbase</value> <description>The directory shared by RegionServers.
</description>
</property> <property> <name>hbase.cluster.distributed</name> <value>true</value> <description>The mode the cluster will be in. Possible values are false: standalone and pseudo-distributed setups with managed Zookeeper true: fully-distributed with unmanaged Zookeeper Quorum (see hbaseenv.sh) </description>
</property>
HBASE-ENV.SH
Set HBase environment variables in this file. Examples include options to pass the JVM on start of an HBase daemon such as heap size and garbarge collector configs. You can also set configurations for HBase configuration, log directories, niceness, ssh options, where to locate process pid files, etc. Open the file at conf/hbaseenv.sh and peruse its content. Each option is fairly well documented. Add your own environment variables here if you want them read by HBase daemons on startup.
export HBASE_HEAPSIZE=1000
LOG4J.PROPERTIES
Edit this file to change rate at which HBase files are rolled and to change the level at which HBase logs messages. Changes here will require a cluster restart for HBase
REGIONSERVERS
In this file you list the nodes that will run RegionServers. Eg : regionservernode1 regionservernode2 regionservernode3
CONFIGURATIONS
Required Configurations Java SSH DNS NTP ulimit and nproc Hadoop for Distributed mode Recommended Configurations zookeeper.session.timeout The default timeout is three minutes (specified in milliseconds). This means that if a server crashes, it will be three minutes before the Master notices the crash and starts recovery Number of ZooKeeper Instances Compression Bigger Regions Balancer The balancer is a periodic operation which is run on the master to redistribute regions on the cluster. It is configured via hbase.balancer.period and defaults to 300000 Still more are there, Just read more to have more optimized cluster.
Start HBase ./bin/start-hbase.sh starting Master, logging to logs/hbase-user-master-example.org.out Connect to your running HBase via the shell ./bin/hbase shell HBase Shell hbase(main):001:0> And on this shell you can type shell command which hbase provides to perform various operations.
http://db.csail.mit.edu/projects/cstore/abadi-sigmod08.pdf https://cs.uwaterloo.ca/~aelhelw/papers/dolap11.pdf https://ccp.cloudera.com/download/attachments/14549380/CDH2_In stallation_Guide.pdf?version=1&modificationDate=134887134000 0 http://hbase.apache.org/ https://ccp.cloudera.com/display/CDHDOC/HBase+Installation Last and the best one www.google.com :)