You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2018/06/10 15:57:00 UTC

[jira] [Commented] (HIVE-9252) Linking custom SerDe jar to table definition.

    [ https://issues.apache.org/jira/browse/HIVE-9252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16507429#comment-16507429 ] 

Hive QA commented on HIVE-9252:
-------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12698268/HIVE-9252.1.patch

{color:red}ERROR:{color} -1 due to build exiting with an error

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/11684/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/11684/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-11684/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Tests exited with: NonZeroExitCodeException
Command 'bash /data/hiveptest/working/scratch/source-prep.sh' failed with exit status 1 and output '+ date '+%Y-%m-%d %T.%3N'
2018-06-10 15:55:39.167
+ [[ -n /usr/lib/jvm/java-8-openjdk-amd64 ]]
+ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
+ export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ export 'ANT_OPTS=-Xmx1g -XX:MaxPermSize=256m '
+ ANT_OPTS='-Xmx1g -XX:MaxPermSize=256m '
+ export 'MAVEN_OPTS=-Xmx1g '
+ MAVEN_OPTS='-Xmx1g '
+ cd /data/hiveptest/working/
+ tee /data/hiveptest/logs/PreCommit-HIVE-Build-11684/source-prep.txt
+ [[ false == \t\r\u\e ]]
+ mkdir -p maven ivy
+ [[ git = \s\v\n ]]
+ [[ git = \g\i\t ]]
+ [[ -z master ]]
+ [[ -d apache-github-source-source ]]
+ [[ ! -d apache-github-source-source/.git ]]
+ [[ ! -d apache-github-source-source ]]
+ date '+%Y-%m-%d %T.%3N'
2018-06-10 15:55:39.169
+ cd apache-github-source-source
+ git fetch origin
+ git reset --hard HEAD
HEAD is now at 2a55f99 HIVE-19382 : Acquire locks before generating valid transaction list for some operations (Jesus Camacho Rodriguez via Ashutosh Chauhan)
+ git clean -f -d
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
+ git reset --hard origin/master
HEAD is now at 2a55f99 HIVE-19382 : Acquire locks before generating valid transaction list for some operations (Jesus Camacho Rodriguez via Ashutosh Chauhan)
+ git merge --ff-only origin/master
Already up-to-date.
+ date '+%Y-%m-%d %T.%3N'
2018-06-10 15:55:40.147
+ rm -rf ../yetus_PreCommit-HIVE-Build-11684
+ mkdir ../yetus_PreCommit-HIVE-Build-11684
+ git gc
+ cp -R . ../yetus_PreCommit-HIVE-Build-11684
+ mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-11684/yetus
+ patchCommandPath=/data/hiveptest/working/scratch/smart-apply-patch.sh
+ patchFilePath=/data/hiveptest/working/scratch/build.patch
+ [[ -f /data/hiveptest/working/scratch/build.patch ]]
+ chmod +x /data/hiveptest/working/scratch/smart-apply-patch.sh
+ /data/hiveptest/working/scratch/smart-apply-patch.sh /data/hiveptest/working/scratch/build.patch
fatal: git diff header lacks filename information when removing 0 leading pathname components (line 190)
error: patch failed: common/src/java/org/apache/hadoop/hive/conf/HiveConf.java:568
Falling back to three-way merge...
Applied patch to 'common/src/java/org/apache/hadoop/hive/conf/HiveConf.java' cleanly.
error: patch failed: itests/test-serde/pom.xml:40
Falling back to three-way merge...
Applied patch to 'itests/test-serde/pom.xml' with conflicts.
error: metastore/if/hive_metastore.thrift: does not exist in index
error: metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp: does not exist in index
error: metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h: does not exist in index
error: metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java: does not exist in index
error: metastore/src/gen/thrift/gen-php/metastore/Types.php: does not exist in index
error: metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote: does not exist in index
error: metastore/src/gen/thrift/gen-py/hive_metastore/constants.py: does not exist in index
error: metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb: does not exist in index
error: metastore/src/model/org/apache/hadoop/hive/metastore/model/MStorageDescriptor.java: does not exist in index
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java:84
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java' with conflicts.
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java:26
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java' with conflicts.
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java:18
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java' with conflicts.
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveUtils.java:27
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveUtils.java' with conflicts.
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java:284
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java' with conflicts.
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/parse/FunctionSemanticAnalyzer.java:17
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/parse/FunctionSemanticAnalyzer.java' with conflicts.
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g:1847
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g' cleanly.
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:10613
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java' cleanly.
error: patch failed: ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java:29
Falling back to three-way merge...
Applied patch to 'ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java' with conflicts.
error: patch failed: ql/src/test/org/apache/hadoop/hive/ql/exec/TestUtilities.java:26
Falling back to three-way merge...
Applied patch to 'ql/src/test/org/apache/hadoop/hive/ql/exec/TestUtilities.java' with conflicts.
error: patch failed: serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java:528
Falling back to three-way merge...
Applied patch to 'serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java' with conflicts.
error: patch failed: serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java:1211
Falling back to three-way merge...
Applied patch to 'serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java' with conflicts.
error: patch failed: serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java:2280
Falling back to three-way merge...
Applied patch to 'serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java' with conflicts.
error: patch failed: serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java:300
Falling back to three-way merge...
Applied patch to 'serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java' with conflicts.
error: patch failed: serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java:431
Falling back to three-way merge...
Applied patch to 'serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java' with conflicts.
error: service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote: does not exist in index
error: service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote: does not exist in index
error: src/java/org/apache/hadoop/hive/conf/HiveConf.java: does not exist in index
error: test-serde/pom.xml: does not exist in index
error: if/hive_metastore.thrift: does not exist in index
error: src/gen/thrift/gen-cpp/hive_metastore_constants.cpp: does not exist in index
error: src/gen/thrift/gen-cpp/hive_metastore_constants.h: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java: does not exist in index
error: src/gen/thrift/gen-php/metastore/Types.php: does not exist in index
error: src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote: does not exist in index
error: src/gen/thrift/gen-py/hive_metastore/constants.py: does not exist in index
error: src/gen/thrift/gen-rb/hive_metastore_constants.rb: does not exist in index
error: src/model/org/apache/hadoop/hive/metastore/model/MStorageDescriptor.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/exec/FunctionTask.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/exec/Utilities.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/metadata/HiveUtils.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/metadata/Table.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/parse/FunctionSemanticAnalyzer.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/parse/StorageFormat.java: does not exist in index
error: src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java: does not exist in index
error: src/test/org/apache/hadoop/hive/ql/exec/TestUtilities.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java: does not exist in index
error: src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java: does not exist in index
error: src/gen/thrift/gen-py/TCLIService/TCLIService-remote: does not exist in index
error: src/gen/thrift/gen-py/hive_service/ThriftHive-remote: does not exist in index
The patch does not appear to apply with p0, p1, or p2
+ result=1
+ '[' 1 -ne 0 ']'
+ rm -rf yetus_PreCommit-HIVE-Build-11684
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12698268 - PreCommit-HIVE-Build

> Linking custom SerDe jar to table definition.
> ---------------------------------------------
>
>                 Key: HIVE-9252
>                 URL: https://issues.apache.org/jira/browse/HIVE-9252
>             Project: Hive
>          Issue Type: New Feature
>          Components: Serializers/Deserializers
>            Reporter: Niels Basjes
>            Assignee: Ferdinand Xu
>            Priority: Major
>         Attachments: HIVE-9252.1.patch
>
>
> In HIVE-6047 the option was created that a jar file can be hooked to the definition of a function. (See: [Language Manual DDL: Permanent Functions|https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-PermanentFunctions] )
> I propose to add something similar that can be used when defining an external table that relies on a custom Serde (I expect to usually only have the Deserializer).
> Something like this:
> {code}
> CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS] [db_name.]table_name
>     ...
>     STORED BY 'storage.handler.class.name' [WITH SERDEPROPERTIES (...)] 
>     [USING JAR|FILE|ARCHIVE 'file_uri' [, JAR|FILE|ARCHIVE 'file_uri'] ];
> {code}
> Using this you can define (and share !!!) a Hive table on top of a custom fileformat without the need to let the IT operations people deploy a custom SerDe jar file on all nodes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)