Hive HBase snapshot query result can't insert into new tableHow can i map Hive table with HBase table?Issue in reading data from hbase inserted through hiveImpala create external table, stored by Hiveerror in hive-hbase integrationdrill not showing hive or hbase tableshive-HBase ClassNotFound happend when do mapreduce jobHive + HBase Integration: Data Showing up in HBASE when queried, Not showing up in HIVE[Hive HBase Integration],when create hive table which supports auto inport data to hbase table ,how to set property “hbase.columns.mapping” value?Hive table on HBase table showing NULL for integer columnsHive with Hbase integration null
Are randomly-generated passwords starting with "a" less secure?
Optimization terminology: "Exact" v. "Approximate"
Why does the U.S. tolerate foreign influence from Saudi Arabia and Israel on its domestic policies while not tolerating that from China or Russia?
Would dual wielding daggers be a viable choice for a covert bodyguard?
Is a request to book a business flight ticket for a graduate student an unreasonable one?
Is there a way to know which symbolic expression mathematica used
Terry Pratchett book with a lawyer dragon and sheep
How did the hit man miss?
How many hours would it take to watch all of Doctor Who?
What explains 9 speed cassettes price differences?
Are neural networks prone to catastrophic forgetting?
If a non-friend comes across my Steam Wishlist, how easily can he gift me one of the games?
What prevents someone from claiming to be the murderer in order to get the real murderer off?
Credit score and financing new car
Machine learning and operations research projects
Why does this quadratic expression have three zeroes?
Can the Mage Hand cantrip be used to trip an enemy who is running away?
Do you know your 'KVZ's?
How to loop for 3 times in bash script when docker push fails?
Are there any sports for which the world's best player is female?
Modulus Operandi
Can fluent English speakers distinguish “steel”, “still” and “steal”?
How can I effectively communicate to recruiters that a phone call is not possible?
What was the definition of "set" that resulted in Russell's Paradox
Hive HBase snapshot query result can't insert into new table
How can i map Hive table with HBase table?Issue in reading data from hbase inserted through hiveImpala create external table, stored by Hiveerror in hive-hbase integrationdrill not showing hive or hbase tableshive-HBase ClassNotFound happend when do mapreduce jobHive + HBase Integration: Data Showing up in HBASE when queried, Not showing up in HIVE[Hive HBase Integration],when create hive table which supports auto inport data to hbase table ,how to set property “hbase.columns.mapping” value?Hive table on HBase table showing NULL for integer columnsHive with Hbase integration null
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
we are using CDH 5.16.1 ,hbase-1.2.0,hive 1.1.0
The target is i want to accelerate the speed of save some data from hbase to hive.
By default I used the HbaseStorageHandler, but it's very slow because it used full scan by request hbase region server. So i tried to query hbase bypass the region server, and directly access the data from underline file.
It was at least 6 times quicker than before when i query hbase with snapshot. But, i can't write the data into hive table, all the fields were null except the row key.
drop table if exists test;
create table test as select * from default.hbase_user_data_snapshot1_table;
However if i don't use the snapshot, HbaseStorageHandler can successfully load data into new hive table.
Here are steps i took:
First i have created a Hbase table:
create 'user_data_table','personal_data','professional_data';
Then I inserted few records into the table as
put 'user_data_table','user1','personal_data:Location','IL'
put 'user_data_table','user1','personal_data:FName','Deb'
put 'user_data_table','user1','personal_data:LName','D'
put 'user_data_table','user1','professional_data:dept','IT'
put 'user_data_table','user1','professional_data:salary','2000'
put 'user_data_table','user2','personal_data:FName','CH'
put 'user_data_table','user2','personal_data:LName','AK'
put 'user_data_table','user2','professional_data:dept','IT'
put 'user_data_table','user2','professional_data:salary','80000'
Then i specify the snapshot.name to make Hive query Hbase bypasses Hbase server, and directly accesses the underlying files.
set hive.hbase.snapshot.name=snapshot-day-1;
set hive.hbase.snapshot.restoredir=/tmp;
CREATE EXTERNAL TABLE if not exists default.hbase_user_data_snapshot1_table1(key string, Location string,FName string,LName string, dept string, salary string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,personal_data:Location,personal_data:FName,personal_data:LName,professional_data:dept,professional_data:salary")
TBLPROPERTIES ("hbase.table.name" = "user_data_table");
Finally, when i try to load the query result into hive table as below, the result are weirdly, all the value of fields were NULL ,except the row key.
#show hbase table data
hive> select * from default.hbase_user_data_snapshot1_table;
OK
user1 IL Deb D IT 2000
user2 NULL CH AK IT 80000
Time taken: 0.199 seconds, Fetched: 2 row(s)
#load the query result into new table
hive> create table test as select * from default.hbase_user_data_snapshot1_table;
.... OK
#but all the value of fields are NULL ,expect the row key.
hive> select * from test;
OK
user1 NULL NULL NULL NULL
user2 NULL NULL NULL NULL
And i also try to load data without the param " set hive.hbase.snapshot.name ", now it insert query result into table as i expected. (but in this way ,it was very slow, because HBaseStorageHandler query the hbase with full scan with hbase server api )
CREATE EXTERNAL TABLE if not exists default.hbase_user_data_snapshot1_table1(key string, Location string,FName string,LName string, dept string,salary string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,personal_data:Location,personal_data:FName,personal_data:LName,professional_data:dept,professional_data:salary")
TBLPROPERTIES ("hbase.table.name" = "user_data_table");
create table test1 as select * from default.hbase_user_data_snapshot1_table;
select * from test1;
OK
user1 IL Deb D IT 2000
user2 NULL CH AK IT 80000
the snapshot feature link:
i also tried to specify the hive.hbase.snapshot.name in TBLPROPERTIES,but
the hive query request the Hbase region server API instead of access the underline file directly.
I looked the HbaseStorageHandler source code, it choose whether or not use the HbaseSnapshot by judging the hive conf property (HiveConf.ConfVars.HIVE_HBASE_SNAPSHOT_NAME)
So if you specify the hive.hbase.snapshot.name in any other place ,it will not available for hive to query hbase with snapshot. And i also changed all the hdfs dir permission to 777,but it still couldn't insert data into hive table,except i didn't use the snapshot.
It was weirdly I checked the DEBUG log ,but there is not any error in it.
I'm wandering maybe this is a bug about that feature.
(the snapshot feature link:
https://issues.apache.org/jira/browse/HBASE-8369)
Anybody can help me ?
hive hbase integration snapshot
add a comment |
we are using CDH 5.16.1 ,hbase-1.2.0,hive 1.1.0
The target is i want to accelerate the speed of save some data from hbase to hive.
By default I used the HbaseStorageHandler, but it's very slow because it used full scan by request hbase region server. So i tried to query hbase bypass the region server, and directly access the data from underline file.
It was at least 6 times quicker than before when i query hbase with snapshot. But, i can't write the data into hive table, all the fields were null except the row key.
drop table if exists test;
create table test as select * from default.hbase_user_data_snapshot1_table;
However if i don't use the snapshot, HbaseStorageHandler can successfully load data into new hive table.
Here are steps i took:
First i have created a Hbase table:
create 'user_data_table','personal_data','professional_data';
Then I inserted few records into the table as
put 'user_data_table','user1','personal_data:Location','IL'
put 'user_data_table','user1','personal_data:FName','Deb'
put 'user_data_table','user1','personal_data:LName','D'
put 'user_data_table','user1','professional_data:dept','IT'
put 'user_data_table','user1','professional_data:salary','2000'
put 'user_data_table','user2','personal_data:FName','CH'
put 'user_data_table','user2','personal_data:LName','AK'
put 'user_data_table','user2','professional_data:dept','IT'
put 'user_data_table','user2','professional_data:salary','80000'
Then i specify the snapshot.name to make Hive query Hbase bypasses Hbase server, and directly accesses the underlying files.
set hive.hbase.snapshot.name=snapshot-day-1;
set hive.hbase.snapshot.restoredir=/tmp;
CREATE EXTERNAL TABLE if not exists default.hbase_user_data_snapshot1_table1(key string, Location string,FName string,LName string, dept string, salary string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,personal_data:Location,personal_data:FName,personal_data:LName,professional_data:dept,professional_data:salary")
TBLPROPERTIES ("hbase.table.name" = "user_data_table");
Finally, when i try to load the query result into hive table as below, the result are weirdly, all the value of fields were NULL ,except the row key.
#show hbase table data
hive> select * from default.hbase_user_data_snapshot1_table;
OK
user1 IL Deb D IT 2000
user2 NULL CH AK IT 80000
Time taken: 0.199 seconds, Fetched: 2 row(s)
#load the query result into new table
hive> create table test as select * from default.hbase_user_data_snapshot1_table;
.... OK
#but all the value of fields are NULL ,expect the row key.
hive> select * from test;
OK
user1 NULL NULL NULL NULL
user2 NULL NULL NULL NULL
And i also try to load data without the param " set hive.hbase.snapshot.name ", now it insert query result into table as i expected. (but in this way ,it was very slow, because HBaseStorageHandler query the hbase with full scan with hbase server api )
CREATE EXTERNAL TABLE if not exists default.hbase_user_data_snapshot1_table1(key string, Location string,FName string,LName string, dept string,salary string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,personal_data:Location,personal_data:FName,personal_data:LName,professional_data:dept,professional_data:salary")
TBLPROPERTIES ("hbase.table.name" = "user_data_table");
create table test1 as select * from default.hbase_user_data_snapshot1_table;
select * from test1;
OK
user1 IL Deb D IT 2000
user2 NULL CH AK IT 80000
the snapshot feature link:
i also tried to specify the hive.hbase.snapshot.name in TBLPROPERTIES,but
the hive query request the Hbase region server API instead of access the underline file directly.
I looked the HbaseStorageHandler source code, it choose whether or not use the HbaseSnapshot by judging the hive conf property (HiveConf.ConfVars.HIVE_HBASE_SNAPSHOT_NAME)
So if you specify the hive.hbase.snapshot.name in any other place ,it will not available for hive to query hbase with snapshot. And i also changed all the hdfs dir permission to 777,but it still couldn't insert data into hive table,except i didn't use the snapshot.
It was weirdly I checked the DEBUG log ,but there is not any error in it.
I'm wandering maybe this is a bug about that feature.
(the snapshot feature link:
https://issues.apache.org/jira/browse/HBASE-8369)
Anybody can help me ?
hive hbase integration snapshot
@Tariq Could u help me with this problem?
– Xiaoliang Cai
Mar 26 at 2:32
did u try specifyingsnapshot name
asTBLPROPERTIES ("hive.hbase.snapshot.name"="snapshot-day-1")
instead ofhbase.table.name
inTBLPROPERTIES
?
– Shu
Mar 26 at 14:57
@Shu Yes,i did. But when i specified hive.hbase.snapshot.name in TBLPROPERTIES . The hive query request the Hbase region server API instead of access the underline file directly. I also looked the HbaseStorageHandler source code,it choose whether use HbaseSnapshot or not by judge the hive conf property(HiveConf.ConfVars.HIVE_HBASE_SNAPSHOT_NAME).
– Xiaoliang Cai
Mar 27 at 1:19
@Shu So if you specify the hive.hbase.snapshot.name in any other place ,it will not available for hive to query hbase with snapshot. And i also changed all the hdfs dir permission to 777,but it still couldn't insert data into hive table,except i didn't use the snapshot.It was weirdly I checked the DEBUG log ,but there is not any error in it. And i was wandering is this a bug of Hive framework?
– Xiaoliang Cai
Mar 27 at 1:30
add a comment |
we are using CDH 5.16.1 ,hbase-1.2.0,hive 1.1.0
The target is i want to accelerate the speed of save some data from hbase to hive.
By default I used the HbaseStorageHandler, but it's very slow because it used full scan by request hbase region server. So i tried to query hbase bypass the region server, and directly access the data from underline file.
It was at least 6 times quicker than before when i query hbase with snapshot. But, i can't write the data into hive table, all the fields were null except the row key.
drop table if exists test;
create table test as select * from default.hbase_user_data_snapshot1_table;
However if i don't use the snapshot, HbaseStorageHandler can successfully load data into new hive table.
Here are steps i took:
First i have created a Hbase table:
create 'user_data_table','personal_data','professional_data';
Then I inserted few records into the table as
put 'user_data_table','user1','personal_data:Location','IL'
put 'user_data_table','user1','personal_data:FName','Deb'
put 'user_data_table','user1','personal_data:LName','D'
put 'user_data_table','user1','professional_data:dept','IT'
put 'user_data_table','user1','professional_data:salary','2000'
put 'user_data_table','user2','personal_data:FName','CH'
put 'user_data_table','user2','personal_data:LName','AK'
put 'user_data_table','user2','professional_data:dept','IT'
put 'user_data_table','user2','professional_data:salary','80000'
Then i specify the snapshot.name to make Hive query Hbase bypasses Hbase server, and directly accesses the underlying files.
set hive.hbase.snapshot.name=snapshot-day-1;
set hive.hbase.snapshot.restoredir=/tmp;
CREATE EXTERNAL TABLE if not exists default.hbase_user_data_snapshot1_table1(key string, Location string,FName string,LName string, dept string, salary string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,personal_data:Location,personal_data:FName,personal_data:LName,professional_data:dept,professional_data:salary")
TBLPROPERTIES ("hbase.table.name" = "user_data_table");
Finally, when i try to load the query result into hive table as below, the result are weirdly, all the value of fields were NULL ,except the row key.
#show hbase table data
hive> select * from default.hbase_user_data_snapshot1_table;
OK
user1 IL Deb D IT 2000
user2 NULL CH AK IT 80000
Time taken: 0.199 seconds, Fetched: 2 row(s)
#load the query result into new table
hive> create table test as select * from default.hbase_user_data_snapshot1_table;
.... OK
#but all the value of fields are NULL ,expect the row key.
hive> select * from test;
OK
user1 NULL NULL NULL NULL
user2 NULL NULL NULL NULL
And i also try to load data without the param " set hive.hbase.snapshot.name ", now it insert query result into table as i expected. (but in this way ,it was very slow, because HBaseStorageHandler query the hbase with full scan with hbase server api )
CREATE EXTERNAL TABLE if not exists default.hbase_user_data_snapshot1_table1(key string, Location string,FName string,LName string, dept string,salary string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,personal_data:Location,personal_data:FName,personal_data:LName,professional_data:dept,professional_data:salary")
TBLPROPERTIES ("hbase.table.name" = "user_data_table");
create table test1 as select * from default.hbase_user_data_snapshot1_table;
select * from test1;
OK
user1 IL Deb D IT 2000
user2 NULL CH AK IT 80000
the snapshot feature link:
i also tried to specify the hive.hbase.snapshot.name in TBLPROPERTIES,but
the hive query request the Hbase region server API instead of access the underline file directly.
I looked the HbaseStorageHandler source code, it choose whether or not use the HbaseSnapshot by judging the hive conf property (HiveConf.ConfVars.HIVE_HBASE_SNAPSHOT_NAME)
So if you specify the hive.hbase.snapshot.name in any other place ,it will not available for hive to query hbase with snapshot. And i also changed all the hdfs dir permission to 777,but it still couldn't insert data into hive table,except i didn't use the snapshot.
It was weirdly I checked the DEBUG log ,but there is not any error in it.
I'm wandering maybe this is a bug about that feature.
(the snapshot feature link:
https://issues.apache.org/jira/browse/HBASE-8369)
Anybody can help me ?
hive hbase integration snapshot
we are using CDH 5.16.1 ,hbase-1.2.0,hive 1.1.0
The target is i want to accelerate the speed of save some data from hbase to hive.
By default I used the HbaseStorageHandler, but it's very slow because it used full scan by request hbase region server. So i tried to query hbase bypass the region server, and directly access the data from underline file.
It was at least 6 times quicker than before when i query hbase with snapshot. But, i can't write the data into hive table, all the fields were null except the row key.
drop table if exists test;
create table test as select * from default.hbase_user_data_snapshot1_table;
However if i don't use the snapshot, HbaseStorageHandler can successfully load data into new hive table.
Here are steps i took:
First i have created a Hbase table:
create 'user_data_table','personal_data','professional_data';
Then I inserted few records into the table as
put 'user_data_table','user1','personal_data:Location','IL'
put 'user_data_table','user1','personal_data:FName','Deb'
put 'user_data_table','user1','personal_data:LName','D'
put 'user_data_table','user1','professional_data:dept','IT'
put 'user_data_table','user1','professional_data:salary','2000'
put 'user_data_table','user2','personal_data:FName','CH'
put 'user_data_table','user2','personal_data:LName','AK'
put 'user_data_table','user2','professional_data:dept','IT'
put 'user_data_table','user2','professional_data:salary','80000'
Then i specify the snapshot.name to make Hive query Hbase bypasses Hbase server, and directly accesses the underlying files.
set hive.hbase.snapshot.name=snapshot-day-1;
set hive.hbase.snapshot.restoredir=/tmp;
CREATE EXTERNAL TABLE if not exists default.hbase_user_data_snapshot1_table1(key string, Location string,FName string,LName string, dept string, salary string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,personal_data:Location,personal_data:FName,personal_data:LName,professional_data:dept,professional_data:salary")
TBLPROPERTIES ("hbase.table.name" = "user_data_table");
Finally, when i try to load the query result into hive table as below, the result are weirdly, all the value of fields were NULL ,except the row key.
#show hbase table data
hive> select * from default.hbase_user_data_snapshot1_table;
OK
user1 IL Deb D IT 2000
user2 NULL CH AK IT 80000
Time taken: 0.199 seconds, Fetched: 2 row(s)
#load the query result into new table
hive> create table test as select * from default.hbase_user_data_snapshot1_table;
.... OK
#but all the value of fields are NULL ,expect the row key.
hive> select * from test;
OK
user1 NULL NULL NULL NULL
user2 NULL NULL NULL NULL
And i also try to load data without the param " set hive.hbase.snapshot.name ", now it insert query result into table as i expected. (but in this way ,it was very slow, because HBaseStorageHandler query the hbase with full scan with hbase server api )
CREATE EXTERNAL TABLE if not exists default.hbase_user_data_snapshot1_table1(key string, Location string,FName string,LName string, dept string,salary string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,personal_data:Location,personal_data:FName,personal_data:LName,professional_data:dept,professional_data:salary")
TBLPROPERTIES ("hbase.table.name" = "user_data_table");
create table test1 as select * from default.hbase_user_data_snapshot1_table;
select * from test1;
OK
user1 IL Deb D IT 2000
user2 NULL CH AK IT 80000
the snapshot feature link:
i also tried to specify the hive.hbase.snapshot.name in TBLPROPERTIES,but
the hive query request the Hbase region server API instead of access the underline file directly.
I looked the HbaseStorageHandler source code, it choose whether or not use the HbaseSnapshot by judging the hive conf property (HiveConf.ConfVars.HIVE_HBASE_SNAPSHOT_NAME)
So if you specify the hive.hbase.snapshot.name in any other place ,it will not available for hive to query hbase with snapshot. And i also changed all the hdfs dir permission to 777,but it still couldn't insert data into hive table,except i didn't use the snapshot.
It was weirdly I checked the DEBUG log ,but there is not any error in it.
I'm wandering maybe this is a bug about that feature.
(the snapshot feature link:
https://issues.apache.org/jira/browse/HBASE-8369)
Anybody can help me ?
hive hbase integration snapshot
hive hbase integration snapshot
edited Mar 27 at 1:34
Xiaoliang Cai
asked Mar 26 at 2:06
Xiaoliang CaiXiaoliang Cai
12 bronze badges
12 bronze badges
@Tariq Could u help me with this problem?
– Xiaoliang Cai
Mar 26 at 2:32
did u try specifyingsnapshot name
asTBLPROPERTIES ("hive.hbase.snapshot.name"="snapshot-day-1")
instead ofhbase.table.name
inTBLPROPERTIES
?
– Shu
Mar 26 at 14:57
@Shu Yes,i did. But when i specified hive.hbase.snapshot.name in TBLPROPERTIES . The hive query request the Hbase region server API instead of access the underline file directly. I also looked the HbaseStorageHandler source code,it choose whether use HbaseSnapshot or not by judge the hive conf property(HiveConf.ConfVars.HIVE_HBASE_SNAPSHOT_NAME).
– Xiaoliang Cai
Mar 27 at 1:19
@Shu So if you specify the hive.hbase.snapshot.name in any other place ,it will not available for hive to query hbase with snapshot. And i also changed all the hdfs dir permission to 777,but it still couldn't insert data into hive table,except i didn't use the snapshot.It was weirdly I checked the DEBUG log ,but there is not any error in it. And i was wandering is this a bug of Hive framework?
– Xiaoliang Cai
Mar 27 at 1:30
add a comment |
@Tariq Could u help me with this problem?
– Xiaoliang Cai
Mar 26 at 2:32
did u try specifyingsnapshot name
asTBLPROPERTIES ("hive.hbase.snapshot.name"="snapshot-day-1")
instead ofhbase.table.name
inTBLPROPERTIES
?
– Shu
Mar 26 at 14:57
@Shu Yes,i did. But when i specified hive.hbase.snapshot.name in TBLPROPERTIES . The hive query request the Hbase region server API instead of access the underline file directly. I also looked the HbaseStorageHandler source code,it choose whether use HbaseSnapshot or not by judge the hive conf property(HiveConf.ConfVars.HIVE_HBASE_SNAPSHOT_NAME).
– Xiaoliang Cai
Mar 27 at 1:19
@Shu So if you specify the hive.hbase.snapshot.name in any other place ,it will not available for hive to query hbase with snapshot. And i also changed all the hdfs dir permission to 777,but it still couldn't insert data into hive table,except i didn't use the snapshot.It was weirdly I checked the DEBUG log ,but there is not any error in it. And i was wandering is this a bug of Hive framework?
– Xiaoliang Cai
Mar 27 at 1:30
@Tariq Could u help me with this problem?
– Xiaoliang Cai
Mar 26 at 2:32
@Tariq Could u help me with this problem?
– Xiaoliang Cai
Mar 26 at 2:32
did u try specifying
snapshot name
as TBLPROPERTIES ("hive.hbase.snapshot.name"="snapshot-day-1")
instead of hbase.table.name
in TBLPROPERTIES
?– Shu
Mar 26 at 14:57
did u try specifying
snapshot name
as TBLPROPERTIES ("hive.hbase.snapshot.name"="snapshot-day-1")
instead of hbase.table.name
in TBLPROPERTIES
?– Shu
Mar 26 at 14:57
@Shu Yes,i did. But when i specified hive.hbase.snapshot.name in TBLPROPERTIES . The hive query request the Hbase region server API instead of access the underline file directly. I also looked the HbaseStorageHandler source code,it choose whether use HbaseSnapshot or not by judge the hive conf property(HiveConf.ConfVars.HIVE_HBASE_SNAPSHOT_NAME).
– Xiaoliang Cai
Mar 27 at 1:19
@Shu Yes,i did. But when i specified hive.hbase.snapshot.name in TBLPROPERTIES . The hive query request the Hbase region server API instead of access the underline file directly. I also looked the HbaseStorageHandler source code,it choose whether use HbaseSnapshot or not by judge the hive conf property(HiveConf.ConfVars.HIVE_HBASE_SNAPSHOT_NAME).
– Xiaoliang Cai
Mar 27 at 1:19
@Shu So if you specify the hive.hbase.snapshot.name in any other place ,it will not available for hive to query hbase with snapshot. And i also changed all the hdfs dir permission to 777,but it still couldn't insert data into hive table,except i didn't use the snapshot.It was weirdly I checked the DEBUG log ,but there is not any error in it. And i was wandering is this a bug of Hive framework?
– Xiaoliang Cai
Mar 27 at 1:30
@Shu So if you specify the hive.hbase.snapshot.name in any other place ,it will not available for hive to query hbase with snapshot. And i also changed all the hdfs dir permission to 777,but it still couldn't insert data into hive table,except i didn't use the snapshot.It was weirdly I checked the DEBUG log ,but there is not any error in it. And i was wandering is this a bug of Hive framework?
– Xiaoliang Cai
Mar 27 at 1:30
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55348850%2fhive-hbase-snapshot-query-result-cant-insert-into-new-table%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55348850%2fhive-hbase-snapshot-query-result-cant-insert-into-new-table%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
@Tariq Could u help me with this problem?
– Xiaoliang Cai
Mar 26 at 2:32
did u try specifying
snapshot name
asTBLPROPERTIES ("hive.hbase.snapshot.name"="snapshot-day-1")
instead ofhbase.table.name
inTBLPROPERTIES
?– Shu
Mar 26 at 14:57
@Shu Yes,i did. But when i specified hive.hbase.snapshot.name in TBLPROPERTIES . The hive query request the Hbase region server API instead of access the underline file directly. I also looked the HbaseStorageHandler source code,it choose whether use HbaseSnapshot or not by judge the hive conf property(HiveConf.ConfVars.HIVE_HBASE_SNAPSHOT_NAME).
– Xiaoliang Cai
Mar 27 at 1:19
@Shu So if you specify the hive.hbase.snapshot.name in any other place ,it will not available for hive to query hbase with snapshot. And i also changed all the hdfs dir permission to 777,but it still couldn't insert data into hive table,except i didn't use the snapshot.It was weirdly I checked the DEBUG log ,but there is not any error in it. And i was wandering is this a bug of Hive framework?
– Xiaoliang Cai
Mar 27 at 1:30