[jira] [Comment Edited] (AMBARI-20981) Hive 2.0 View Table Statistics overflows Integer Type convert to Long

2017-05-11 Thread Nitiraj Singh Rathore (JIRA)

[ 
https://issues.apache.org/jira/browse/AMBARI-20981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16006073#comment-16006073
 ] 

Nitiraj Singh Rathore edited comment on AMBARI-20981 at 5/11/17 8:31 AM:
-

[~gss2002] : Thanks for the patch. Although, your patch seems to be made by git 
only, but I was having problems in applying to the branch. So I did the same 
changes and created a new patch.

attached AMBARI-20981_branch-2.5.patch :  new patch with formatting and message.


was (Author: nitiraj.rathore):
attached AMBARI-20981_branch-2.5.patch :  new patch with formatting and message.

> Hive 2.0 View Table Statistics overflows Integer Type convert to Long
> -
>
> Key: AMBARI-20981
> URL: https://issues.apache.org/jira/browse/AMBARI-20981
> Project: Ambari
>  Issue Type: Bug
>  Components: contrib
>Affects Versions: 2.5.0, 2.5.1, 2.5.2
> Environment: Ambari 2.5.0.x
>Reporter: Greg Senia
>  Labels: views
> Attachments: AMBARI-20981_branch-2.5.patch, AMBARI-20981.patch
>
>
> When testing with our extremely large datasets the statistics data returns a 
> failure and the following stack trace. Using Integer for Hive Table Stats 
> unfortunately is not going to work. It needs to be a long. I've provided a 
> patch to fix this.
> 09 May 2017 10:24:34,474 ERROR [ambari-client-thread-55044] 
> ContainerResponse:419 - The RuntimeException could not be mapped to a 
> response, re-throwing to the HT
> TP container
> java.lang.NumberFormatException: For input string: "12375183159"
> at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Integer.parseInt(Integer.java:583)
> at java.lang.Integer.valueOf(Integer.java:766)
> at 
> org.apache.ambari.view.hive20.internal.parsers.TableMetaParserImpl.getTableStats(TableMetaParserImpl.java:115)
> at 
> org.apache.ambari.view.hive20.internal.parsers.TableMetaParserImpl.parse(TableMetaParserImpl.java:62)
> at 
> org.apache.ambari.view.hive20.resources.browser.DDLProxy.getTableProperties(DDLProxy.java:157)
> at 
> org.apache.ambari.view.hive20.resources.browser.DDLService.getTableInfo(DDLService.java:278)
> at sun.reflect.GeneratedMethodAccessor253.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at 
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
> at 
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
> at 
> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
> at 
> com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
> at 
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
> at 
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
> at 
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
> at 
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
> at 
> 

[jira] [Comment Edited] (AMBARI-20981) Hive 2.0 View Table Statistics overflows Integer Type convert to Long

2017-05-11 Thread Nitiraj Singh Rathore (JIRA)

[ 
https://issues.apache.org/jira/browse/AMBARI-20981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16006073#comment-16006073
 ] 

Nitiraj Singh Rathore edited comment on AMBARI-20981 at 5/11/17 8:25 AM:
-

attached AMBARI-20981_branch-2.5.patch :  new patch with formatting and message.


was (Author: nitiraj.rathore):
attached AMBARI-20962_branch-2.5.patch :  new patch with formatting and message.

> Hive 2.0 View Table Statistics overflows Integer Type convert to Long
> -
>
> Key: AMBARI-20981
> URL: https://issues.apache.org/jira/browse/AMBARI-20981
> Project: Ambari
>  Issue Type: Bug
>  Components: contrib
>Affects Versions: 2.5.0, 2.5.1, 2.5.2
> Environment: Ambari 2.5.0.x
>Reporter: Greg Senia
>  Labels: views
> Attachments: AMBARI-20981_branch-2.5.patch, AMBARI-20981.patch
>
>
> When testing with our extremely large datasets the statistics data returns a 
> failure and the following stack trace. Using Integer for Hive Table Stats 
> unfortunately is not going to work. It needs to be a long. I've provided a 
> patch to fix this.
> 09 May 2017 10:24:34,474 ERROR [ambari-client-thread-55044] 
> ContainerResponse:419 - The RuntimeException could not be mapped to a 
> response, re-throwing to the HT
> TP container
> java.lang.NumberFormatException: For input string: "12375183159"
> at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Integer.parseInt(Integer.java:583)
> at java.lang.Integer.valueOf(Integer.java:766)
> at 
> org.apache.ambari.view.hive20.internal.parsers.TableMetaParserImpl.getTableStats(TableMetaParserImpl.java:115)
> at 
> org.apache.ambari.view.hive20.internal.parsers.TableMetaParserImpl.parse(TableMetaParserImpl.java:62)
> at 
> org.apache.ambari.view.hive20.resources.browser.DDLProxy.getTableProperties(DDLProxy.java:157)
> at 
> org.apache.ambari.view.hive20.resources.browser.DDLService.getTableInfo(DDLService.java:278)
> at sun.reflect.GeneratedMethodAccessor253.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at 
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
> at 
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
> at 
> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
> at 
> com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
> at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> at 
> com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
> at 
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
> at 
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
> at 
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
> at 
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
> at 
> com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
> at 
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
> at 
>