In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article focuses on "how to compile hive-hbase-handler-1.2.1.jar", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to compile hive-hbase-handler-1.2.1.jar.
Compile hive-hbase-handler-1.2.1.jar
1. Download the hive-1.2.1 source code
two。 Modify apache-hive-1.2.1-src/pom.xml, change the hbase version to the habse version you use, and then compile and package it with mvn.
1.1.3
3. The generated hive-hbase-handler-1.2.1.jar is copied under hive-1.2.1/lib to replace the hive-hbase-handler-1.2.1.jar that comes with hive.
4. Start hive
Hive-hiveconf hbase.zookeeper.quorum=bi3:2181,bi4:2181,bi5:2181 question: 1. Does hive.aux.jars.path need to be configured?
It depends on your configuration. If you have configured HADOOP_HOME,HIVE_HOME,HBASE_HOME in a system variable (such as .bash _ profile), you don't have to configure this variable at all.
2.-is hiveconf hbase.zookeeper.quorum required?
If you have already configured HBASE_HOME, congratulations, you don't need to configure this either.
Test:
Create a new hive,hbase integration table
Hive > CREATE TABLE hbase_table_2 (key int, value string) > STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' > WITH SERDEPROPERTIES ("hbase.columns.mapping" = ": key,cf1:val") > TBLPROPERTIES ("hbase.table.name" = "xyz2"); OKTime taken: 5.586 secondshive > show tables OKhbase_table_1hbase_table_2Time taken: 0.213 seconds Fetched: 2 row (s) hbase (main): 003 hbase 0 > listTABLE xyz Xyz2 2 row (s) in 0.0160 seconds= > ["xyz" "xyz2"] so far I believe that everyone has a deeper understanding of "how to compile hive-hbase-handler-1.2.1.jar", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.