Hive exception: UDFArgumentTypeException No argument is expected, argumentexpected

Source: Internet
Author: User

Hive exception: UDFArgumentTypeException No argument is expected, argumentexpected

Background:

Run hivesql in a market today. SQL is normal and there is no problem in data warehouse execution.

However, after running in a market, the system always promptsUDFArgumentTypeException No argument is expectedIt hurts a lot.

Specifically, this SQL involves row_number (), regexp_replace, and other functions.


Analysis:

After SQL segmentation troubleshooting, an error is reported only when the row_number () function is used.

It can be determined that if a udf has a problem, this exception will be reported: UDFArgumentTypeException No argument is expected


Solution:

Reload available udf packages.

Upload the udf package to the bastion host (for example, the path is add jar/home/dd_sdm/udf/RowNumberUDF1.jar)

Hive> add jar/home/dd_sdm/udf/RowNumberUDF1.jar;

Hive> create temporary function row_number as 'com. example. hive. udf. rownumberudf ';

Hive> your hivesql


The above experiences are for reference.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.