Nitiraj Singh Rathore created AMBARI-16266:
----------------------------------------------
Summary: Upload Table- Error on uploading csv with 1 row
Key: AMBARI-16266
URL: https://issues.apache.org/jira/browse/AMBARI-16266
Project: Ambari
Issue Type: Bug
Components: ambari-views
Affects Versions: 2.4.0
Reporter: Nitiraj Singh Rathore
Assignee: Nitiraj Singh Rathore
Fix For: 2.4.0
Exception on uploading csv with 1 row
First row is considered as header by default.
=========================================================
28 Apr 2016 06:44:35,001 INFO qtp-ambari-client-20554 BaseService:360 -
isFirstRowHeader : true, inputFileType : CSV
28 Apr 2016 06:44:35,003 ERROR qtp-ambari-client-20554 BaseService:112 -
Exception occurred while generating preview for local file
java.util.NoSuchElementException: No rows in the file.
at
org.apache.ambari.view.hive.resources.uploads.parsers.Parser.parsePreview(Parser.java:108)
at
org.apache.ambari.view.hive.resources.uploads.parsers.DataParser.parsePreview(DataParser.java:55)
at
org.apache.ambari.view.hive.resources.uploads.UploadService.generatePreview(UploadService.java:364)
at
org.apache.ambari.view.hive.resources.uploads.UploadService.uploadForPreview(UploadService.java:109)
at sun.reflect.GeneratedMethodAccessor1179.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)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)