Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.4.0
-
None
Description
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)
Attachments
Attachments
Issue Links
- links to