Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to add the jar file of custom udf udaf udtf and other functions in Hive

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces Hive how to add custom udf udaf udtf and other functions of the jar file, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian with you to understand.

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.

Thank you for reading this article carefully. I hope the article "how to add the jar file of custom udf udaf udtf and other functions in Hive" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report