I’m reading this post “Using Hive to interact with HBase, Part 2” and I’m getting frustrated because I can’t populate the HBase table via Hive query in HDP 2.0 sandbox. I really need to get working this task and I can’t wait for a new release. So, I went to the apache bug report page and I got the HIVE-5515 patch but when I try to execute this patch in the sandbox, I’m getting the following message:
patch -p1 < HIVE-5515.patch
Can't find file to patch at input line 5
Perhaps you used the wrong -p r –strip option?
The text leading up to this was:
diff –git a/ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java
index 7c78b38..7586ee0 100644
File to patch:
if I skip these files and I execute again the hive query, I get the following known error:
hive -e "FROM pgc INSERT INTO TABLE pagecounts_hbase SELECT pgc.* WHERE rowkey LIKE 'en/q%' LIMIT 10"
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
Does anyone know How can i get working this patch in my sandbox in order to run the hive query?
I appreciate your help!!