yh2388 opened a new issue #1991: [QUESTION] Throw exception when register Hive 
udf by 'add jar'
URL: https://github.com/apache/incubator-dolphinscheduler/issues/1991
 
 
   *For better global communication, please give priority to using English 
description, thx! *
   
   **Describe the question**
   I have a hive environment that started Sentry, And I configure the following 
parameters:
     * hadoop.security.authentication.startup.state=true
     * java.security.krb5.conf.path=/etc/krb5.conf
     * login.user.keytab.username=hive
     * login.user.keytab.path=/opt/dolphinscheduler/conf/hive.keytab
   
   Simple DML is can be executed successfully,but when I use udf(I've already 
created it),throw exception: 
   ```
   java.lang.RuntimeException: Insufficient privileges to execute add
           at 
org.apache.dolphinscheduler.server.worker.task.sql.SqlTask.executeFuncAndSql(SqlTask.java:356)
           at 
org.apache.dolphinscheduler.server.worker.task.sql.SqlTask.handle(SqlTask.java:194)
           at 
org.apache.dolphinscheduler.server.worker.runner.TaskScheduleThread.run(TaskScheduleThread.java:147)
           at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
   ```
   
   Its say in 
`https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_mc_hive_udf.html`
 , the `Direct JAR reference configuration` is not support Sentry,  now 
dolphinscheduler only support `add jar` to create temporary func.
   
   And I through `hive cli` to execute `add jar` after `kinit hive`, its  
successfully:
   ```
   hive> add jar 
hdfs://nameservice1/dolphinscheduler/root/udfs/udf-sequence-1.0-SNAPSHOT.jar;
   converting to local 
hdfs://nameservice1/dolphinscheduler/root/udfs/udf-sequence-1.0-SNAPSHOT.jar
   Added 
[/tmp/0b716804-f70f-40f3-a84f-458e64cd26e8_resources/udf-sequence-1.0-SNAPSHOT.jar]
 to class path
   Added resources: 
[hdfs://nameservice1/dolphinscheduler/root/udfs/udf-sequence-1.0-SNAPSHOT.jar]
   ```
   
   Now I'm confused, How to solve this problem?
   
   
   
   **Which version of DolphinScheduler:**
    -[1.2.1-release]
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to