通过Impala在HBase上创建一个表

通过Impala在HBase上创建一个表,hbase,cloudera,impala,bigdata,Hbase,Cloudera,Impala,Bigdata,您好,我想在HBase上创建数据库模式和一些表,例如,我想通过Impala这样做 CREATE TABLE media.post (RowKey string, HashTag string, PostID string, PostImpact int, PostSentiment string, CreationDateTime timestamp); 当我这样做时,我会在HDFS上创建一个表,而不是在HBase上,因此我无法通过HBase连接到它……甚至可以在HBase上运行

您好,我想在HBase上创建数据库模式和一些表,例如,我想通过Impala这样做

CREATE  TABLE media.post
(RowKey string, 
 HashTag string,
 PostID string,
 PostImpact int,
 PostSentiment string,
 CreationDateTime timestamp);

当我这样做时,我会在HDFS上创建一个表,而不是在HBase上,因此我无法通过HBase连接到它……甚至可以在HBase上运行这样的sql吗?

这是不可能的

Hbase是无模式的,您可以从Hbase创建Impala或hive外部表。 但不是以相反的方式,即从Impala表不能创建Hbase表。 这是因为nosql和sql数据模型是不同的

为了更多的了解