Professional Documents
Culture Documents
• Please do a check on your network connection and audio before the class to have a smooth session
• All participants will be on mute, by default. You will be unmuted when requested or as needed
• Please use the “Questions” panel on your webinar tool to interact with the instructor at any point during the
class
• Please have the support phone number (US : 1855 818 0063 (toll free), India : +91 90191 17772) and raise
tickets from LMS in case of any issues with the tool
• Most often logging off or rejoining will help solve the tool related issues
{
"zzzzz" : "woot",
"xyz" : "hello",
"aaaab" :”world",
"1" : "x",
"aaaaa" : "y"
}
{ {
"zzzzz" : "woot", "1" : "x",
"xyz" : "hello", "aaaaa" : "y",
"aaaab" :"world", "aaaab" : world",
"1" : "x", "xyz" : "hello",
"aaaaa" : "y" "zzzzz" : "woot"
} }
Tables
R1 R2 R3 Rows
Sorted by
R1 R2 R3
Columns in a family
Consists of any Consists of any Columns exist when
are sorted & stored
number of columns number of versions inserted
together
2 D. Copper 1956-09-16 M
3 Merlin 1136-12-03 F
Col(Birth date) –
Row 1 (1) Col(address) - Budapest
1926-10-31
Row 2 (2)
What it means?
• Unique for each row • Less number of families • Various versions of values
gives faster access are maintained
• Identifies each row
• Families are fixed column • Scan shows only recent
qualifiers are not version
get(row)
put(row,Map<column,value>)
increment(row, columns)
Package
Org.apache.hadoop.hbase.client.Htable
It is recommended that you create Htable instances only once, one per thread and reuse that
instance for the rest of lifetime of your client application.
DataLoading
Using Client API Techniques In Using PIG
HBase
Using SQOOP
Example:
sqoop import
--connect jdbc:mysql://<ip address>\<database name>
--username <username_for_mysql_user> --password
<Password>
--table <mysql_table name>
--hbase-table<hbase_target_table_name>
--column-family <column_family_name>
--hbase-row-key <row_key_column>
--hbase-create-table
Services
• Hierarchal namespace (like a File System)
YaView
Stupidname
• Data is read and written in its entity
morestupidity
locks
read-1
apps
users
ZooKeeper Service
Leader
1 Wait Free
shutdown
shutdown
▪ Master
Queue implementation
Key Features Improved debugging tools
available
http://www.edureka.co/blog/5-things-one-must-know-about-spark/