Skip to Content
HBASE技術手冊
book

HBASE技術手冊

by Lars George
December 2012
Intermediate to advanced
572 pages
13h 8m
Chinese
GoTop Information, Inc.
Content preview from HBASE技術手冊
可用的客戶端
|
273
由於在 Hive 中,儲存處理程序會在較高階層上無縫地運作,你也可以使用由 Hive 提供
使用者定義函數
user-defined function,
UDF-或你自己的客製化函數。
然而在目前的版本,它有一些的缺點:
序列化無法客製化
HBase 只能儲存
byte[]
陣列,所以 Hive 純粹是把每一個欄位值轉換為字串,並從
這裡來序列化它。舉例來說,一個
INT
欄位值設定為
12
,如果要儲存到 Hive 上,就
要用
Bytes.toBytes("12")
沒有版本支援
處理 HBase 資料表的時候,目前沒有辦法指定任何的版本。Hive 只能夠支援最近期
的版本。
檢查 Hive 專案網站,來看這些特性是否已經被加上去了。
Pig
Apache Pig
12
專案提供了一個平台來分析巨量的資料。它有一個高階查詢語言,稱之為
Pig Latin
,它使用一種命令式的程式風格,將輸入資料到最終輸出的轉換過程制定成步
驟。這與 Hive 用宣告式策略來模擬 SQL 是相反的。
Pig Latin 本質上,與 HiveQL 相比,對具有程序程式開發背景的人會有吸引力,而且明
顯地它用於平行處理上。當它和具有威力的 Hadoop MapReduce 框架結合之後,你可
以在合理的時間內,來處理巨量的資料。
Pig 0.7.0 版,推出了
LoadFunc/StoreFunc
類別和功能,讓你可以從常用的 HDFS 之外的
來源,載入和儲存資料。其中一個來源是 HBase,實作於
HBaseStorage ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
SQL经典实例(第2版)

SQL经典实例(第2版)

Anthony Molinaro, Robert de Graaf
機器學習|工作現場的評估、導入與實作

機器學習|工作現場的評估、導入與實作

有賀康顕, 中山心太, 西林孝

Publisher Resources

ISBN: 9789862765968