Github user liancheng commented on the pull request:

    https://github.com/apache/spark/pull/11040#issuecomment-179030322
  
    Actually the `ADD JAR` command doesn't fail, but the jar wasn't 
successfully added, and the following `CREATE TEMPORARY FUNCTION` command 
failed.
    
    Verified this behavior using the following Beeline session:
    
    ```
    > add jar file:///tmp/a@b/TestUDTF.jar;
    ...
    > CREATE TEMPORARY FUNCTION udtf_count2 AS 
'org.apache.spark.sql.hive.execution.GenericUDTFCount2';
    Error: org.apache.spark.sql.execution.QueryExecutionException: FAILED: 
Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask 
(state=,code=0)
    ```
    
    The `TestUDTF.jar` is copied from Spark code repo.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to