Basic common commands and examples of hbase

Basic commands and examples of hbase ddl command 1. Create table 2. Add column family 3. Delete a column family 4. View table structure 5. Check whether the table exists 6. Delete table Create a tablespace and create tables under it 1. Create a tablespace 2. Create table in table space 3. View the ...

Posted by sherri on Thu, 25 Jun 2020 12:47:05 +0200

Detailed explanation of RowFilter of HBase Filter

**This paper introduces the use of the Java & shell API of HBase RowFilter in detail, and posts the relevant sample code for reference. RowFilter filters based on row keys. When it comes to data filtering through HBase Rowkey, you can consider using it. For details and principle of comparator, please refer to the previous revision: Comparat ...

Posted by jonners on Tue, 05 May 2020 08:00:28 +0200

Hadoop 8-day course - day 6, MapReduce details

hive About hive A tool for translating sql statements into mapreduce programs. Create table statement CREATE TABLE page_view(viewTime INT, userid BIGINT, page_url STRING, referrer_url STRING, ip STRING COMMENT 'IP Address of the User') COMMENT 'This is the page view table' PARTITIONED BY(dt STRING, country STRING) ROW FORMAT DELIMI ...

Posted by mainewoods on Wed, 29 Apr 2020 14:54:07 +0200

Source code interpretation - (3) HBase examples multithreadedclientexample

Address: http://aperise.iteye.com/blog/2372534 Source code interpretation - (1)hbase client source code http://aperise.iteye.com/blog/2372350 Source code interpretation - (2) HBase examples bufferedmutator example http://aperise.iteye.com/blog/2372505 Source code interpretation - (3) HBase examples multithreadedc ...

Posted by point86 on Thu, 02 Apr 2020 02:58:55 +0200

Phoenix + HBase, let you operate HBase like MySQL

Operation of Phoenix associated HBase (three cases) Situation 1: Hbase already has existing tables. You can create corresponding views in Phoenix. Views can only be queried, not added, deleted or modified Table has been created and data exists in hbase, table name: phoenix Create the corresponding view in phoenix create view "phoenix"( pk ...

Posted by estero2002 on Wed, 01 Apr 2020 21:47:10 +0200

HBase shell command create table and add data operation

Create a table with the NAME hbase_. The HBase table is composed of Key values. In this table, the Key is NAME   This table has two column families, CF1 and CF2. Under CF1 and CF2, there are two columns, name and gender, Chinese and Math 1. There are two column families CF1 and CF2 in creating table HBase hbase(main):041:0&g ...

Posted by delickate on Wed, 11 Dec 2019 22:08:13 +0100

Case 1 of HBase custom HBase MapReduce

1. Demand scenario Migrate part of the data in the ys table in HBase to the ys? Mr table through Mapreduce 2. Coding 1) build ReadysMapreduce class to read data in ys table package cn.ysjh; import java.io.IOException; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.CellUtil; import org.apache.hadoop.hb ...

Posted by jacobsdad on Wed, 11 Dec 2019 05:50:12 +0100

Typical scenes of hbase

1. hbase integration Mapreduce    in the offline task scenario, MapReduce accesses HBASE data to speed up analysis and expand analysis capabilities.Read data from hbase (result) public class ReadHBaseDataMR { private static final String ZK_KEY = "hbase.zookeeper.quorum"; private static final String ZK_VALUE = "hadoop01:2181,h ...

Posted by diagnostix on Wed, 04 Dec 2019 11:55:27 +0100

HBase custom MapReduce

Transfer of HBase table data In the Hadoop phase, the MR task we wrote has two classes: Mapper and Reducer. In HBase, we need to inherit two classes: TableMapper and TableReducer. Objective: to migrate part of the data in the fruit table to the fruit_mr table through MR Step 1. Build the ReadFruitMapper class to read the data in the fruit ta ...

Posted by brooky on Sun, 03 Nov 2019 19:16:43 +0100

Integration of SparkPython and Hbase for Real-time Computing of Large Data Series

1. Preparations (the tool library used will be placed at the end for download) 1.1. Install thrift   cmd>pip install thrift I use Anaconda3. The downloaded packages will be stored in the / Lib/site-packages / directory. If you don't use Anaconda3, you can put the following two folders directly ...

Posted by JacobYaYa on Tue, 01 Oct 2019 22:21:56 +0200