[jira] [Commented] (HIVE-12673) Orcfiledump throws NPE when no files are available

2016-02-16 Thread Hive QA (JIRA)

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

Hive QA commented on HIVE-12673:




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

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 7 failed/errored test(s), 9772 tests executed
*Failed tests:*
{noformat}
TestHBaseNegativeCliDriver - did not produce a TEST-*.xml file
TestMiniTezCliDriver-schema_evol_text_nonvec_mapwork_table.q-orc_vectorization_ppd.q-vector_left_outer_join2.q-and-12-more
 - did not produce a TEST-*.xml file
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_partition_coltype_literals
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_authorization_uri_import
org.apache.hadoop.hive.metastore.TestMetaStoreAuthorization.testMetaStoreAuthorization
org.apache.hadoop.hive.ql.security.TestExtendedAcls.org.apache.hadoop.hive.ql.security.TestExtendedAcls
org.apache.hive.jdbc.TestSSL.testSSLVersion
{noformat}

Test results: 
http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/6999/testReport
Console output: 
http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/6999/console
Test logs: 
http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-6999/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 7 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12787981 - PreCommit-HIVE-TRUNK-Build

> Orcfiledump throws NPE when no files are available
> --
>
> Key: HIVE-12673
> URL: https://issues.apache.org/jira/browse/HIVE-12673
> Project: Hive
>  Issue Type: Bug
>Reporter: Rajesh Balamohan
>Assignee: Rajesh Balamohan
> Attachments: HIVE-12673.1.patch, HIVE-12673.2.patch, 
> HIVE-12673.2.patch, HIVE-12673.3.patch, HIVE-12673.3.rebased.patch
>
>
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
>   at org.codehaus.jettison.json.JSONTokener.more(JSONTokener.java:106)
>   at org.codehaus.jettison.json.JSONTokener.next(JSONTokener.java:116)
>   at 
> org.codehaus.jettison.json.JSONTokener.nextClean(JSONTokener.java:170)
>   at org.codehaus.jettison.json.JSONObject.(JSONObject.java:185)
>   at org.codehaus.jettison.json.JSONObject.(JSONObject.java:293)
>   at 
> org.apache.hadoop.hive.ql.io.orc.JsonFileDump.printJsonMetaData(JsonFileDump.java:197)
>   at org.apache.hadoop.hive.ql.io.orc.FileDump.main(FileDump.java:107)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:497)
>   at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
>   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> {noformat}
> hive --orcfiledump -j -p /tmp/orc/inventory/inv_date_sk=2452654



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-12673) Orcfiledump throws NPE when no files are available

2015-12-14 Thread Prasanth Jayachandran (JIRA)

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

Prasanth Jayachandran commented on HIVE-12673:
--

+1

> Orcfiledump throws NPE when no files are available
> --
>
> Key: HIVE-12673
> URL: https://issues.apache.org/jira/browse/HIVE-12673
> Project: Hive
>  Issue Type: Bug
>Reporter: Rajesh Balamohan
>Assignee: Rajesh Balamohan
> Attachments: HIVE-12673.1.patch, HIVE-12673.2.patch
>
>
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
>   at org.codehaus.jettison.json.JSONTokener.more(JSONTokener.java:106)
>   at org.codehaus.jettison.json.JSONTokener.next(JSONTokener.java:116)
>   at 
> org.codehaus.jettison.json.JSONTokener.nextClean(JSONTokener.java:170)
>   at org.codehaus.jettison.json.JSONObject.(JSONObject.java:185)
>   at org.codehaus.jettison.json.JSONObject.(JSONObject.java:293)
>   at 
> org.apache.hadoop.hive.ql.io.orc.JsonFileDump.printJsonMetaData(JsonFileDump.java:197)
>   at org.apache.hadoop.hive.ql.io.orc.FileDump.main(FileDump.java:107)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:497)
>   at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
>   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> {noformat}
> hive --orcfiledump -j -p /tmp/orc/inventory/inv_date_sk=2452654



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-12673) Orcfiledump throws NPE when no files are available

2015-12-14 Thread Prasanth Jayachandran (JIRA)

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

Prasanth Jayachandran commented on HIVE-12673:
--

The problem is JSONObject is in complete state. I think we should fix that. 

1) If the files list is empty or null return at the beginning of the function
2) line:208. Add else condition and do writer.endObject() to finish the object 
as 'done'


> Orcfiledump throws NPE when no files are available
> --
>
> Key: HIVE-12673
> URL: https://issues.apache.org/jira/browse/HIVE-12673
> Project: Hive
>  Issue Type: Bug
>Reporter: Rajesh Balamohan
>Assignee: Rajesh Balamohan
> Attachments: HIVE-12673.1.patch
>
>
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
>   at org.codehaus.jettison.json.JSONTokener.more(JSONTokener.java:106)
>   at org.codehaus.jettison.json.JSONTokener.next(JSONTokener.java:116)
>   at 
> org.codehaus.jettison.json.JSONTokener.nextClean(JSONTokener.java:170)
>   at org.codehaus.jettison.json.JSONObject.(JSONObject.java:185)
>   at org.codehaus.jettison.json.JSONObject.(JSONObject.java:293)
>   at 
> org.apache.hadoop.hive.ql.io.orc.JsonFileDump.printJsonMetaData(JsonFileDump.java:197)
>   at org.apache.hadoop.hive.ql.io.orc.FileDump.main(FileDump.java:107)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:497)
>   at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
>   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> {noformat}
> hive --orcfiledump -j -p /tmp/orc/inventory/inv_date_sk=2452654



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)