In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "three ways to add custom jar files in Hive". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
After developing the jar file of hive's udf udaf udtf function, you need to put the jar file into the hive environment before you can use it. You can join in the following three ways:
1. Use the add jar path/test.jar; method to join
The disadvantage of this method is that you have to rejoin every time you start Hive, and exiting hive will fail.
two。 Join by setting the configuration file hive-site.xml of hive
Add configuration to the configuration file
Hive.aux.jars.path
File:///jarpath/all_new1.jar,file:///jarpath/all_new2.jar
Just save it.
This method is much more convenient than the first method. You don't need to start Hive every time you execute the command to join, just a little more complicated to configure.
3. Create the folder auxlib in ${HIVE_HOME}, and then put the custom jar file in that folder.
This is the end of the content of "three ways to add custom jar files to Hive". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.