Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Hive, mail # dev - add permenant UDFs failed, what should I do?


Copy link to this message
-
add permenant UDFs failed, what should I do?
Liu,Zongquan 2013-01-13, 15:03
Hi all,
I am trying to add my own UDFs and rebuild the hive package. Actually I add the UDFs successfully and pass the build stage and get the new-release, but I can't get the correct result from calling "show functions" on hive cli. I read the article https://cwiki.apache.org/confluence/display/Hive/GenericUDAFCaseStudy carefully and added udf_myfunc.q and udf_myfunc.q.out, however when I  run the test of "ant test -Dtestcase=TestCliDriver -Dqfile=show_functions.q -Doverwrite=true" I got the following error message.
Buildfile: /home/zongquanliu/hive-trunk-v1410581/trunk/build.xml

clean-test:
     [echo] Project: hive

clean-test:
     [echo] Project: shims
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/shims/test

clean-test:
     [echo] Project: common
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/common/test

clean-test:
     [echo] Project: serde
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/serde/test

clean-test:
     [echo] Project: metastore
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/metastore/test

clean-test:
     [echo] Project: ql
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/ql/test

clean-test:
     [echo] Project: contrib
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/contrib/test

clean-test:
     [echo] Project: service
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/service/test

clean-test:
     [echo] Project: cli
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/cli/test

clean-test:
     [echo] Project: jdbc
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/jdbc/test

clean-test:
     [echo] Project: hwi
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/hwi/test

clean-test:
     [echo] Project: hbase-handler
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/hbase-handler/test

clean-test:
     [echo] Project: pdk
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/pdk/test

clean-test:
     [echo] Project: builtins
   [delete] Deleting directory /home/zongquanliu/hive-trunk-v1410581/trunk/build/builtins/test

ivy-init-dirs:
     [echo] Project: hive

ivy-download:
     [echo] Project: hive
      [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
      [get] To: /home/zongquanliu/hive-trunk-v1410581/trunk/build/ivy/lib/ivy-2.1.0.jar
      [get] Not modified - so not downloaded

ivy-probe-antlib:
     [echo] Project: hive

ivy-init-antlib:
     [echo] Project: hive

compile-ant-tasks:
     [echo] Project: hive

create-dirs:
     [echo] Project: anttasks

init:
     [echo] Project: anttasks

ivy-init-settings:
     [echo] Project: anttasks

ivy-resolve:
     [echo] Project: anttasks
[ivy:resolve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /home/zongquanliu/hive-trunk-v1410581/trunk/ivy/ivysettings.xml
[ivy:report] Processing /home/zongquanliu/hive-trunk-v1410581/trunk/build/ivy/resolution-cache/org.apache.hive-hive-anttasks-default.xml to /home/zongquanliu/hive-trunk-v1410581/trunk/build/ivy/report/org.apache.hive-hive-anttasks-default.html

ivy-retrieve:
     [echo] Project: anttasks

compile:
     [echo] anttasks
    [javac] /home/zongquanliu/hive-trunk-v1410581/trunk/ant/build.xml:38: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

deploy-ant-tasks:
     [echo] Project: hive

create-dirs:
     [echo] Project: anttasks

init:
     [echo] Project: anttasks

ivy-init-settings:
     [echo] Project: anttasks

ivy-resolve:
     [echo] Project: anttasks
[ivy:resolve] :: loading settings :: file = /home/zongquanliu/hive-trunk-v1410581/trunk/ivy/ivysettings.xml
[ivy:report] Processing /home/zongquanliu/hive-trunk-v1410581/trunk/build/ivy/resolution-cache/org.apache.hive-hive-anttasks-default.xml to /home/zongquanliu/hive-trunk-v1410581/trunk/build/ivy/report/org.apache.hive-hive-anttasks-default.html

ivy-retrieve:
     [echo] Project: anttasks

compile:
     [echo] anttasks
    [javac] /home/zongquanliu/hive-trunk-v1410581/trunk/ant/build.xml:38: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

jar:
     [echo] anttasks

init:
     [echo] Project: hive

create-dirs:
     [echo] Project: anttasks

init:
     [echo] Project: anttasks

create-dirs:
     [echo] Project: shims
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/shims/test
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/shims/test/src
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/shims/test/classes
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/shims/test/resources

init:
     [echo] Project: shims

create-dirs:
     [echo] Project: common
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/common/test
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/common/test/src
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/common/test/classes
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/common/test/resources
     [copy] Copying 2 files to /home/zongquanliu/hive-trunk-v1410581/trunk/build/common/test/resources

init:
     [echo] Project: common

create-dirs:
     [echo] Project: serde
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/serde/test
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/serde/test/src
    [mkdir] Created dir: /home/zongquanliu/hive-trunk-v1410581/trunk/build/serde/test/classes
    [mkdir] Created dir: /home/zongquanliu/